2 9 9 9
Find the last 2 digits of the number above.
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.
The only way I know how to solve this problem is by listing the first powers of 2 until repetition occurs in the last 2 digits.
2 1 = 2
2 2 = 4
.
.
.
2 2 1 = 2 0 9 7 1 5 2
2 2 2 = 4 1 9 4 3 0 4
It finally repeats! Notice, however, that it does not repeat at 0 2 , but instead at 0 4 . Because of this, there are 2 0 distinct integers that can be in the last 2 digits' place for any power of 2 greater than 1. 999 mod(20)= 19. 2 1 9 = 5 2 4 2 8 8
So the answer is 8 8 .
Let's know 3 main points to solve this problem :
when 2 1 0 = 1 0 2 4
when 2 4 n = . . . . . . . . . 2 4 (n is odd number) . However when 2 4 n = . . . . . . . 7 6 ( n is even)
when 7 6 n = . . . . . . . . . . . 7 6 ( it will always come to 76)
So : 2 9 9 9 = ( 2 1 0 ) 9 9 × 2 9 = 1 0 2 4 9 9 × 2 9 = . . . . . 2 4 × 2 9 = . . . . . . . 2 4 × 5 1 2 = . . . . . . . 8 8 (here 2 4 n while n is odd number)
There is probably a more clever way to do it, but I don't know it!
Log in to reply
yeah modulo aritmatic is the most efficient way h
Yes, there is a simpler way using Euler's Theorem and basic modular arithmetic. The idea is to compute the residues modulo coprime factors of 1 0 0 that multiply upto 1 0 0 and to note that g cd ( 2 , 2 5 ) = 1 which allows us to use Euler's Theorem.
2 9 9 9 ≡ { 0 ( m o d 4 = 2 2 ) 2 9 9 9 m o d ϕ ( 2 5 ) ≡ 2 9 9 9 m o d 2 0 ≡ 2 − 1 ≡ 1 3 ( m o d 2 5 )
The second result is computed using Extended Euclidean Algorithm using the following result:
1 = g cd ( 2 , 2 5 ) = 1 3 × 2 + ( − 1 ) × 2 5
Now, you can simply use Chinese Remainder Theorem or you can list out the possible values using the second congruence result and use the first congruence result to rule out the incorrect answers and get the correct answer as 8 8 .
Log in to reply
Would you elaborate the step wher e2^999 is evaluated to 13(mod 25)?
Log in to reply
Are you familiar with Euler's Theorem and modular inverse of an element coprime to modulo?
For the last step, here's a simpler approach. Let z be the modular inverse of 2 modulo 2 5 . Then, we have,
m o d 2 5 : z ≡ 2 − 1 ⟹ 2 z ≡ 1 ⟹ × 1 3 2 6 z ≡ 1 3 ⟹ z ≡ 1 3
Log in to reply
@Prasun Biswas – Got it:
1) the totient theorem to find period of repetition of modular values
2) Extended Euclidean to find inverse of 2 w.r.t 25
Log in to reply
@Shubham Jalan – There's a bit of a technical flaw in the first point. You don't always get the (smallest) period of repetition by totient function.
For that purpose, we have the Carmichael Lambda Function .
I used MS Excel and found the pattern of the units and tens digits individually
Problem Loading...
Note Loading...
Set Loading...
2^1 : 2, 2^2 : 4, 2^4 : 16, 2^8 : 56, 2^16 : 36, 2^32 : 96, 2^64 : 16,
2^4 :2^64:16 (repeats after 60 powers,atleast) So, 2^964:16
2^999 : 2^964 * 2^32 * 2^2 * 2^1 : 16 * 96 * 8 : 36 * 8 : 88