Section 2.4 The Bezout Identity
Subsection 2.4.1 Backwards with Euclid
Now, before we get to the third characterization of the gcd, we need to be able to do the Euclidean algorithm backwards. This is sometimes known as the Bezout identity.Definition 2.4.1. Bezout identity.
A representation of the gcd
Example 2.4.2.
Sometimes it helps visually when starting to write the Euclidean algorithm down one side of a table, and then go up the other side of the table to obtain an instance of the Bezout identity.
Here's an example with the gcd of 8 and 5; follow it from top left to the bottom and then back up the right side. The middle column provides the necessary rewriting.
Go up this column... |
So
Example 2.4.3.
Usually students need a couple of examples of this to get the way this works, so here is another one. Let's do it with the gcd of 60 and 42.
Go up this column... |
Simplifying
xgcd(a,b)
, because this is also known as the eXtended Euclidean algorithm.
xxxxxxxxxx
xgcd(60,42)
Example 2.4.4.
Try to get the xgcd/Bezout identity for
Try the following Sage cell to check that it works.
xxxxxxxxxx
xgcd(135,50)[1]*135 + xgcd(135,50)[2]*50
Sage note 2.4.5. Remind how to get list elements.
Do you remember what the [1]
means? What do you think the [2]
means in this context?
Example 2.4.6.
Try to get the xgcd/Bezout identity for
Historical remark 2.4.7. Bezout and friends.
While Γtienne BΓ©zout did indeed prove a version of the Bezout identity for polynomials, the basics of using the extended Euclidean algorithm to solve such equations was known in Europe to Bachet de MΓ©ziriac (see Historical remark 3.5.2) about four hundred years ago. However, the Indian mathematician Aryabhata about 1500 years ago in his method later called the Kuttaka used essentially the same algorithm, in fact in a manner more amenable to swift and accurate usage than the one we (and most Western texts) use, with a view toward questions such as Theorem 3.1.2.
Subsection 2.4.2 Proving the final characterization
The final characterization of the greatest common divisor (Theorem 2.2.4) is that it is the least positive integer which can be writtenSubsection 2.4.3 Other gcd questions
We mentioned earlier there are many such linear combinations for any given pairExample 2.4.8. Using Bezout to get another Bezout.
We used the backwards Euclidean algorithm to see that
Since
is itself a divisor of both 60 and 42, let's pick one (the smaller one!), 42, and write it as-
Then we can really write
since after all we just saw that was a way to represent
-
Now we plug this back into the original equation:
If we simplify it out, that means
Subsection 2.4.4 Relatively prime
There is one final thing that the linear combination version of the gcd can give us. It is something you may think is familiar, but which can arise very naturally from the Bezout identity. Consider the smallest possible greatest common divisor, which is one. Under what circumstances wouldDefinition 2.4.9. Relatively Prime.
If the greatest common divisor of two numbers is one, we call them relatively prime numbers or coprime numbers.
Later, we will need to have a term for the situation where, in a collection of several integers, all possible pairs are relatively prime. We will call this mutually coprime, coprime in pairs, or an analogous term.
Proposition 2.4.10.
Here are two interesting facts about coprime integers
If
and thenIf
then
Proof.
The first is not too hard to prove, if you think in terms of Bezout. It does need a little cleverness.
Remember that \(1=ax+by\) for some \(x,y\text{,}\) by definition of being coprime.
So \(c=cax+cby\text{.}\)
Now write \(c=kb\) and \(c=\ell a\text{,}\) and substitute them in the opposite parts of the previous line.
This gives \(c=(kb)ax+(\ell a)by\text{,}\) and \(ab\) definitely divides both parts of this, so it divides the whole thing by our earlier proposition about divisibility.
We leave the second as an exercise (Exercise 2.5.19).