Find the fifth digit from the end of the number below.
5 5 5 5 5
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.
Using Chinese Remainder Theorem along with Euler's Theorem often allows us to reduce the size of the values that we're working with.
Set m = 5 5 5 5 5 .
We have 5 ϕ ( 2 5 ) ≡ 1 ( m o d 2 ) 5 ) .
Let us reduce 5 5 5 5 m o d u l o 2 4 = 1 6 . Repeating the same trick, we want to reduce its exponent modulo ϕ ( 1 6 ) = 8 . This amounts to computing 5 5 modulo 4 , and this is 1 . Going backwards, we have the given number is congruent to 5 5 ( m o d 3 2 ) = 5 5 .
This shows that m = 5 5 + 2 5 k , for some k . This further shows that the residue of m modulo 1 0 5 is 3 1 2 5 . The fifth-to-last digit of m is 0 .
Problem Loading...
Note Loading...
Set Loading...
My approach is similar to Priyanshu's, but I will organize my work a bit differently.
Clearly, the given number N is divisible by 5 5 = 3 1 2 5 .
To find the congruency class of N modulo 2 5 = 3 2, we can work module ϕ ( 3 2 ) = 1 6 in the first exponent, modulo ϕ ( 1 6 ) = 8 in the second exponent, modulo 4 in the fourth exponent, and modulo 2 in the top exponent. Thus we have N ≡ 5 5 5 ≡ 5 5 ( m o d 3 2 )
Since N ≡ 5 5 both modulo 5 5 and modulo 2 5 , the congruency holds modulo 2 5 × 5 5 = 1 0 5 = 1 0 0 0 0 as well, so that N ends in . . . 0 3 1 2 5 , and the fifth digit from the end is 0