Emzini weCodeUmhlahlandlelaMathematics 3.7 · Factors, Primes and Remainders NoticesAll books

Chapter 3/3.7Accelerateabout 8 min

Remainders and clock arithmetic

Try this first

It is 9 o'clock. What time will a clock show 5 hours from now? 17 hours from now? 100 hours from now?

On a clock, 9 + 5 is not 14. It is 2. The clock throws away every complete turn of 12 and keeps only what is left over. What is left over after dividing is called the remainder.

Definition

remainder When a whole number is divided by another, the remainder is the amount left over after taking out as many complete groups as possible. The remainder is always smaller than the number you divide by. For example, 47 ÷ 5 = 9 remainder 2, because 47 = 9 × 5 + 2.

For 100 hours from 9 o'clock, we do not count round the clock. We find the remainder: 100 = 8 × 12 + 4. Eight complete turns change nothing, so the clock moves on 4 hours and shows 1 o'clock.

Arithmetic that keeps only remainders is called modular arithmetic or clock arithmetic. It was organised into a complete system in 1801 by Carl Friedrich Gauss, a German mathematician who was 24 years old at the time. Clocks use the number 12. The days of the week use 7.

Worked example 3.8

Today is Tuesday. What day of the week will it be in 100 days?

The days repeat every 7.
Find the remainder when 100 is divided by 7.
100 = 14 × 7 + 2
Fourteen complete weeks bring us back to Tuesday.
Two more days bring us to Thursday.
It will be a Thursday.

Now try one yourself

Clock arithmetic: only the remainder mattersWhole turns change nothing. Only what is left over moves the hand on.15 HOURS AFTER 9 O'CLOCK9 + 5 = 2 on a clock14 = 1 × 12 + 2faint hand: 9 o'clockdark hand: 5 hours laterred: the 5 steps round2100 DAYS AFTER A TUESDAY14 full turns firstTuesday + 100 days= Thursday100 = 14 × 7 + 2faint pointer: Tuesdaygrey: 14 whole weeksred: 2 more days12345678910111212345SunMonTueWedThuFriSat12
Figure 3.8 A clock keeps the remainder after dividing by 12. The week keeps the remainder after dividing by 7.

The rule that makes remainders powerful. To find the remainder of a sum or a product, you may replace each number by its own remainder first.

Key fact

Remainders can be added and multiplied. The remainder of a sum is found by adding the remainders. The remainder of a product is found by multiplying the remainders. If the result is too large, take its remainder again.

Why is this true? Dividing by 5, say, every number is a pile of complete fives plus a remainder. When you add or multiply two numbers, the complete fives only ever produce more complete fives. Only the leftovers can produce a new leftover.

Worked example 3.9

Find the remainder when 2,026 × 2,027 is divided by 5.

2,026 leaves remainder 1 (it is 1 more than 2,025).
2,027 leaves remainder 2.
So the product leaves remainder 1 × 2 = 2.
We never needed to work out that 2,026 × 2,027 = 4,106,702.

Now try one yourself

Worked example 3.10

What is the last digit of 7100?

The last digit of a number is its remainder when divided by 10, so we only ever need to track last digits.
71 ends in 7. 72 = 49 ends in 9. 73 ends in the last digit of 9 × 7 = 63, which is 3. 74 ends in the last digit of 3 × 7 = 21, which is 1.
Then 75 ends in 7 again, and the pattern 7, 9, 3, 1 repeats every four powers.
Since 100 is a multiple of 4, the power 7100 lands on the fourth place in the cycle.
The last digit is 1.
The number 7100 has 85 digits.
No calculator will show it, yet we know its last digit for certain.

Now try one yourself

Odd and even. The simplest remainders of all come from dividing by 2. Even numbers leave remainder 0 and odd numbers leave remainder 1. The remainder rule then tells us at once that odd + odd = even (1 + 1 = 2, remainder 0), odd × odd = odd (1 × 1 = 1), and even × anything = even. Arguments about odd and even are called parity arguments. They are short, and they solve some surprisingly hard problems. You will meet one in the Olympiad Corner.

Common mistake

Giving a remainder that is too big. The answer "47 ÷ 5 = 8 remainder 7" is wrong, because another group of 5 can still be taken out of the 7. A remainder must be less than the number you divide by.

Check your understanding 3.7

  1. Find the remainder when 150 is divided by 12.
    Show answerHide answer
    150 = 12 × 12 + 6. Remainder 6.
  2. It is 10 o'clock. What will a clock show 50 hours from now?
    Show answerHide answer
    50 = 4 × 12 + 2. The clock shows 12 o'clock.
  3. Find the remainder when 123 + 456 is divided by 5, without adding.
    Show answerHide answer
    123 leaves 3 and 456 leaves 1. 3 + 1 = 4. Remainder 4.
  4. What is the last digit of 210? Find it from the pattern of last digits.
    Show answerHide answer
    Last digits of powers of 2 go 2, 4, 8, 6 and repeat every four. 10 = 2 × 4 + 2, so 210 is in the second place of the cycle. Last digit 4. (210 = 1,024.)