Try this
- : drag from to . Do any arrows ever collide?
- : compare with . Then try every from to and write down all the with no collisions.
- When there are collisions, look at “Places reached”: with , only places are reached. How many for ? How is that related to ?
- When there are collisions, what do the numbers at the places that get hit have in common? (, : .)
Take one number from each residue class mod . The numbers you get form a complete residue system mod . In other words: integers that are pairwise incongruent.
A complete residue system mod can be , or , or even . Any consecutive integers form a complete residue system.
Predict first
Write down any integers. Which statement below is always true?
There are only residue classes mod ( boxes). Put numbers into them and two must land in the same class; their difference is a multiple of .
The other two statements can fail: take (all leave remainder ). Any two of them add up to something that leaves remainder , and none of them is a multiple of .
Among any integers, two are congruent mod . The residue classes are ready-made pigeonholes.
Why
When (a, m) = 1, multiplying by a just reorders
Step 1 / 6- What we want to prove
Mod , multiply by : each of the seven remainders sends out one arrow. We want to prove that as long as , the arrows all land in different places.
What it is good for: check just one period
In an expression that only uses addition, subtraction and multiplication, replacing by a congruent number does not change the remainder of the result. So to find every possible value mod , you only need to put in the numbers of one complete residue system for , one at a time.
For example, what remainders can leave when divided by ? Just check :
Remove one condition
Break it
Counterexample lab: remove one condition
Conclusion: when runs through a complete residue system mod , so does ← still true?
, . Nine arrows, nine landing places: no repeats, none missed.
, , and . Which places get no arrow at all?
is always a multiple of , so it can only land on . Each of those is hit by arrows, and the other six places stay empty. Try other values of in the machine: which are good mod ?
Practice
Find the with such that .
For which among is a complete residue system mod ?
What is the smallest number of integers you must pick to be sure that two of them differ by a multiple of ?
Prove that from any integers you can always choose whose sum is divisible by .