The Euclidean algorithm is not only useful for finding the GCD: by tracing it “backwards” we uncover a remarkable fact, Bézout’s identity.
Theorem — Bézout's identity
For every pair of integers (not both zero) there exist two integers such that In particular, and are coprime () if and only if there exist with .
The coefficients are found by working back up through the divisions of the Euclidean algorithm, replacing each remainder in turn with its expression.
Example: 84 and 60
Let us apply Euclid:
So . Now we work back up, starting from the second-to-last line: But from the first line ; we substitute:
We have found , :
What it is for
Bézout’s identity is the key to many results: it proves Euclid’s lemma (if a prime divides a product, it divides one of the factors), it lets us solve Diophantine equations and compute the modular inverses underlying RSA cryptography.
Links
Topics: Numeri e operazioni
Concepts: Massimo comun divisore (MCD)
Skills: Dimostrare
People: Euclide