The gcd is more than “the biggest common divisor.” It can also be written as a combination of the two integers themselves. That statement is Bézout's identity.
What this post covers
- The statement of Bézout's identity
- Why the gcd can be written in the form
ax+by - Concrete coefficient examples
- How this leads into linear Diophantine equations
Key terms
- Bézout's identity: the theorem that expresses
gcd(a,b)in the formax+by - linear Diophantine equation: an equation of the form
ax+by=cwith integer solutions - greatest common divisor: the largest positive common divisor of two integers
- coprime: having gcd 1
The statement
If a and b are not both 0, then there exist integers x and y such that
This is Bézout's identity.
Why is this important?
It connects three questions at once:
- What is the gcd?
- Can the gcd be built from the two integers themselves?
- When does an equation like
ax+by=chave integer solutions?
So gcd computations and integer-solution problems are not separate topics. The gcd is the bridge between them.
Example 1: 12 and 18
We know
And
so
This already gives one valid pair of coefficients.
Example 2: 30 and 18
First compute the gcd:
So gcd(30,18)=6. Now go backward:
and
Substituting gives
So
What happens if the numbers are coprime?
If a and b are coprime, then gcd(a,b)=1, so Bézout's identity becomes
That fact later becomes central in modular inverses.
Common mistakes
1. Thinking the coefficients are unique
They are usually not unique. There are often many valid pairs of integers that produce the same gcd.
2. Thinking every integer can be written as ax+by
Not every integer appears. The reachable values are exactly the multiples of gcd(a,b).
3. Separating Bézout's identity from the Euclidean algorithm
The Euclidean algorithm finds the gcd, and tracing the steps backward finds coefficients.
Wrap-up
Bézout's identity says the gcd can be written as ax+by. That turns the gcd from a divisor-listing idea into a structural equation.
Next we use that directly to study when ax+by=c has integer solutions.
💬 댓글
이 글에 대한 의견을 남겨주세요