N = 2 1 1 1 1 1 1 1 1 1
Let R 1 , R 2 , and R 3 be the remainder when N is divided by 112, 189, and 262657 respectively. Find the value of R 1 + R 2 + R 3 .
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.
Oh wow! I haven't seen this approach before: Converting the divisors to binary numbers.
Where did you learn this?
On the other hand, it's obvious to see that 2 1 8 + p ≡ 2 p ( m o d 1 8 9 ) because λ ( 1 8 9 ) = 1 8 , where λ ( ⋅ ) denotes the Carmichael's lambda function .
Log in to reply
Actually, I learnt this by myself. I just wanted to try out another method rather than the lambda function, and I somehow tried using binary. xD
Log in to reply
Very interesting approach! Thanks for sharing!
Log in to reply
@Pi Han Goh – No problem, I'm glad you're interested! :D
Problem Loading...
Note Loading...
Set Loading...
Note that 1 1 2 = 1 1 1 0 0 0 0 ( 2 ) = 2 6 + 2 5 + 2 4 = 2 4 ( 2 2 + 2 + 1 ) = 2 4 ( 2 3 − 1 ) ≡ 2 4 ( 2 3 − 1 ) ( 2 3 + 1 ) ≡ 2 1 0 − 2 4 ≡ 0 ( m o d 1 1 2 ) .
Then we can know that 2 1 0 ≡ 2 4 ( m o d 1 1 2 ) .
Therefore, for positive integers n and k ≥ 4 , 2 6 n + k ≡ 2 k ( m o d 1 1 2 ) .
Then, 2 1 1 1 1 1 1 1 1 1 = 2 6 p + 3 = 2 6 ( p − 1 ) + 9 ≡ 2 9 ≡ 6 4 ( m o d 1 1 2 ) .
∴ R 1 = 6 4 .
Note that 1 8 9 = 1 0 1 1 1 1 0 1 ( 2 ) = 2 7 + 2 5 + 2 4 + 2 3 + 2 2 + 1 .
See the picture above. Top line is how many powers of 2 each column represents.
Now look at column 6 . It is left out with two 1 's, which means it is equal to 2 6 + 2 6 = 2 7 .
Then we can see that we add an invisible 1 to column 7 , and now the strangeness of column 7 is also explained.
(Think of advancing more up in basic additions, where 1 4 + 2 6 = ( 1 + 2 ) × 1 0 + ( 4 + 6 ) = ( 1 + 2 + 1 ) × 1 0 .)
You'll see that even though column 1 8 is blank, it will be filled by two 2 1 7 's.
Therefore,
2 7 + 2 5 + 2 4 + 2 3 + 2 2 + 1 ≡ ( 2 7 + 2 5 + 2 4 + 2 3 + 2 2 + 1 ) ( 2 1 0 + 2 9 − 2 7 − 2 5 + 2 3 + 2 2 − 1 ) ≡ 2 1 8 − 1 ≡ 0 ( m o d 1 8 9 ) .
So, for non-negative integer n ≥ 1 and p , 2 1 8 n + p ≡ 2 p ( m o d 1 8 9 ) .
Then, 2 1 1 1 1 1 1 1 1 1 = 2 1 8 × 6 1 7 2 8 3 9 + 9 ≡ 2 9 ≡ 1 3 4 ( m o d 1 8 9 ) .
∴ R 2 = 1 3 4 .
Note that 2 6 2 6 5 7 = 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 ( 2 ) = 2 1 8 + 2 9 + 1 ≡ ( 2 9 − 1 ) ( 2 1 8 + 2 9 + 1 ) ≡ 2 2 7 − 1 ≡ 0 ( m o d 2 6 2 6 5 7 )
Then, for non-negative integer n ≥ 1 and p , 2 2 7 n + p ≡ 2 p ( m o d 2 6 2 6 5 7 ) .
Then, 2 1 1 1 1 1 1 1 1 1 = 2 2 7 × 4 1 1 5 2 2 6 + 9 ≡ 2 9 ≡ 5 1 2 ( m o d 2 6 2 6 5 7 ) .
∴ R 3 = 5 1 2 .
Therefore, R 1 + R 2 + R 3 = 6 4 + 1 3 4 + 5 1 2 = 7 1 0 .