Interactive · 1 question
We know that addition, subtraction, and multiplication are preserved under congruences. That is, if and , then:
However, it is easy to see that division does not work in congruences (or at least, it does not work in the way we would wish). Consider the easy example: The first statement is true, but the second statement, which "follows" by dividing both sides by , is not true.
So what should we do about this?
We shouldn't just give up on division just yet! In the above example, even though is not true, is still true! Thus, we have a weaker congruence, but still something we can work with.
Observe the following: It seems that multiplying by "cuts out information" by making it impossible to distinguish between and , between and , and between and . This gives us a clue as to how we should modify our claim so that division works in congruences.
In general, we can say the following: if then
To prove it, we will use the following lemma:
Lemma: If , then .
Proof: Since , there exist such that , , and . Then, for some , so . Therefore, . However, since and , . Therefore, , so , and we are done proving the lemma.
Now, suppose that . Then, for some , meaning that , which is an integer. Thus, . By the lemma, . Therefore, and the proof is complete.
As a special note, if , then it follows immediately that division modulo will work as normal. Thus, for example, if is a prime number, then as long as is not a multiple of , then division will work normally modulo .