Find the remainder when the number 109109109109109109109109 is divided by 999.
Try not to brute force divide it
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.
Is there a reason to why this works?
Log in to reply
The reason why this works is because 1000=1(mod 999). So 109109=109000+109=109 1000+109=109+109. Using the same kind of thinking for 8 109's it's obvious that the remainder is 109 8=872.
109n ?
Sorry for the typographical error on the last line. Yes, it's 109n. Thanks for correcting.
We can rewrite 109109109109109109109109 as 109000000000000000000000+109000000000000000000+...109 and then notice these are each 109 mod 999 because they are 109*1,000,000,000,000,000,000,000 and notice 1,000,000,000,000,000,000,000=1000^7=1^7=1 (mod 999) and this is true for all so we reduce it to 109+109+109+109+109+109+109+109=109x8=872
First you can write 109109109.... as 109.10^21 + 109.10^18 + 109.10^15 + ... + 109.
Dividing each of those terms by 999 we get 109 as reamainder, because we get this remainder 8 times 8.109 = 872.
Define 1 0 9 1 = 1 0 9 , 1 0 9 2 = 1 0 9 1 0 9 , . . . . We will prove a recursive relation for 1 0 9 n . Notice that 1 0 9 n + 1 = 1 0 0 0 × 1 0 9 n + 1 0 9 ⟹ 1 0 9 n + 1 = 9 9 9 × 1 0 9 n + 1 0 9 n + 1 0 9 ⟹ 1 0 9 n + 1 ≡ 1 0 9 n + 1 0 9 m o d 9 9 9 . Applying this identity recursively:
1 0 9 8 ≡ 1 0 9 7 + 1 0 9 ≡ 1 0 9 6 + 2 × 1 0 9 ≡ . . . ≡ 1 0 9 1 + 7 × 1 0 9 = 8 × 1 0 9 = 8 7 2 m o d 9 9 9
Problem Loading...
Note Loading...
Set Loading...
Divide 1 0 9 by 9 9 9 and you'll get 1 0 9 as remainder. Divide 1 0 9 1 0 9 by 9 9 9 and you'll get 2 1 8 as remainder. Divide 1 0 9 1 0 9 1 0 9 by 9 9 9 and you'll get 3 2 7 as remainder.
Notice that for every 1 0 9 present in the number, you'll have 1 0 9 n as its remainder when divided by 9 9 9 where n is the number of 1 0 9 ′ s .
Since there are 8 1 0 9 ′ s in the number, then
1 0 9 n = 1 0 9 × 8 = 8 7 2