The last digit of seven to the seven to the seven
What is the last digit of 7 to the power of (7 to the power 7)? That is, the exponent is 7 to the 7 = 823,543, and the number itself has about 700,000 digits. Explain the method so that it works for any tower of exponents, and find the last two digits as well.
Show a hint
The last digits of powers of 7 cycle with period 4. So you need the exponent modulo 4, not the exponent itself.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
The last two digits of seven to the power 2024When is 2 to the n plus 1 divisible by 3?A quick test for divisibility by 7Eight perfect shuffles restore the deckA hundred animals for a hundred pounds
All questions →