Bezout's Identity
The GCD is not just a maximum — it is the smallest linear combination of two integers. Bezout's Identity reframes everything, and Euclid's Lemma follows from it.
The Euclidean Algorithm computes . But what is ?
"The largest number dividing both" is a correct definition. It's not an illuminating one. Here is the illuminating one:
is the smallest positive integer of the form , where and are integers.
This is Bezout's Identity. It reframes the GCD from a property of division into a property of reachability — which integers can you construct from and using addition and subtraction?
The theorem
Bezout's Identity. For any integers not both zero, there exist integers such that:
And the set is exactly the set of all multiples of .
Finding the coefficients — back-substitution
Run the Euclidean Algorithm. Then read the steps backwards.
Example. Find integers such that .
First, run the Euclidean Algorithm:
1071 = 2 \times 462 + 147 \tag{1} 462 = 3 \times 147 + 21 \tag{2} 147 = 7 \times 21 + 0 \tag{3}
So .
Now back-substitute. From (2): .
From (1): .
Substitute:
So , . Check: . ✓
The key consequence
Corollary. If and , then .
Proof. Since for some integers , and divides both and , we get .
This is what earns the word greatest. Every common divisor of and divides — so is genuinely the largest.
Without Bezout, "greatest" is just a claim. With Bezout, it's a theorem.
What the set looks like
Let . The set of all integers expressible as is:
Exactly the multiples of , nothing more, nothing less.
Why nothing less than ? Any is divisible by (since and ), so no element of the set is smaller than in absolute value.
Why is reachable? Bezout says so directly.
Why all multiples of are reachable? If , then for any integer .
Euclid's Lemma — the payoff
This is the most important application of Bezout at JEE Advanced level.
Euclid's Lemma. If and , then .
Proof. From Bezout: for some integers . Multiply both sides by :
and (given), so .
The prime case. If is prime and , then or .
Proof. If , then (since is prime, its only divisors are 1 and ). Euclid's lemma then forces .
This is the fact that makes prime factorization unique. Uniqueness of the Fundamental Theorem of Arithmetic rests entirely on this lemma.
Worked problems
Problem 1. Prove: if and and , then .
Write for some integer . Then and , so by Euclid's lemma, . Write . Then , so .
Problem 2. Prove: .
Let , , , .
Then , . We need .
Suppose prime . Then . If also , then . But then , contradiction. So , giving .
Problem 3. Find all integers such that .
Write . So if then .
Thus , giving .
Problem 4. Prove that when .
Actually the stronger result holds: when .
Let , . Write . Show and , and that ... the full proof uses Euclid's lemma iteratively.
Edge cases worth naming
- is undefined (or sometimes set to 0 by convention). Bezout fails here.
- The Bezout coefficients are not unique. If works, so does for any integer multiple. The general solution is exactly the theory of Linear Diophantine Equations.
- Bezout gives existence of coefficients. Finding them requires the Extended Euclidean Algorithm (back-substitution above). Don't confuse the theorem with the algorithm.
The next natural question: since spans all multiples of , what happens when you fix the right-hand side and ask for all solutions? That's the complete theory of — which lives in Linear Diophantine Equations.