- Advanced
- About 14 min
- 5 practice questions
Unit digits and cyclicity of powers
Find the last digit of huge powers and products in seconds by using the repeating cycle of unit digits, including towers like a^(b^c).
If something looks wrong, please tell us.
Questions such as 'what is the unit digit of 7^123?' look impossible, but the last digit of a power repeats in a short cycle. Once you know the cycles, these questions take under 30 seconds and appear again and again in competitive exams.
The cycles you must know
Only the unit digit of the base matters. Digits 0, 1, 5 and 6 never change: any power of a number ending in 0, 1, 5 or 6 ends in 0, 1, 5 or 6 respectively. The other digits cycle:
| Base ends in | Cycle of unit digits | Cycle length |
|---|---|---|
| 2 | 2, 4, 8, 6 | 4 |
| 3 | 3, 9, 7, 1 | 4 |
| 7 | 7, 9, 3, 1 | 4 |
| 8 | 8, 4, 2, 6 | 4 |
| 4 | 4, 6 | 2 |
| 9 | 9, 1 | 2 |
Method. Divide the exponent by the cycle length (use 4 for 2, 3, 7, 8 and 2 for 4, 9). If the remainder is 1, 2, 3 take that position in the cycle. If the remainder is 0, take the last number of the cycle.
Worked example 1
Find the unit digit of 7^123. The cycle for 7 is 7, 9, 3, 1 with length 4. Now 123 = 4 x 30 + 3, so the remainder is 3 and we take the third entry, which is 3. Check: 7^3 = 343 ends in 3. Answer: 3.
Worked example 2: a power tower
Find the unit digit of 2^(3^4). First evaluate the exponent: 3^4 = 81. The cycle of 2 has length 4 and 81 = 4 x 20 + 1, so the remainder is 1 and we take the first entry, 2. Answer: 2.
Worked example 3: a product
Find the unit digit of 13^45 x 24^31. For 13^45 use the digit 3: 45 = 4 x 11 + 1, so the unit digit is 3. For 24^31 use the digit 4: the exponent 31 is odd, so the unit digit is 4. Multiply the unit digits: 3 x 4 = 12, whose unit digit is 2.
Reduce the exponent modulo the cycle length. Remainder 0 means the LAST entry of the cycle, not the first.
Key takeaways
- Only the unit digit of the base matters.
- Digits 0, 1, 5, 6 never change; 4 and 9 have cycle length 2; 2, 3, 7, 8 have cycle length 4.
- Remainder 0 on dividing the exponent maps to the last entry of the cycle.
- For a tower a^(b^c), evaluate the exponent first, then reduce it by the cycle length.
Check your understanding
-
1. What is the unit digit of 8^67?
- 4
- 2
- 6
- 8
Show answer
Answer: B. The cycle of 8 is 8, 4, 2, 6 (length 4). 67 = 4 × 16 + 3, so take the third entry, 2.
-
2. What is the unit digit of 9^100?
- 9
- 3
- 7
- 1
Show answer
Answer: D. The cycle of 9 is 9, 1 (length 2). The exponent 100 is even, so take the second entry, 1.
-
3. What is the unit digit of 2^100 + 3^100?
- 5
- 9
- 7
- 0
Show answer
Answer: C. 100 is a multiple of 4, so both powers take the LAST entry of their cycles: 2^100 ends in 6 (cycle 2, 4, 8, 6) and 3^100 ends in 1 (cycle 3, 9, 7, 1). 6 + 1 = 7.
-
4. What is the unit digit of 3^(2^5)?
- 1
- 3
- 9
- 7
Show answer
Answer: A. Evaluate the exponent first: 2^5 = 32. The cycle of 3 has length 4 and 32 = 4 × 8, remainder 0, so take the last entry of 3, 9, 7, 1, which is 1.
-
5. What is the unit digit of 6^55 + 5^23?
- 5
- 1
- 6
- 0
Show answer
Answer: B. Any power of a number ending in 6 ends in 6, and any power of a number ending in 5 ends in 5. 6 + 5 = 11, so the unit digit is 1.
Sign in to keep track of the lessons you finish.