Determine the remainder when . is divided by
For those who are not aware of it is
17^17^17
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 1 7 1 7 = S , then 1 7 1 7 1 7 = 1 7 S . To find 1 7 S ( m o d 1 7 2 9 ) , we can just apply the Chinese Remained Theorem on the results 1 7 S ( m o d 7 ) , 1 7 S ( m o d 1 3 ) , 1 7 S ( m o d 1 9 ) , since we have 1 7 2 9 = 7 ∗ 1 3 ∗ 1 9 .
We first note that:
S = 1 7 1 7 ≡ ( − 1 ) 1 7 ( m o d 6 ) ≡ 5 ( m o d 6 )
S = 1 7 1 7 ≡ ( 5 ) 1 7 ( m o d 1 2 ) ≡ 5 ( m o d 1 2 )
S = 1 7 1 7 ≡ ( − 1 ) 1 7 ( m o d 1 8 ) ≡ 1 7 ( m o d 1 8 )
These congruences help in the application of Fermat's Little Theorem to figure out the congruences later modulo the various primes. The second congruence is an extension from the result 5 4 ≡ 1 ( m o d 1 2 ) as taken from Euler's totient theorem.
We then have:
1 7 S ( m o d 7 ) ≡ 3 S ( m o d 7 ) ≡ 3 5 ( m o d 7 ) ≡ 5 ( m o d 7 )
1 7 S ( m o d 1 3 ) ≡ 4 S ( m o d 1 3 ) ≡ 4 5 ( m o d 1 3 ) ≡ 1 0 ( m o d 1 3 )
1 7 S ( m o d 1 9 ) ≡ ( − 2 ) S ( m o d 1 9 ) ≡ − 2 1 7 ( m o d 1 9 ) ≡ 9 ( m o d 1 9 )
Then applying CRT on these congruences give us 1 7 S ≡ 7 1 2 ( m o d 1 7 2 9 ) , hence our answer is 7 1 2