More Clock Arithmetic

Up until now you have probably been answering a problem like 3 + 14 mod 6 = ? by looking at a 6 hour clock, starting at 3 and moving ahead 14 hours, to get to 5. There is another way to do this. Since 3 + 14 = 17, what we are really trying to do is find o ut what 17 o'clock is on a 6 hour clock. Going ahead 6 hours on this clock will bring us back to where we started, so if we start at 0, every time we go ahead 6 hours, we are back at 0. To find out what 17 o'clock is, we should keep subtracting 6's until we can't any more, so 17 - 6 = 11, 11 - 6 = 5 and here we stop. Now, we know that repeated subtraction is the process of division, so we are actually dividing 17 by 6 and looking at the remainder as our answer. Here's another example: 5 + 30 mod 8 = 3< /b>, since 35 (= 5 + 30) divided by 8 gives 4 with a remainder of 3 (check this out on an 8 hour clock!). So, to use this division method for doing clock arithmetic we follow these steps: first we add (or subtract) the numbers in the usual w ay, then we divide the result by the modulus and take the remainder of this division as our answer.

Find these numbers using the division method

  • (3 + 8) mod 7 = _____
  • (32 - 3) mod 15 = _____
  • (4 + 5) mod 6 = _____
  • (3 +26) mod 11 = _____
  • (2 + 8) mod 8 = _____
  • (13 - 5) mod 5 = _____
  • (7 + 14) mod 7 = _____
  • (6 + 18) mod 8 = _____
  • Click here to see the answers.

    Having the division method for doing clock arithmetic means that we can do more complicated things than just addition and subtraction. For instance, we can now do multiplication in clock arithmetic!. As an example, we can see that 3 x 7 mod 5 = 1 because 21 (= 3 x 7) divided by 5 gives a remainder of 1, and 6 x 5 mod 15 = 0 since 30 divided by 15 gives a remainder of 0. We can combine multiplication with addition and subtraction to get more complex expressions in clock arithmetic as well. Thus, 3x(7-2) mod 6 = 3 since 15 (= 3x(7-2)) divided by 6 gives a remainder of 3.

    Find these numbers

  • 2 x (6 + 5) mod 7 = ______
  • 7 + 2 x (10 - 2) mod 5 = _______
  • (6 - 2) x (5 + 2) mod 3 = _____
  • Click here to see the answers.

    Let's return to Judy in the video game. Suppose the screen is 18 inches wide and 15 inches high. Every time you press an arrow key on the keyboard, she moves 1 inch in the direction of the arrow (up, down, right or left). If Judy is currently 2 inches fro m the bottom of the screen and 12 inches from the left side of the screen and you press the right arrow key 10 times, where will she now be on the screen? Since she starts at 12 inches from the left side of the screen and goes 10 more inches to the right, she should be 22 inches from the left side of the screen ... but the screen is only 18 inches wide! As soon as she gets 18 inches from the left side, she starts all over again at the left edge of the screen. So, she will be 22 mod 18 = 4 inches from the left side. If you now press the up arrow 18 times, she will be 20 mod 15 = 5 inches from the bottom of the screen. If we know where she is on the screen, we can find out where she will be after any number of any combination of arrow key presses using cloc k arithmetic. Suppose that Judy is again at 2 inches from the bottom and 12 inches from the left side of the screen. Press the left arrow 4 times, the up arrow 10 times, the right arrow 20 times, the up arrow 12 times, the left arrow 2 times, the down arr ow 6 times and the right arrow 9 times. Where's Judy? We can keep track of the left/right and the up/down movements seperately. Consider the left/right moves. She starts at 12, moves to the left are subtractions and moves to the right are additions and th e whole thing is done mod 18, so we would calculate:

    (12 -4 +20 -2 + 9) mod 18 = 35 mod 18 = 17 inches from the left of the screen.

    For the up/down moves, she starts at 2 and ups are additions, downs are subtractions, to get:

    (2 +10 + 12 - 6) mod 15 = 18 mod 15 = 3 inches from the bottom of the screen.

    The up/down calculation is done mod 15 because the screen is only 15 inches high.

    If Judy is 2 inches from the bottom and 12 inches from the left side of the screen, where will she be after these moves?

    Click here to see the answers.

    Answers to Division Method Questions

  • (3 + 8) mod 7 = 4, because 11/7 = 1 with remainder 4
  • (32 - 3) mod 15 = 14, because 29/15 = 1 with remainder 14
  • (4 + 5) mod 6 = 3, because 9/6 = 1 with remainder 3
  • (3 + 26) mod 11 = 7, because 29/11 = 2 with remainder 7
  • (2 + 8) mod 8 = 2, because 10/8 = 1 with remainder 2
  • (13 - 5) mod 5 = 3, because 8/5 = 1 with remainder 3
  • (7 + 14) mod 7 = 0, because 21/7 = 3 with remainder 0
  • (6 + 18) mod 8 = 0, because 24/8 = 3 with remainder 0
  • Return to Questions
    Answers to 2nd set of problems

  • 2 x (6 + 5) mod 7 = 22 mod 7 = 1
  • 7 + 2 x (10 - 2) mod 5 = 23 mod 5 = 3
  • (6 - 2) x (5 + 2) mod 3 = 28 mod 3 = 1
  • Return to Questions
    Answers to Where's Judy?

    First answer: (12 + 25 -6 -5 + 10 - 5) mod 18 = 31 mod 18 = 13 inches from the left
    and (2 + 14 -2 + 12 - 4) mod 15 = 22 mod 15 = 7 inches from the bottom.

    Second answer: (12 + 30 -10 + 15 -12 + 22) mod 18 = 57 mod 18 = 3 inches from the left
    and (2 + 16 - 5 + 8 + 10) mod 15 = 31 mod 15 = 1 inch from the bottom.

    Return to Questions