Proof

In the case where a, b > 0, the proof is roughly as follows. Find the greatest multiple qb of b that is less than or equal to a; this can be accomplished by starting with q = 0 and increasing q by 1 until a - (q + 1)b < 0. Then r = a - qb.

Existence of q and r.

Uniqueness of q and r.