Sub topic 4
Unit Digit of a Large Power in Three Steps
Assume you know place value, division with remainders, and the laws of exponents. The goal is to find the unit digit of \(a^n\) without calculating the full power.
The unit digit is the remainder when a number is divided by 10. Therefore, every unit-digit question is a question about arithmetic modulo 10.
The three-step method
Step 1: Reduce the base modulo 10
Only the unit digit of the base matters. For example, \(27^{123}\) and \(7^{123}\) have the same unit digit because \(27\) and \(7\) have the same remainder modulo 10.
Write
\[ 27^{123}\equiv 7^{123}\pmod {10}. \]
Step 2: Identify the cycle
The unit digits of powers repeat. The cycle depends on the base's unit digit.
| Unit digit of base | Repeating unit digits |
|---|---|
| 2 | 2, 4, 8, 6 |
| 3 | 3, 9, 7, 1 |
| 4 | 4, 6 |
| 7 | 7, 9, 3, 1 |
| 8 | 8, 4, 2, 6 |
| 9 | 9, 1 |
The digits 0, 1, 5, and 6 do not need a cycle calculation. Every positive power keeps the same unit digit.
For instance:
\[ 7^1\to 7,\quad 7^2\to 9,\quad 7^3\to 3,\quad 7^4\to 1, \]
and then the sequence repeats.
Step 3: Find the position in the cycle
Divide the exponent by the cycle length and use the remainder.
For a cycle of length 4:
- remainder 1 means the first position,
- remainder 2 means the second position,
- remainder 3 means the third position,
- remainder 0 means the fourth position.
Find the unit digit of \(7^{123}\):
- The base already ends in 7.
- The cycle is \(7,9,3,1\), with length 4.
- \(123\div4\) leaves remainder 3, so use the third entry.
Therefore, the unit digit is 3.
\[ 7^{123}\equiv 3\pmod {10}. \]
The remainder 0 case is a common source of mistakes. For example, \(7^{124}\) uses the fourth entry, 1, not the first entry, 7.
Special cases and checks
If \(n=0\), then \(a^0=1\) for every nonzero \(a\). The cycle-position method above assumes a positive exponent.
If the base ends in 0, 1, 5, or 6, use that digit directly for a positive exponent. For example, \(35^{82}\) ends in 5.
You can check a hand calculation with modular exponentiation. Python's three-argument pow computes \(a^n\bmod m\) efficiently, without constructing the entire power.
# Unit digit and last two digits are remainders mod 10 and mod 100.
print(pow(7, 123, 10)) # 3
print(pow(7, 2026, 100)) # 49A quick CAT decision rule
When the exponent is large, do not expand the power. Reduce the base to its unit digit, write its cycle, and reduce the exponent by the cycle length. This usually takes less than 30 seconds.
Exercise
Find the unit digit of 3^2026. State the cycle, the relevant remainder, and the answer.
Show answer
The cycle of 3 is 3, 9, 7, 1, with length 4. Since 2026 mod 4 = 2, use the second entry. The unit digit is 9.