Sub topic 1
The Last Digits of a Number Are Its Remainders Mod 10 and Mod 100
Prerequisites
You should be comfortable with place value, basic arithmetic, division with remainders, and prime factorisation. You should also know that \(n!\) means the product \(1 \times 2 \times \cdots \times n\). This chapter uses modular arithmetic, which means working with remainders instead of complete numbers.
Last Digits and Remainders
The unit digit, or last digit, of a positive integer is its remainder when divided by 10.
For example:
\[ 347 \div 10 = 34 \text{ remainder } 7 \]
Therefore,
\[ 347 \equiv 7 \pmod {10} \]
The symbol \(\equiv\) means “has the same remainder as.” The expression \(347 \equiv 7 \pmod {10}\) says that both numbers leave remainder 7 when divided by 10.
The last two digits are the remainder when the number is divided by 100:
\[ 347 \equiv 47 \pmod {100} \]
Thus, finding the last digit is a mod 10 problem, and finding the last two digits is a mod 100 problem.
Why the Reduction Works
If two numbers have the same remainder modulo \(m\), their sums and products also have the same remainder modulo \(m\). In symbols:
\[ a \equiv r \pmod m,\qquad b \equiv s \pmod m \]
then
\[ a+b \equiv r+s \pmod m \]
and
\[ ab \equiv rs \pmod m \]
You can reduce numbers before doing the calculation. This is especially useful when the original numbers are very large.
For example, to find the last two digits of \(8,347+12,268\), reduce each number modulo 100:
\[ 8,347 \equiv 47 \pmod {100} \]
\[ 12,268 \equiv 68 \pmod {100} \]
Then add:
\[ 47+68=115 \equiv 15 \pmod {100} \]
So the last two digits are 15.
For a product:
\[ 3,437 \times 624 \]
Only the last two digits of each factor matter:
\[ 3,437 \equiv 37 \pmod {100},\qquad 624 \equiv 24 \pmod {100} \]
\[ 37 \times 24=888 \equiv 88 \pmod {100} \]
Therefore, the product ends in 88.
| Question | Modulus | What to keep |
|---|---|---|
| Last digit of \(n\) | 10 | \(n \bmod 10\) |
| Last two digits of \(n\) | 100 | \(n \bmod 100\) |
| Last three digits of \(n\) | 1000 | \(n \bmod 1000\) |
A Reliable CAT Method
For a sum, difference, or product:
- Identify the required number of final digits.
- Use modulus \(10\), \(100\), or \(1000\).
- Replace each large number by its remainder.
- Perform the smaller calculation.
- Reduce the final result again if necessary.
For subtraction, a negative remainder can be converted into the standard non-negative remainder. For example:
\[ 23-57=-34 \]
Modulo 100, this is:
\[ -34 \equiv 66 \pmod {100} \]
So a number ending in \(-34\) in a calculation has final two digits 66.
If the answer for the last two digits is less than 10, write a leading zero. For example, remainder 7 means the last two digits are 07, not 7.
Worked Check
Find the last two digits of:
\[ (8,912+4,765)\times 23 \]
First reduce the numbers modulo 100:
\[ 8,912 \equiv 12,\qquad 4,765 \equiv 65 \]
Then:
\[ (12+65)\times 23=77\times 23=1,771 \]
Finally:
\[ 1,771 \equiv 71 \pmod {100} \]
The answer is 71.
Exercise
Find the last two digits of \(6,438 \times 157 + 2,906\).
Show answer
Reduce modulo 100: \(6,438 \equiv 38\), \(157 \equiv 57\), and \(2,906 \equiv 6\). Then \(38 \times 57 + 6 = 2,172\), so the last two digits are 72.