Learn / Library / Brainteasers
Tail of a huge power
What are the last digits of , written as a number from to ?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Square repeatedly modulo and look for the exponent at which the power returns to .
Solution
- Modulo we have , , and .
- Then , so the powers of repeat with period dividing .
- Since , we get modulo .
- The last digits are .
Answer: