Sub topic 2
Unit Digit of Sums, Differences and Products
Prerequisites: place value, basic arithmetic, division with remainders, and the idea of a remainder modulo 10.
The unit digit is the digit in the ones place. It is also the remainder when a number is divided by 10. For example:
- \(347 \div 10\) leaves remainder \(7\), so the unit digit of 347 is 7.
- \(1,920 \div 10\) leaves remainder 0, so the unit digit is 0.
We write “remainder modulo 10” as \(n \bmod 10\). Therefore, finding the unit digit means finding \(n \bmod 10\).
The basic rule
For sums, differences, and products, keep only the unit digit of each number. The other digits do not affect the final unit digit.
If \(a \equiv r \pmod {10}\) and \(b \equiv s \pmod {10}\), then:
- \(a+b \equiv r+s \pmod {10}\)
- \(a-b \equiv r-s \pmod {10}\)
- \(ab \equiv rs \pmod {10}\)
After calculating, reduce the result to one digit from 0 through 9.
| Operation | Example using full numbers | Same operation using unit digits |
|---|---|---|
| Sum | \(347+826=1173\) | \(7+6=13\), so unit digit 3 |
| Difference | \(826-347=479\) | \(6-7=-1\), so unit digit 9 |
| Product | \(347\times826\) | \(7\times6=42\), so unit digit 2 |
For a negative remainder, add 10 until the result is between 0 and 9. Thus, \(-1 \bmod 10=9\).
Sums and differences
Example: Find the unit digit of
\[ 8,472+35,619-2,843. \]
Keep only the unit digits:
\[ 2+9-3=8. \]
The unit digit is 8.
A difference can become negative during the calculation. For example, find the unit digit of \(4,126-7,839\).
\[ 6-9=-3. \]
Since \(-3+10=7\), the unit digit is 7. This agrees with the fact that \(4,126-7,839=-3,713\), whose unit digit is 7.
When several terms are present, reduce after each step if that is easier:
\[ 7+8+9=24 \equiv 4 \pmod {10}. \]
The unit digit is 4.
Products
For products, multiply only the unit digits and retain the unit digit of the result.
Example: Find the unit digit of
\[ 2,347\times 6,812\times 95. \]
The relevant unit digits are 7, 2, and 5:
\[ 7\times2\times5=70. \]
The unit digit is 0.
This method is especially useful when one factor ends in 0 or 5. Any product containing a factor ending in 0 ends in 0. A product containing a factor ending in 5 ends in 0 when another factor is even, because \(5\times2\) contains a factor of 10.
# Unit digit of a sum, difference, or product
a, b, c = 347, 826, 95
print((a + b) % 10) # 3
print((a - b) % 10) # 1
print((a * b * c) % 10) # 0Common errors
- Do not add the digits of a number. The unit digit of 347 is 7, not \(3+4+7=14\).
- Do not stop before reducing a product. The product \(7\times6=42\) has unit digit 2.
- Treat a negative remainder correctly. Under the usual 0-to-9 convention, \(-4\) gives unit digit 6.
- Do not discard a zero unit digit. It is a valid answer.
Exercise
Find the unit digit of 7,284 - 9,617 + 3,456.
Show answer
Keep the unit digits: 4 - 7 + 6 = 3. The unit digit is 3.