Browse · MATH
Printjmc
number theory senior
Problem
Let be the set of all possible remainders when a number of the form , a nonnegative integer, is divided by 1000. Let be the sum of the elements in . Find the remainder when is divided by 1000.
Solution
Note that and . So we must find the first two integers and such that and and . Note that and will be greater than 2 since remainders of will not be possible after 2 (the numbers following will always be congruent to 0 modulo 8). Note that (see Euler's theorem) and are all distinct modulo 125 (proof below). Thus, and are the first two integers such that . All that is left is to find in mod . After some computation:To show that are distinct modulo 125, suppose for the sake of contradiction that they are not. Then, we must have at least one of or . However, writing , we can easily verify that and , giving us the needed contradiction.
Final answer
7