Sub topic 13
Units Digits and Repeating Power Cycles
Assume you can work with exponents and remainders. This chapter shows how to find the units digit, the digit in the ones place, of a large power without calculating the entire number.
Why power cycles work
The units digit of a product depends only on the units digits of its factors. For example,
\[ 17 \times 23 = 391 \]
and
\[ 7 \times 3 = 21, \]
so both products have units digit 1. In remainder notation, this means calculations can be done modulo 10. The notation \(a \equiv b \pmod {10}\) means that \(a\) and \(b\) have the same remainder when divided by 10.
For powers, the units digits often repeat in a cycle.
Consider powers of 7:
| Exponent | Power | Units digit |
|---|---|---|
| 1 | \(7^1\) | 7 |
| 2 | \(7^2\) | 9 |
| 3 | \(7^3\) | 3 |
| 4 | \(7^4\) | 1 |
| 5 | \(7^5\) | 7 |
The cycle is \(7, 9, 3, 1\), with length 4. Therefore, to find the units digit of \(7^{100}\), divide the exponent by 4:
\[ 100 \div 4 = 25 \text{ remainder } 0. \]
A remainder of 0 means use the last item in the cycle, so the units digit is 1.
print(pow(7, 100, 10)) # 1The third argument in pow asks Python to calculate the remainder modulo 10 without constructing the full power.
The cycle method
Use this procedure:
- List powers of the base until a units digit repeats.
- Record the cycle length.
- Divide the exponent by the cycle length.
- Use the remainder to select a cycle position.
- If the remainder is 0, use the final position.
For \(3^n\), the units digits are \(3, 9, 7, 1\). Thus \(3^{58}\) has the same units digit as the second item because \(58\) leaves remainder 2 when divided by 4. The answer is 9.
Special bases and common errors
Some bases have shorter cycles:
- Powers of 2 cycle through \(2, 4, 8, 6\).
- Powers of 5 always end in 5.
- Powers of 6 always end in 6.
- Powers of 0 always end in 0 when the exponent is positive.
- Powers of 1 always end in 1.
- Powers of 9 alternate between 9 and 1.
For a base ending in 4 or 9, a cycle of length 2 is enough. For a base ending in 0, 1, 5, or 6, no cycle calculation is needed.
Be careful with an exponent of 0. For every nonzero base, \(a^0=1\), so its units digit is 1. Also, reduce the base modulo 10 before building the cycle. The units digit of \(37^n\) follows the same cycle as \(7^n\).
GRE strategy
For a quantitative comparison, look for the exponent's remainder before calculating. For a numeric entry question, write the short cycle clearly and map the remainder to its position. This avoids large-number arithmetic and reduces calculator dependence.
Exercise
What is the units digit of 8^37?
Show answer
The cycle for powers of 8 is 8, 4, 2, 6. Since 37 leaves remainder 1 when divided by 4, use the first item. The units digit is 8.