Integer Division Theorem

Dependencies: None

Let a and b be integers, with b > 0. Then there exist unique integers q and r such that a=bq+r and 0r<b.

r is denoted as a%b and q=ab.

Proof

Let S={abk:kZ and abk0}.

If a>0, S is non-empty for k=0. If a0, S is non-empty for k=2a. Since S is a non-empty set of non-negative integers, S has a smallest element.

Let r=minS. Then q such that r=abq. Assume (for proof by contradiction), that rb. Then rb=a(b+1)qS. Since rb<r and r=minS, we have a contradiction.

Hence, our assumption was wrong, so 0r<b. This proves the existence of q and r.

Let a=bq1+r1=bq2+r2. Then b(q1q2)=(r2r1)b divides (r2r1). r2r1=0 is the only possibility because (b1)r2r1(b1). Therefore, r1=r2 and q1=q2. This proves the uniqueness of q and r.

r<brb<1rb=0

ab=bq+rb=q+rb=q+rb=q

Dependency for:

  1. Product of coprime divisors is divisor
  2. ϕ is multiplicative
  3. LCM divides common multiple
  4. GCD is the smallest Linear Combination Used in proof
  5. Order of cyclic subgroup is order of generator
  6. Zn is a ring
  7. Every ideal of Z is a principal ideal

Info:

Transitive dependencies: None