2 3 4 5 6 7 8 9
Find the last three 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.
Good approach applying the Chinese Remainder Theorem and Euler's Theorem.
We are given n = 2 3 4 a where a is odd. If we work modulo 125 in the base and modulo λ ( λ ( 1 2 5 ) ) = λ ( 1 0 0 ) = 2 0 in the second exponent, 4 a , we observe that 4 a ≡ 4 ( m o d 2 0 ) for odd a so that n ≡ 2 3 4 modulo 125 and modulo 1000. Now 2 7 8 ≡ 4 4 ( m o d 1 2 5 ) so that n ≡ 2 3 4 = 2 8 1 ≡ 8 × 4 4 = 3 5 2 ( m o d 1 0 0 0 )
I think that one of the fastest method to solve the problem is using a mix of eulero φ function and chaermical (or λ) function. So working modulo 1000 the φ is 400 while λ is 200. With some calculus we can obtain first 8 9 and then all the other powers. At 6 t h power we have 6 8 0 1 wich is 6 1 thanks to φ. 5 6 ≡ 6 2 5 ( m o d 1 0 0 0 ) here I used the two functions to reduce 625 to 25. Then 4 2 5 ≡ 6 2 4 ( m o d 1 0 0 0 ) (also here from 624 to 24). 3 2 4 ≡ 4 8 1 ( m o d 1 0 0 0 ) and the last calculus is 2 8 1 wich is 3 5 2 ( m o d 1 0 0 0 ) . So the solution is 3 5 2
Actually the Carmichael Lambda of 1000 is 100
Log in to reply
Isn't it half of phi function?
Log in to reply
No .
Log in to reply
@Pi Han Goh – Oh, I've read better the wiki...I thought that it was 1/2 of phi always while it is just for the single prime factors. Thanks @Pi Han Goh
Log in to reply
@Alex Spagnoletti – Hahah no problem! Anytime!! =D
To be certain, I applied computing method to take least significant figures.
Problem Loading...
Note Loading...
Set Loading...
Let, x = 2 3 4 5 6 7 8 9 and then we have to find x ( m o d 1 0 0 0 ) .
As 1 0 0 0 = 8 × 1 2 5 , we can use Chinese Remainder Theorem as follows,
Finding x ( m o d 8 ) ,
x = 2 3 4 5 6 7 8 9 ≡ 0 ( m o d 8 )
Finding x ( m o d 1 2 5 ) ,
2 3 4 5 6 7 8 9 ⇒ 3 4 5 6 7 8 9 ⇒ 4 5 6 7 8 9 ( m o d 1 2 5 ) ( m o d ϕ ( 1 2 5 ) = 1 0 0 ) ( m o d λ ( 1 0 0 ) = 2 0 )
Now observing that,
4 k ( m o d 2 0 ) , ∀ k ∈ N { 4 odd ≡ 4 ( m o d 2 0 ) 4 even ≡ 1 6 ( m o d 2 0 )
Therefore,
4 5 6 7 8 9 ⇒ 3 4 ⇒ 2 8 1 3 1 1 ⋅ 1 6 7 2 ⋅ 3 ⋅ 1 6 ≡ 4 ( m o d λ ( 1 0 0 ) = 2 0 ) ≡ 8 1 ( m o d ϕ ( 1 2 5 ) = 1 0 0 ) ≡ ( 2 7 ) 1 1 ⋅ 2 4 ( m o d 1 2 5 ) ≡ ( 3 5 ) 2 ⋅ 3 ⋅ 1 6 ( m o d 1 2 5 ) ≡ 1 0 2 ( m o d 1 2 5 )
Therefore,
x ≡ 1 0 2 ( m o d 1 2 5 )
Now applying Chinese Remainder Theorem on the expressions in the boxes,
x ≡ 3 5 2 ( m o d 1 0 0 0 )