IUM lectures on Numbers

3.4. Back to GCDs

In the section on naturals we defined the greatest common divisor of two naturals. Here is another important fact about the greatest common divisor which can easily be proved by induction, but only when you have subtraction available.

Theorem 52 (Euclid revisited)

Let a and b be natural numbers. There are integers \lambda and \mu such that gcd(a,b)=\lambda a+\mu b.

Proof

We prove this by strong induction. Let a be a natural number, and suppose this is known for gcd(t,s), for all t<a. Now let b be a natural number and consider gcd(a,b).

If a=0 then gcd(a,b)=b=0\cdot a+1\cdot b.

Otherwise, by the inductive hypothesis, there exist integers \lambda and \mu such that gcd(r_a(b),a)=\lambda r_a(b)+\mu a. Also, by Proposition 28(2), the remainder r_a(b) satisfies b=aq+r_a(b) for some natural number q (the "quotient").

We then have \begin{align*}gcd(a,b)&=gcd(r_a(b),a)\\ &=\lambda r_a(b)+\mu a\\ &=\lambda (b-aq)+\mu a\\ &=(\mu-q\lambda)a+\lambda b. \end{align*}

We say that two natural numbers a and b are coprime if gcd(a,b)=1. The following corollary is immediate from the theorem.

Corollary 53

If a and b are coprime, then there exist integers \lambda and \mu such that \lambda a+\mu b=1.

We use this result to prove a crucial fact about prime numbers.