1.1: Division Algorithm
This page is a draft and is under active development.
( \newcommand{\kernel}{\mathrm{null}\,}\)
In the proof of numerous theorems, we will utilize the well-ordering principle.
Every non-empty subset of N has the smallest number.
Division Algorithm
Let a and b≠0 be integers. Then there exist unique integers q and r such that a=bq+r,0≤r<|b|, where q is the quotient and r is the remainder, and the absolute value of d is defined as:
|b|={b,if b≥0−b,if b<0.
- Proof
-
We will show that q,r∈Z exist and are unique.
Let a,b∈Z s.t. b>0.
Let S be a set defined by S={a−bm:a−bm≥0,m∈Z}.
We will show existence by examining the possible cases.
Case 1: 0∈S
If 0∈S, then a−bm=0 for some m∈Z.
Thus, a=bm
Since b|a, q=m and r=0.
Therefore existence has been proved.
Case 2: 0∉S.
Since 0∉S, we will show that S≠∅ by examining the possible cases. Note: S⊆N.
Case a: a>0.
Since a>0, a=a−b(0)>0.
Therefore a∈S.
Case b: a<0.
Consider a−bm, where m=2a.
Thus a−b(2a)=a(1−2b).
Consider 1−2b is always negative since b>0,b∈N, thus greatest 1−2b can be in −1.
Therefore a(1−2b)≥0 since b≥1.
Note: The ≥ could be > without loss of generality.
Since both case a & b are non-empty sets, S≠∅⊆N.
Thus S has the smallest element by the well-ordering principle, and lets call it r.
That means r=a−bm, for some m∈Z where r≥0.
Thus the non-empty set is r=a−bm≥0.
We shall show that r<b by proceeding with a proof by contradiction.
Assume that r≥b.
Then a−b(m+1)=a−bm−b=r−b≥0 for some m∈Z.
Then r−b∈S and r−b<r. Note (b>0)
This contradicts that r is the smallest element of S.
Therefore r<b.
Having examined all possible cases, a=bq+r,0≤r<b exists.
Next, we will show uniqueness.
Let r1,r2,q1,q2 s.t. a=bq1+r1 and a=bq2+r2 with 0≤r1,r2<b.
Consider bq1+r1=bq2+r2, 0≤r1<b.
Further since b(q1−q2)=r2−r1, b|(r2−r1), but b has to be ≤r1.
Since, r2−r1<b, r2−r1=0 and r1=r2.
Hence q1=q2.
Therefore uniqueness has been shown.
Example 1.1.1
Find the q is the quotient and r is the remainder for the following values of n and d.
- n=2018 and d=343.
Thus 2018=(5)(343)+303.
2. n=−2018 and d=343.
Thus −2018=(−6)(343)+40.
3, . n=2018 and d=−343.
Thus 2018=(6)(−343)+40.
4.
n=−2018 and d=−343.
Thus −2018=(6)(−343)+40.