Question

Difficulty: Very hardRemainders and Units Digit Cyclicity

What is the remainder when 17171717^{17^{17}} is divided by 77?

Answer: 5

Answer

The remainder when 17171717^{17^{17}} is divided by 77 is 55.
First, reduce the base modulo 77: 173(mod7)17 \equiv 3 \pmod 7, turning the expression into 31717(mod7)3^{17^{17}} \pmod 7. Next, evaluate the pattern of powers of 3(mod7)3 \pmod 7: 3133^1 \equiv 3, 3223^2 \equiv 2, 3363^3 \equiv 6, 3443^4 \equiv 4, 3553^5 \equiv 5, and 3613^6 \equiv 1, showing a period of 66. To find which term of the cycle corresponds to the exponent 171717^{17}, evaluate 1717(mod6)17^{17} \pmod 6. Since 171(mod6)17 \equiv -1 \pmod 6, 1717(1)17=15(mod6)17^{17} \equiv (-1)^{17} = -1 \equiv 5 \pmod 6. Finally, the 55 th term of the cycle gives 35=2435(mod7)3^5 = 243 \equiv 5 \pmod 7. Therefore, the remainder is 55.

Step-by-Step Solution

1
Reduce the base modulo 7
173(mod7)17 \equiv 3 \pmod 7, so 17171731717(mod7)17^{17^{17}} \equiv 3^{17^{17}} \pmod 7.
Modular arithmetic permits replacing the base of an exponential expression with its remainder upon division by the modulus.
2
Determine the cyclicity period of powers of 3 modulo 7
The remainders of 3n(mod7)3^n \pmod 7 repeat in a cycle of length 6: (3,2,6,4,5,1)(3, 2, 6, 4, 5, 1).
By Fermat's Little Theorem, 361(mod7)3^6 \equiv 1 \pmod 7, meaning the sequence of remainders repeats every 6 integer powers.
3
Evaluate the exponent 171717^{17} modulo the period length 6
171(mod6)17 \equiv -1 \pmod 6, so 1717(1)17=15(mod6)17^{17} \equiv (-1)^{17} = -1 \equiv 5 \pmod 6.
The position within the 6-term cyclicity pattern depends on the exponent modulo 6. Using negative remainders simplifies calculating odd powers of 1-1.
4
Calculate the final remainder using the 5th position in the cyclicity pattern
35=243=7×34+55(mod7)3^5 = 243 = 7 \times 34 + 5 \equiv 5 \pmod 7.
Since the exponent leaves a remainder of 5 when divided by 6, the overall remainder corresponds to 35(mod7)3^5 \pmod 7.

Key Concept

Modular cyclicity and tower exponent remainder reduction
Rate this question