Try this
- Each time goes up by , the hand moves one mark. Add times in a row and the hand is back where it started. In the table it has moved down one row, but it is still in the same column.
- Pick any two numbers in the same column and subtract. What is the difference always a multiple of?
- Drag to . Which column does it land in? Is that the remainder you expected?
- Switch to “Add”. Press , and a few times. Which of the three readouts never moves?
- Switch to “Multiply” and repeat step 4.
Definition Let be a positive integer. If , we say that is congruent to modulo and write .
Being congruent means “leaving the same remainder when divided by ”, which is the same as “being in the same column of the table”. Each column is called a residue class, and there are of them modulo .
Predict first
Today is Wednesday. What day of the week will it be days from now?
The days of the week form a mod- clock. , so : go round full turns, then more marks forward. It will be Friday. Those turns make no difference to the answer. That is exactly what congruences are for: throwing away the full turns that do not affect the result.
Why
Steps 4 and 5 say that before you add or multiply, you can replace each number by any other number in its column. Why does swapping change nothing?
Congruent numbers can replace each other
Step 1 / 5- Work it out once
Mod : , which lands in the “≡0” column.
If you can swap in multiplication, you can swap in powers (repeated multiplication) too: if , then . So you can find the remainder of a number even when it is far too big to write down.
Example Find the remainder when is divided by . and , so
Remove one condition
Adding, subtracting and multiplying are all safe. Dividing (cancelling) is not, unless one extra condition holds.
Break it
Counterexample lab: remove one condition
Conclusion: if , you can cancel and get ← still true?
Mod , multiply by . Each gets an arrow pointing to the remainder of . The seven arrows land in seven different places: if and land in the same place, then and must have started in the same place. So you can cancel.
Mod , multiply by . Count them: how many arrows point to ?
and both land on , but . Cancelling fails. and differ by : all you can keep is .
Practice
Find the remainder when is divided by .
Find the remainder when is divided by .
Find the remainder when is divided by .
Prove that for every positive integer , is divisible by .