One day, Chris wanted to challenge Pi's magical powers.
Chris: I have divided 2016 by a positive integer . Do you know what the remainder is?
Pi: I can try, but I only have a 1 in 1009 chance of getting it correct.
Chris: Then, there must be 1009 of them. Do you know what their sum is?
Pi: Of course, I do!
Pi knew the sum of all possible values of remainders when 2016 was divided by some natural number. Do you?
Submit your answer as this sum.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
2 0 1 6 ≡ 1 × ( 1 0 0 9 + n ) + ( 1 0 0 7 − n ) ,
therefore, if we are applying it for n = 0, 1, 2, ..., 1006, 1007 to
divide 2016 by 1009, 1010, 1011, ..., 2016, we get a quotient of 1 in all cases, and a remainder of 1007, 1006, ... , 2, 1, 0 (all integers between 0 and 1007; 1008 distinct values).
Since a division by a positive integer m < 1009 cannot be greater, than (m - 1), the maximum value of the remainder cannot be bigger, than 1008 - 1 = 1007 (and the minimum being 0), so these possible remainders for the [1,1008] interval are all represented already.
It is easy to see, that we get a quotient of 0 and a remainder of 2016 (our 1009th value) if we divide it by any integer m > 2016:
2 0 1 6 ≡ 0 × ( 2 0 1 6 + k ) + 2 0 1 6 , k ∈ Z , k > 0
Now, the sum of all possible remainders:
( 0 + 1 + 2 + . . . + 1 0 0 6 + 1 0 0 7 ) + 2 0 1 6 = 2 ( 0 + 1 0 0 7 ) × 1 0 0 8 + 2 0 1 6 = 5 0 9 5 4 4