Let . We say that integers and are congruent modulo , and write if divides
Another way to think about this is that 2 numbers are congruent modulo if the leave the same remainder when divided by . this is an equivalence relation on , and so the integers can be partitioned into congruence classes , where . These congruence classes form the quotient ring .
Lemma 1.4.3 (Congruences respect addition and multiplication)
Let . Let be integers such that
Then
This, if , then
Proof
todo
Lemma 1.4.4 (Cancellation with congruences)
Let , and let with
(a) If then
(b) If then
Proof
(a) We have for some , so , hence
(b) As divides and , the General Euclid Lemma tells us that divides , so
Lemma 1.4.6
Squares are 0 or 1 modulo 4
Note
The proof can be simply derived from drawing a table
Lemma 1.4.8
Let be a positive integer of the form , where and . Then is not a sum of 3 squares.
Proof
By checking , we find that squares are 0, 1 or 4 modulo 8. Thus, three squares cannot sum to 7 modulo 8, which solves the case.
We now induct on . Let , and assume the result for smaller values of . Suppose for a contradiction that
for some . Then . This is only possible for all being even, since = 0 mod 4 if is even and mod 4 if is odd. Therefore, the problem can be written as
giving
which contradicts our inductive hypothesis
The above proof is an example of infinite descent, where any triple with the properly of interest produces a smaller such triple.