Let denote the last 4 digits of the number . Compute .
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.
Let N = 2 0 1 6 2 0 1 6 . We need to find A = N m o d 1 0 0 0 0 . Since g cd ( 2 0 1 6 , 1 0 0 0 0 ) = 1 , we consider the factors of 2 4 = 1 6 and 5 4 = 6 2 5 separately using Chinese remainder theorem .
Factor 16: N ≡ 0 (mod 16) .
Factor 625: Since g cd ( 2 0 1 6 , 6 2 5 ) = 1 , we can apply Euler's theorem and note that the Euler's totient function ϕ ( 6 2 5 ) = 5 0 0 .
N ≡ 2 0 1 6 2 0 1 6 m o d ϕ ( 6 2 5 ) (mod 625) ≡ 2 0 1 6 2 0 1 6 m o d 5 0 0 (mod 625) ≡ 2 0 1 6 1 6 (mod 625) ≡ ( 2 0 2 5 − 9 ) 1 6 (mod 625) ≡ ( − 1 6 ⋅ 2 0 2 5 ⋅ 9 1 5 + 9 1 6 ) (mod 625) ≡ ( − 1 6 ⋅ 2 2 5 ⋅ 9 1 6 + 9 1 6 ) (mod 625) ≡ ( − 3 5 9 9 ⋅ 9 1 6 ) (mod 625) ≡ − 4 7 4 ( 1 0 − 1 ) 1 6 (mod 625) ≡ 1 5 1 ( 2 1 5 ⋅ 1 6 ⋅ 1 0 2 − 1 6 ⋅ 1 0 + 1 ) (mod 625) ≡ 1 5 1 ( 1 2 0 0 0 − 1 6 0 + 1 ) (mod 625) ≡ 1 5 1 ( 1 2 5 − 1 6 0 + 1 ) (mod 625) ≡ 1 5 1 ( − 3 4 ) (mod 625) ≡ − 5 1 3 4 (mod 625) ≡ − 1 3 4 (mod 625) ≡ 4 9 1 (mod 625)
This implies that N ≡ 6 2 5 n + 4 9 1 , where n is a integer, and
6 2 5 n + 4 9 1 n + 1 1 ⟹ n N ≡ 0 (mod 16) ≡ 0 (mod 16) ≡ 5 ≡ 6 2 5 ⋅ 5 + 1 1 ≡ 3 6 1 6 (mod 10000)
Therefore, A − 1 6 0 0 = 3 6 1 6 − 1 6 0 0 = 2 0 1 6 .