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.
Ayush Garg is right. You need some modification before you apply Euler's Theorem.
You got lucky this time . The first line is flawed. You can apply euler's theorem only when gcd (a,n) =1. But gcd(12,40) is not 1 . 12^40 = 76 mod 100 instead.
Log in to reply
You are right. Thanks.
Can you please provide a solution @Ayush Garg @Mehul Arora
Log in to reply
I have provided a solution in the comments. Feel free to check it out. :) Also, if you see any mistakes or typos in it, feel free to notify me. :)
Since it has almost been a month and the OP hasn't corrected his solution, I'm giving the solution in the comments here.
We compute the residue of 1 2 1 2 1 2 modulo 2 5 and 4 separately and then combine them later using CRT.
First, note that 1 2 ≡ 0 ( m o d 4 ) . As such, any arbitrary positive exponentiation of 1 2 will be congruent to 0 modulo 4 . For modulo 2 5 , we can use Euler's theorem since g cd ( 2 5 , 1 2 ) = 1 . We have ϕ ( 2 5 ) = 2 0 and we get,
1 2 1 2 1 2 ≡ 0 ( m o d 4 ) 1 2 1 2 1 2 ≡ 1 2 1 2 1 2 m o d 2 0 ≡ 1 2 4 6 m o d 2 0 ≡ 1 2 ( − 4 ) 3 m o d 2 0 ≡ 1 2 − 4 ≡ 1 9 − 2 ≡ 1 1 − 1 ≡ 1 6 ( m o d 2 5 )
The modular inverse of 1 1 modulo 2 5 is found using Extended Euclidean Algorithm as g cd ( 1 1 , 2 5 ) = 1 = 1 6 × ( 1 1 ) + ( − 7 ) × 2 5 . So,
1 2 1 2 1 2 ≡ { 0 ( m o d 4 ) 1 6 ( m o d 2 5 ) ⟹ 1 2 1 2 1 2 ≡ 1 6 ( m o d 1 0 0 )
The last step is done using CRT, i.e., the Chinese Remainder Theorem.
Look at the last 2 digits of the powers of 12. 12 12^2 = ...44 12^3= ...28 . . .12^12 = ...56
Then look at the last 2 digits of 56 up to powers of 12. No need to multiply the whole number, it suffices to multiply only the last 2 digits each time.
Mehul Arora is right. There's a simpler approach that doesn't require brute force calculation.
Can you provide an elegant solution??? This is Pure Bashing. We could do this, But there is an elegant method to this question ⌣ ¨
Problem Loading...
Note Loading...
Set Loading...
According to Euler's Theorem, a φ ( n ) ≡ 1 ( m o d n ) , we have
φ ( 1 0 0 ) = 4 0 , and 1 2 4 0 ≡ 1 ( m o d 1 0 0 ) .
3 1 2 ≡ 3 4 ≡ 1 ( m o d 4 0 ) .
4 1 2 ≡ 4 2 ≡ 1 6 ( m o d 4 0 ) .
Therefore, 1 2 1 2 ≡ 1 6 ( m o d 4 0 ) .
Thus, 1 2 1 2 1 2 ≡ 1 2 1 6 ( m o d 1 0 0 ) .
We have 3 1 6 ≡ 9 6 ( m o d 1 0 0 ) , and 2 1 6 ≡ 3 6 ( m o d 1 0 0 ) ,
so,
1 2 1 2 1 2 ≡ 1 2 1 6 ≡ 9 6 × 3 6 × 3 6 ≡ 1 6 ( m o d 1 0 0 ) .