Browse · MATH
Printjmc
number theory senior
Problem
Let be the integer obtained by writing all the integers from to from left to right. For example, and . Compute the remainder when is divided by .
Solution
We will use the Chinese Remainder Theorem as follows: We will compute the remainders when is divided by and . The remainder when is divided by 45 will be the residue (mod 45) which leaves the same remainders when divided by 5 and 9 as does. Since ends in , it gives a remainder of when divided by .
For the remainder when is divided by 9, note that since for all nonnegative integers . In words, this calculation shows that we can sum groups of digits in any way we choose to check for divisibility by 9. For example, 1233 is divisible by 9 since is divisible by 9. This is a generalization of the rule that a number is divisible by 9 if and only if the sum of its digits is divisible by 9. Getting back to the problem at hand, we sum using the formula to find that is divisible by 9.
We are looking for a multiple of that gives a remainder of when divided by . Nine satisfies this condition, so the remainder when is divided by 45 is .
For the remainder when is divided by 9, note that since for all nonnegative integers . In words, this calculation shows that we can sum groups of digits in any way we choose to check for divisibility by 9. For example, 1233 is divisible by 9 since is divisible by 9. This is a generalization of the rule that a number is divisible by 9 if and only if the sum of its digits is divisible by 9. Getting back to the problem at hand, we sum using the formula to find that is divisible by 9.
We are looking for a multiple of that gives a remainder of when divided by . Nine satisfies this condition, so the remainder when is divided by 45 is .
Final answer
9