Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory junior

Problem

In a certain warehouse, there are boxes, each containing books.

Melvin's boss orders him to unpack all the books and repack them so that there are books in each box. After packing as many such boxes as possible, Melvin has how many books left over?
Solution
The total number of books in the warehouse is . If Melvin packs boxes of books each and has books left over, then . Thus, what we are looking for is the remainder when is divided by .

We note that . Therefore, we have Now we note that , and is a multiple of . Therefore, , which implies that the remainder is books.
Final answer
25