Sub topic 6
Last Two Digits of Sums and Products
Prerequisites
Assume you know place value, division with remainders, and basic modular arithmetic. The notation \(a \bmod 100\) means the remainder when \(a\) is divided by 100. That remainder gives the last two digits of \(a\).
For example:
\[ 6386 \bmod 100 = 86 \]
Therefore, 6386 and 86 have the same last two digits.
Reduce every number modulo 100
To find the last two digits of a sum or product, replace each number by its remainder modulo 100. Then perform the operation with the smaller remainders.
This works because congruent numbers remain congruent after addition and multiplication:
\[ a \equiv r \pmod {100} \]
means that \(a\) and \(r\) have the same remainder modulo 100. Thus,
\[ a+b \equiv r+s \pmod {100} \]
and
\[ ab \equiv rs \pmod {100}. \]
| Expression | Reduced calculation | Last two digits |
|---|---|---|
| \(63,486+28,759\) | \(86+59=145\) | 45 |
| \(327\times468\) | \(27\times68=1,836\) | 36 |
| \(14,205-7,938\) | \(5-38=-33\) | 67 |
For a negative result, add 100 until the result lies between 0 and 99. In the table, \(-33+100=67\).
Sums: keep the final remainder
Consider:
\[ 63,486+28,759. \]
Only the last two digits matter:
\[ 86+59=145. \]
The remainder after division by 100 is 45, so the sum ends in 45.
If the result is a single digit, write a leading zero. For example, if the remainder is 7, the last two digits are 07.
For several terms, reduce each term first:
\[ 1,234+5,678+9,876 \]
becomes
\[ 34+78+76=188. \]
Since \(188\bmod100=88\), the answer is 88.
Products: reduce before multiplying
Consider:
\[ 327\times468. \]
Reduce the factors:
\[ 327\equiv27\pmod{100},\qquad 468\equiv68\pmod{100}. \]
Then:
\[ 27\times68=1,836. \]
The last two digits are 36.
For a product with many factors, reduce after every multiplication. For example:
\[ 23\times47\times86. \]
First,
\[ 23\times47=1,081\equiv81\pmod{100}. \]
Then,
\[ 81\times86=6,966\equiv66\pmod{100}. \]
The product ends in 66.
You can also use factors that make mental arithmetic easier. For example:
\[ 48\times75=(50-2)\times75=3,750-150=3,600, \]
so the last two digits are 00.
A repeatable method
Use this process for any sum or product:
- Replace every number by its remainder modulo 100.
- Perform the smaller calculation.
- Reduce the result modulo 100.
- Add a leading zero if the remainder has only one digit.
- Check the result using the last two digits of the original expression when practical.
def last_two_sum(numbers):
remainder = sum(number % 100 for number in numbers) % 100
return f"{remainder:02d}"
def last_two_product(numbers):
remainder = 1
for number in numbers:
remainder = (remainder * (number % 100)) % 100
return f"{remainder:02d}"
print(last_two_sum([63486, 28759])) # 45
print(last_two_product([327, 468])) # 36
print(last_two_product([23, 47, 86])) # 66Exercise
Find the last two digits of 12,347 + 8,965 + 4,288.
Show answer
Reduce to 47 + 65 + 88 = 200. Therefore, the last two digits are 00.