87. Bézout’s Lemma

The Fundamental Theorem of Arithmetic, that every integer greater than one has a unique factorization as a product of primes, was stated without proof in Chapter 62. It actually follows from certain facts about the GCD by a fairly complicated proof by contradiction. This proof is based on Theorem 87.2 below, a theorem which is worth knowing for its own sake. The proof of the Fundamental Theorem is completed in Problems 104.4.1 through 104.4.4.

87.1 Definition: integral linear combination

If $m$ and $n$ are integers, an integral linear combination of $m$ and $n$ is an integer $d$ which is expressible in the form $d = am + bn$, where $a$ and $b$ are integers.

87.1.1 Example 2 is an integral linear combination of 10 and 14, since

$$3 \times 10 - 2 \times 14 = 2$$

However, 1 is not an integral linear combination of 10 and 14, since any integral linear combination of 10 and 14 must clearly be even.

87.1.2 Remark Note that in the definition of integral linear combination, the expression $d =am +bn$ does not determine $a$ and $b$ uniquely for a given $m$ and $n$.

87.1.3 Example $3 \times 10 - 2 \times 14 = 2$ and $-4 \times 10 + 3 \times 14 = 2$. (See Exercise 88.3.7.)

87.1.4 Exercise Show that if $d \mid m$ and $d \mid n$ then $d$ divides any integral linear combination of $m$ and $n$.

87.2 Theorem: Bézout’s Lemma

If $m$ and $n$ are positive integers, then $\mathrm{GCD}(m,n)$ is the smallest positive integral linear combination of $m$ and $n$.

87.2.1 Remark Bézout’s Lemma should not be confused with Bézout’s Theorem, which is a much more substantial mathematical result concerning intersections of surfaces defined by polynomial equations.

87.2.2 Example $\mathrm{GCD}(10,14) = 2$, and 2 is an integral linear combination of 10 and 14 $(2 = 3 \cdot 10 + (-2) \cdot 14)$ but 1 is not, so 2 is the smallest positive integral linear combination of 10 and 14.

87.2.3 Proof of Bézout’s Lemma We prove this without using the Fundamental Theorem of Arithmetic, since the lemma will be used later to prove the Fundamental Theorem.

Let $e$ be the smallest positive integral linear combination of $m$ and $n$. Suppose $e =am +bn$. Let $d = \mathrm{GCD}(m,n)$.

First, we show that $d\leq e$. We know that $d \mid m$ and $d \mid n$, so there are integers $h$ and $k$ for which $m =dh$ and $n =dk$. Then $e =am +bn =adh +bdk =d (ah +bk)$ is divisible by $d$. It follows that $d\leq e$.

Now we show that $e \mid m$ and $e \mid n$. Let $m =eq +r$ with $0\leq r < e$. Then

$$r =m-eq =m- (am +bn )q = (1-aq )m-bqn$$

so $r$ is an integral linear combination of $m$ and $n$. Since $e$ is the smallest positive integral linear combination of $m$ and $n$ and $r < e$, this means $r= 0$, so $e \mid m$. A similar argument shows that $e \mid n$.

It follows that $e$ is a common divisor of $m$ and $n$ and $d$ is the greatest common divisor; hence $e \leq d$. Combined with the previous result that $d \leq e$, we see that $d =e$, as required.

Pages 127–128 of the book (PDF).