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

Lemma 1.4.4 (Cancellation with congruences)

Let , and let with

(a) If then

(b) If then

Lemma 1.4.6

Squares are 0 or 1 modulo 4

Lemma 1.4.8

Let be a positive integer of the form , where and . Then is not a sum of 3 squares.

The above proof is an example of infinite descent, where any triple with the properly of interest produces a smaller such triple.