Module 3.6 · Number Theory
Units digits
The units digit of a number is its remainder when divided by . That makes units-digit questions a special kind of remainder problem, and one of the most common number theory questions on MATHCOUNTS and the AMC 8. The key fact: only units digits affect units digits.
Only the last digit matters
When you add or multiply, the units digit of the answer depends only on the units digits of the inputs. For , the units digit is the units digit of , which is . The tens, hundreds and higher digits only affect the higher digits of the result.
So in any units-digit problem, you can replace every number by its last digit right away: has the same units digit as .
Powers cycle
Here are the units digits of the first few powers of each digit.
| Last digit | Units digits of powers | Cycle length |
|---|---|---|
| always , , , | ||
Every cycle length divides . So for any last digit, the pattern repeats every powers.
Units digit of a power
To find the units digit of (for ), find the remainder when is divided by .
- Remainder : use the st, nd or rd entry of the cycle for the last digit of .
- Remainder : use the th entry (the last one in the cycle).
Common mistake
Remainder means the end of the cycle, not "the units digit is " or "the th power." For : leaves remainder , so use the th entry of , which is .
Worked example: A single power
What is the units digit of ?
, remainder . The cycle for is , so use the st entry: .
Worked example: A sum of powers
What is the units digit of ?
- : leaves remainder , so the th entry of : .
- : leaves remainder , so the nd entry of : .
- : leaves remainder , so the th entry of : .
Add the units digits: . The units digit is .
Worked example: A tower of exponents
What is the units digit of ?
A tower is read from the top down: . Since , use the rd entry of : the units digit is .
For a much taller tower, you only need the exponent's remainder when divided by . Find that with remainder rules.
Tip
A product that includes a factor ending in and an even factor ends in . A product of only odd numbers that includes one ending in ends in . Check for these before doing any work.
Practice
What is the units digit of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the units digit of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the units digit of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which of the following can never be the units digit of a perfect square?
What is the units digit of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the units digit of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the units digit of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the units digit of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the units digit of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Real contest practice
- 2012 AMC 8, Problem 12: the units digit of a large power.
- 2022 AMC 8, Problem 17: the units digit of a sum of "double factorials" (products of even numbers).