Find the remainder of a number when divided by $9$
Matthew Harrington
Find the remainder when the number $$1234567891011121314151617\ldots200820092010$$ is divided by $9$. Show your work.
I don't even know where to begin. Is there an underlying trick in finding the remainder of a number after being divided by $9$? Morever, how do we even find the remainder when the number is this large...
This was a challenge problem. Meaning I didn't learn this in class.
$\endgroup$ 14 Answers
$\begingroup$Hint : $\sum a_k\times10^k\equiv\sum a_k \pmod {9}$
$\endgroup$ 13 $\begingroup$The sum of $9$ consecutive integers is divisible by $9$, hence \begin{align*}123456789101112\dots200820092010\bmod 9&=\sum_{n=1}^{2010} n\bmod9=\sum_{n=1}^{223\times 9} n\bmod9+\!\!\!\sum_{n=2008}^{2010}\!\!n\\ &=2008\bmod 9+2009\bmod9+2010\bmod9=\color{red}{6}. \end{align*}
$\endgroup$ 2 $\begingroup$Hint: the number $ac=10a+c $ is equal to $ac=10a+c=(9+1)a+c=9a +(a+c) $ So $ac =10a+c$ divided by 9, will have same remainder as $a+c$ divided by 9.
This is assuming you know the elementary school trick that a number is divisible by 9, if and only if the sum of its digits is divisible by 9.
And then it assumes you realize that that means the divisor when divided by 9 is going to have the same divisor as the sum of the digits divided by 9. Which we can figure out by adding those digits.
Ultimately the divisor is exactly equal to the sum of the sum of the sum of .... the digits.
So add up the numbers 1+2+3+4...... that's long but play with it and see if you can find shortcuts. Example: if 2+7=9 eventually in a future step you will want the remainder after dividing by 9 so that will be 0. So you can toss out any a+b=9. Keep playing and see what happens.
Now... you are simply taking the word of some stranger on the Internet the the remainder when divided by 9 is the same thing as the sum of the digits. Play with it and try to convince yourself it is true.
Hint: the number ac is 10a + c. 10 is (9+1) so ac=10a + c = 9a + (a+c). So ac and a+c will have the same divisor when divided by 9.
$\endgroup$ $\begingroup$Your number has the same remainder when divided by $9$ as $(1 + 2010) + (2 + 2009) + ... + (1005+1006)$ $= 2011 * 1005$. This number has the same remainder as $4*6$ when we divide by $9$, namely $6$.
$\endgroup$