Question
What is the units digit of ?
Solution — Step by Step
We don’t need to calculate — it’s astronomically large. Instead, we look at only the units digit, which follows a repeating cycle.
Compute units digits of successive powers of 7:
- → units digit 7
- → units digit 9
- → units digit 3
- → units digit 1
- → units digit 7 (cycle repeats!)
The units digits cycle is: 7, 9, 3, 1, 7, 9, 3, 1, …
The cycle has period 4: every 4 consecutive powers of 7 have units digits 7, 9, 3, 1.
In general: the units digit of depends only on the remainder when is divided by 4.
| Remainder (n mod 4) | Units digit of |
|---|---|
| 1 | 7 |
| 2 | 9 |
| 3 | 3 |
| 0 | 1 |
So .
From our table: when the remainder is 0 (i.e., the exponent is divisible by 4), the units digit is 1.
We can verify with small cases: ends in 1, ends in 1, ends in 1, … ends in 1. ✓
Why This Works
The units digit of a product depends only on the units digits of the factors. So mod 10 depends only on mod 10, and the sequence is periodic because there are only finitely many possible remainders mod 10 (0–9).
The period must eventually repeat, and once we see a repeat (we see 7 again at after ), the cycle has length 4. This is guaranteed by modular arithmetic — it’s not just an observation, it’s a theorem (Fermat’s little theorem gives the upper bound on cycle lengths).
The same method applies to units digit of (cycle: 3, 9, 7, 1, period 4), (cycle: 2, 4, 8, 6, period 4), (cycle: 4, 6, period 2), (always 5), (always 6).
Alternative Method
. Since ends in 1, any power of also ends in 1 (since ). So the units digit is 1.
This is slightly faster when the exponent is divisible by the cycle length.
Common Mistake
Students often make an off-by-one error in reading the table: they compute but then look up the row for “remainder 0” and misread it as “4th position in cycle = 1” but write “7” (confusing position 1 with remainder 1). Write the table carefully with the remainder in the left column, and trust it: remainder 0 → units digit 1.
For any base , the units digit cycle length divides (Euler’s totient function for 10), where . That’s why 3, 7, 9 all have period dividing 4. Bases ending in 2, 4, 5, 6, 8, 0 have their own (often shorter) cycles. This fact saves you from rediscovering the cycle each time.