Last Digits: Power Cycles
Find the last digit of large powers using repeating cycles. Learn cycle lengths, exponent remainders and how to combine powers in sums and products.
Junior Olympiad · Intermediate Olympiad · 0 of 26 solved
The stubborn five
Before powers
A last digit is a units digit. For products and sums, only the units digits of the inputs matter. If you want practice with addition, subtraction and ordinary multiplication first, start with Last Digits: Arithmetic.
From products to powers
A power is repeated multiplication: . Multiply the current last digit by 7 to get the next one.
- 717
- 729
- 733
- 741
- 757
The last digit returns to 7 at the fifth power. The period is 4.
Show calculations
| Power | What happens in the units column | Last digit |
|---|---|---|
| Start at 7 | 7 | |
| 9 | ||
| 3 | ||
| 1 | ||
| 7 |
We are back at 7. The same last digit followed by the same multiplication always gives the same next last digit, so the pattern repeats:
The period is the number of digits in one repeating cycle. Powers of 7 have cycle and period 4.
The table of last digits
This table starts at exponent 1. Choose the row using the last digit of the base.
Find the last digit of a power
Enter a base and a positive exponent. The rows show the base's last digit; the columns show the exponent k. Each cell is the last digit of the resulting power. The period tells you when that row starts over.
Use row 7: the base ends in 7. Its digits repeat every 4 powers.
Dividing the exponent by 4 leaves remainder 2, so use cycle position 2. Read the blue cell in column k=2: the last digit is 9.
| Base ends in | k=1 | k=2 | k=3 | k=4 | k=5 | k=6 | k=7 | k=8 | Period |
|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| 2 | 2 | 4 | 8 | 6 | 2 | 4 | 8 | 6 | 4 |
| 3 | 3 | 9 | 7 | 1 | 3 | 9 | 7 | 1 | 4 |
| 4 | 4 | 6 | 4 | 6 | 4 | 6 | 4 | 6 | 2 |
| 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 1 |
| 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 1 |
| 7 | 7 | 9 | 3 | 1 | 7 | 9 | 3 | 1 | 4 |
| 8 | 8 | 4 | 2 | 6 | 8 | 4 | 2 | 6 | 4 |
| 9 | 9 | 1 | 9 | 1 | 9 | 1 | 9 | 1 | 2 |
Blue is your answer. Green is the first return to the starting digit. For example, 7⁵ ends in 7 again, so the period is 4. Scroll sideways to see all exponents.
- 0, 1, 5, 6: one digit stays the same.
- 4, 9: two digits take turns.
- 2, 3, 7, 8: four digits repeat.
A big exponent is a position in a cycle
The cycle is , with period 4. Divide the exponent by 4:
After 506 complete cycles, take two more steps. The 2026th term is the same as the second term: 9.
- Keep the last digit of the base. Find its cycle and period.
- Divide the exponent by the period and find the remainder.
- Use the remainder as the position in the cycle. If the remainder is 0, take the last position.
- 7
- 9
- 3
- 1
Period 4. The exponent leaves remainder 2, so take position 2. The last digit is 9.
For the cycle is . Since , the remainder is 0. We have just finished a cycle: take its last digit, 6.
Remainder 0 does not mean the answer is 0. It means the last position in the cycle. These cycles describe positive exponents; for a nonzero base, exponent 0 gives 1.
The last digit of is the same as that of . The cycle is , with period 2. Since , take the first digit: 9.
Combine the ideas
For a sum or product of powers, find each last digit first and then combine them. For subtraction, add 10 to a negative units difference: for example, gives the units digit 5.
Keep the units digits. Find the repeating cycle. Reduce the exponent by its period. Treat remainder 0 as the final position, then combine any sums, products or differences.
The practice keeps the power problems from the original teacher set, including all nine competition references. The two ordinary arithmetic exercises are now in Last Digits: Arithmetic.
When the exponent is another power
Continue with Last Digits: Power Towers for nested exponents. The next lesson includes JMO 2024 A10 and Hamilton 2024 Q4.
The competition name describes the source paper; this lesson is grouped by the power-cycle method, even when an original question came from an older age group.