Proof of the Division Algorithm

Let and be integers with . We want to show that there exist unique integers and such that:

Consider the following set:

Clearly is a subset of , to use the Well-Ordering Axiom, we need to show is nonempty. The idea is clear, since , we can always find a which is negative enough to make . More rigorously, we can choose , then we have:

Now apply the Well-Ordering Axiom, we know has a smallest element, denote it as . We will show that satisfy the Remainder Condition. We proceed by contradiction, suppose , then we will have:

This implies , which contradicts the minimality of . Therefore, we must have , also based on its construction. This completes the existence part of the Division Algorithm Theorem.

Now we will show the uniqueness part. Suppose we have two pairs of integers and that satisfy the equation:

Subtracting the two equations, we have:

WLOG, we may assume , then we have . This implies:

Since , we must have , which implies and . This completes the proof of the uniqueness part.

Generalization

The Division Algorithm Theorem can be generalized to the following form:

Theorem

Let be integers with . Then there exist unique integers and such that: