Math 2.0

Number theory Proof

Proof of the division algorithm

Builds on Well-ordering principle

Proof

We prove existence with the well-ordering principle, then uniqueness by a size argument.

  1. Let aa and bb be integers with b≠0b \neq 0. Put c=∣b∣c = |b|, so cc is a positive integer.
  2. Let SS be the set of integers a−cta - c t with t∈ℤt \in \Z and a−ct≥0a - c t \ge 0. So SS is a set of natural numbers.
  3. The set SS is nonempty. For t=−∣a∣t = -|a| we get a−ct=a+c∣a∣≥a+∣a∣≥0a - c t = a + c|a| \ge a + |a| \ge 0, because c≥1c \ge 1.
  4. By the well-ordering principle, SS has a least element rr. Write r=a−ct0r = a - c t_0 with t0∈ℤt_0 \in \Z. Then r≥0r \ge 0.
  5. We show r<cr < c. Suppose r≥cr \ge c. Then r−c=a−c(t0+1)≥0r - c = a - c(t_0 + 1) \ge 0, so r−c∈Sr - c \in S. But r−c<rr - c < r, which contradicts the choice of rr.
  6. Put q=t0q = t_0 if b>0b > 0 and q=−t0q = -t_0 if b<0b < 0. In both cases bq=ct0b q = c t_0. Hence a=bq+ra = b q + r with 0≤r<∣b∣0 \le r < |b|.
  7. For uniqueness, let (q,r)(q, r) and (q′,r′)(q', r') both satisfy a=bq+r=bq′+r′a = bq + r = bq' + r' and 0≤r,r′<∣b∣0 \le r, r' < |b|.
  8. Subtracting gives b(q−q′)=r′−rb(q - q') = r' - r. From the bounds on rr and r′r', we get ∣r′−r∣<∣b∣|r' - r| < |b|.
  9. If q≠q′q \neq q', then ∣q−q′∣≥1|q - q'| \ge 1, so ∣b(q−q′)∣≥∣b∣|b(q - q')| \ge |b|. This contradicts step 8. Hence q=q′q = q'.
  10. Then r′−r=b(q−q′)=0r' - r = b(q - q') = 0, so r=r′r = r'.
  11. So there is exactly one pair (q,r)(q, r) with a=bq+ra = bq + r and 0≤r<∣b∣0 \le r < |b|.

Idea

Subtract multiples of ∣b∣|b| from aa for as long as the result stays nonnegative. The smallest nonnegative value reached is the remainder, and it must be less than ∣b∣|b|, or one more subtraction would be possible. Two different quotients would make the remainders differ by at least ∣b∣|b|, which is impossible.

Reading path

To understand this page from the ground up, read these 16 pages in order. The foundations come first. The path takes the proofs Proof of the commutativity of addition by induction, Proof of strong induction from ordinary induction, Proof of the well-ordering principle from strong induction.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Definition by recursion concept
  2. Mathematical induction concept
  3. Natural numbers object
  4. Peano axioms concept
  5. Successor function definition
  6. Addition of natural numbers definition
  7. The successor function is injective statement
  8. Zero is not a successor statement
  9. Proof of the commutativity of addition by induction proof
  10. Order on the natural numbers definition
  11. Commutativity of addition statement
  12. Proof of strong induction from ordinary induction proof
  13. Strong induction statement
  14. Proof of the well-ordering principle from strong induction proof
  15. Well-ordering principle statement
  16. Proof of the division algorithm proof

Where this leads

608 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Euclidean_division, Proof
About this page
TagR6AEMXE8W4
URIm2://R6AEMXE8W4
Kindproof
WritingW0 stub
MSC11A05
ProvesDivision algorithm
UsesWell-ordering principle
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.