What is the remainder when 4 0 1 8 digits 2 3 2 3 2 3 . . . 2 3 2 3 2 3 is divided by 999?
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.
We all know how to test whether an integer is divisible by 3 or 9. My solution relies on knowing that the method can be generalised on two levels:
As such, all we need to do is calculate the base-1000 digital root of x .
Now 4 0 1 8 = 6 × 6 6 9 + 4 ⇒ x = 2 3 2 3 669 times 2 3 2 3 2 3 ⇒ x ≡ 2 + 3 2 3 + 6 6 9 ( 2 3 2 + 3 2 3 ) (mod 999) = 3 7 1 6 2 0 ≡ 3 7 1 + 6 2 0 (mod 999) = 9 9 1 .
Exactly what I did. The best solution.
Since 1 0 3 ≡ 1 ( m o d 9 9 9 ) , we obtain that 1 0 6 n ≡ 1 ( m o d 9 9 9 ) ( ∗ ) for any integer n . Then N = 4 0 1 8 digits 2 3 2 3 2 3 . . . 2 3 2 3 2 3 = 2 3 ∗ 4 0 1 7 digits 1 0 1 0 1 . . . 0 1 0 1 0 1 = 2 3 ∗ ( 1 0 1 0 1 ∗ k = 0 ∑ 6 6 8 1 0 6 k + 1 0 4 0 1 4 + 1 0 4 0 1 6 ) Then N = 2 3 ∗ ( 1 0 1 0 1 ∗ ∑ k = 0 6 6 8 1 0 6 k + 1 0 6 ∗ 6 6 9 + 1 0 0 ∗ 1 0 6 ∗ 6 6 9 ) .
Now using ( ∗ ) we obtain that N ≡ 2 3 ∗ ( 1 0 1 0 1 ∗ 6 6 9 + 1 + 1 0 0 ) ≡ 9 9 1 ( m o d 9 9 9 ) . Therefore the answer is 9 9 1 .
Outstanding Solution!
4 0 1 8 digits 2 3 2 3 2 3 … 2 3 2 3 2 3 = k = 0 ∑ 2 0 0 8 2 3 ⋅ 1 0 2 k 1 0 0 ≡ 1 0 3 ≡ 1 0 3 n ≡ 1 ( m o d 9 9 9 ) ⇒ 2 3 ⋅ 1 0 3 n ≡ 2 3 ( m o d 9 9 9 ) ( 1 ) ⇒ 1 0 ⋅ 2 3 ⋅ 1 0 3 n ≡ 1 0 ⋅ 2 3 ( m o d 9 9 9 ) ⇒ 2 3 ⋅ 1 0 3 n + 1 ≡ 2 3 0 ( m o d 9 9 9 ) ( 2 ) ⇒ 2 3 ⋅ 1 0 3 n + 2 ≡ 2 3 0 0 ≡ 3 0 2 ( m o d 9 9 9 ) ⇒ 2 3 ⋅ 1 0 3 n + 2 ≡ 3 0 2 ( m o d 9 9 9 ) ( 3 ) The problem is equivalent to the following congruence: k = 0 ∑ 2 0 0 8 2 3 ⋅ 1 0 2 k ≡ ? ( m o d 9 9 9 ) Every single term of the above series is either equivalent to (1) or (2) or (3) k = 0 ∑ 2 0 0 8 2 3 ⋅ 1 0 2 k ≡ 2 0 0 7 terms 2 3 + 3 0 2 + 2 3 0 + … + 2 3 + 3 0 2 + 2 3 0 + 2 3 + 3 0 2 ( m o d 9 9 9 ) ≡ 3 2 0 0 7 ⋅ ( 2 3 + 3 0 2 + 2 3 0 ) + 2 3 + 3 0 2 ≡ 3 7 1 6 2 0 ≡ − 8 ≡ 9 9 1 ( m o d 9 9 9 )
We can write the given number in blocks of three, as one has a habit of doing (in business, for example): x = 2'323'...'232'323. There are 670 blocks of 323s, 669 blocks of 232s, and one "left-over block" of just a 2. Since 1 0 3 n ≡ 1 ( m o d 9 9 9 ) , the given number is congruent to the sum of the blocks, 6 7 0 × 3 2 3 + 6 6 9 × 2 3 2 + 2 ≡ 9 9 1 ( m o d 9 9 9 )
670and 669 COMRADE
step one: mod 37 of the series follows 0,23,29 after six digits(232323) with a pair addition of one '23'..giving mod 37 of the number=29
step two: divisibility test for 27,sum of groups of three numbers from right to be divisible by 27, .. 669(4017/3) times groups of 323 and 232 and last block of 323 to adjust for the sum to be divided by 27,hence getting (2+323x669+232x669+304) is divisible by 27 hence mod 27 of the actual number to be 19 (323-304)
Find some p and q for which 37p+29=27q+19 would hold got 37x26+29=27x36+19=991 and thats the remainder.
I, unfortunately, have no training in number theory, so I went about it the hard way. I quickly found a pattern, however.
So, I looked at remainders for the nth digit: N = 3 is 232, N = 4 is 325, N= 5 is 255, ...
The two numbers that helped point me in the right direction were N = 12, and N =15.
N = 12 yields a remainder of 111. N = 15 is 343.
I made a leap from here-- N = 15 is 343, N = 3 is 232. 15-3 = 12. 343-232 = 111
I then hypothesized that: N = 24 would be 222, N = 36 would be 333, etc... til N = 108 would be 999.
It was simple computation that showed me I was right (up to 48). I then calculated how many times 108 goes into 4018 (37 R 22). Which tells me there would be 22 digits of 232323, etc....
Then, as I had already calculated the remainders up to 48, I found the remainder for the 22nd digit which was 991. I took a deep breath and was right!
I have already looked at the other solutions and they make some sense to me, but I don't have a strong enough background in number theory to completely understand what they mean.
My way was likely longer and more tedious than others, but it helped me develop a better intuition for division and patterns.
I pretty much followed the obvious "base 1000" approach that everyone else did, noting that 1000 = 1 (mod 999) so that the remainder mod 999 is the same as the sum of all groups of 3 digits, counting from the right: 2 + 323 + (232 + 323)*669.
I'm curious, though. Did Calvin pick the numbers such that the "hard" part was:
(232 + 323)*669 = 666 (mod 999)
...with "the number of the beast" both right-side up and upside down?
Let x be the given dividend and y = 2 3 ⋅ 1 0 4 0 1 8 + x . So y is a concatenation of 670 strings of "232323.". Since, under modulo 999, 1 0 3 k = 1 , for all integer k > = 0 , so under modulo 999, y = 6 7 0 ⋅ 2 3 2 3 2 3 = 6 7 0 ⋅ ( 2 3 2 + 3 2 3 ) = 6 7 0 ⋅ 5 5 5 = ( 6 6 6 + 4 ) ⋅ 5 5 5 = 1 0 ⋅ 1 1 1 ⋅ 3 3 3 + 4 ⋅ 5 5 5 = 1 0 ⋅ 3 7 ⋅ 9 9 9 + 2 2 2 0 = 0 + 2 + 2 2 0 = 2 2 2 , and so x = 2 2 2 − 2 3 ⋅ 1 0 4 0 1 8 = 2 2 2 − 2 3 0 = − 8 = 9 9 1 . Hence the desired remainder is 991.
We may write the given number as 2 3 ∑ n = 0 2 0 0 8 1 0 0 n
Trying any normal methods like geometric series or applying Euler's theorem does not work (though an application of Euler's theorem simplifies my argument but as it is not necessary I omit it). This immediately forces us to ask what is the deal with 999. Well, obviously 1 0 0 0 ≡ 1 m o d 9 9 9 which means that in numbers of the form 1 0 0 0 . . . we may delete strings of 000s. In other words, ∑ n = 0 2 0 0 8 1 0 0 n ≡ 1 + 1 0 0 + 1 0 + 1 + 1 0 0 + 1 0 + . . . m o d 9 9 9 .
We must now just formalize this to obtain an answer. As the powers of 100 have a cycle of length 3 compute 2 0 0 8 ≡ 1 m o d 3 and ⌊ 3 2 0 0 8 ⌋ = 6 6 9 . This means that ∑ n = 0 2 0 0 8 1 0 0 n ≡ 1 1 1 × 6 9 9 + 1 + 1 0 0 ≡ 4 3 4 m o d 9 9 9 . And multiplying, 2 3 ∑ n = 0 2 0 0 8 1 0 0 n ≡ 2 3 × 4 3 4 ≡ 9 9 1 m o d 9 9 9 .
The easiest way to solve this problem a n a n − 1 . . . a 1 a 0 ≡ ∑ k = 0 n a k ∗ 1 0 ( k m o d 3 ) ( m o d 9 9 9 ) In our case this gives 4 0 1 8 digits 2 3 2 3 2 3 . . . 2 3 2 3 2 3 ≡ 3 7 1 6 2 0 ≡ 9 9 1 ( m o d 9 9 9 )
2323232323....2331:3=77441077441 ...077441777 and this number is divided by 9 because (7+7+4+4+1) 669+21= 3 (223 23+7)=3(50676)=9 16892 So x+8 is divided by 27 23232323....2331:37= 6279|6279|…6279|63 (27,37)=1 So x+8 is divided by 27*37=999, so x=999-8=991 (mod 999)
Problem Loading...
Note Loading...
Set Loading...
Let x = 4018 digits 2 3 2 3 … 2 3 2 3 . To find the remainder when x is divided by 999, we reduce the number of digits by 6 each time. We can do this as follows:
First we note the following: n digits 2 3 2 3 … 2 3 2 3 = n − 6 digits 2 3 2 3 . . . 2 3 2 3 × 1 0 6 + 2 3 2 3 2 3 = n − 6 digits 2 3 2 3 . . . 2 3 2 3 × 9 9 9 9 9 9 + n − 6 digits 2 3 2 3 . . . 2 3 2 3 + 2 3 2 3 2 3 We apply modulo 999 to both sides. Since 999999 is divisible by 999 and 232323 modulo 999 is 555 we get: n digits 2 3 2 3 … 2 3 2 3 mod 9 9 9 = n − 6 digits 2 3 2 3 . . . 2 3 2 3 mod 9 9 9 + 2 3 2 3 2 3 mod 9 9 9 = n − 6 digits 2 3 2 3 . . . 2 3 2 3 mod 9 9 9 + 5 5 5
Now we apply this repeatedly to the original number x . Since we are repeatedly reducing the number of digits by 6, the above process can be applied 4 0 1 8 ÷ 6 times, i.e. 669 times. The remainder of 4018 divided by 6 is 4, and so we will be left with 2323 at the end. Thus we get
x mod 9 9 9 = ( 2 3 2 3 + 5 5 5 × 6 6 9 ) mod 9 9 9 = ( 2 3 2 3 + 5 5 5 × 6 6 6 + 5 5 5 × 3 ) mod 9 9 9 = ( 2 3 2 3 + 1 6 6 5 ) = 9 9 1 mod 9 9 9
Since 5 5 5 × 6 6 6 is divisible by 999, x modulo 999 is equal to 2323+1665 modulo 999. The remainder of 2323+1665, i.e. 3988 when divided by 999 is 991 which is our final answer.