MathLabs
TheoremProved

Bézout's identity

Statement

For integers a,ba,b not both zero, there exist integers x,yx,y such that ax+by=gcd⁡(a,b)ax+by=\gcd(a,b). Moreover, gcd⁡(a,b)\gcd(a,b) is the smallest positive integer expressible in this form.

Why is it true?

Running the Euclidean algorithm backward turns its sequence of divisions into an explicit combination of aa and bb that equals their greatest common divisor — so the gcd is always 'reachable' by adding and subtracting integer multiples of aa and bb.

Proof sketch

Let S={ax+by:x,y∈Z}∩Z>0S=\{ax+by : x,y\in\mathbb{Z}\}\cap\mathbb{Z}_{>0}; it is non-empty (it contains ∣a∣|a| or ∣b∣|b|), so by the well-ordering principle it has a least element d=ax0+by0d=ax_0+by_0. Dividing aa by dd with remainder and using minimality of dd shows the remainder must be 00, so d∣ad\mid a; similarly d∣bd\mid b. Any common divisor of a,ba,b divides ax0+by0=dax_0+by_0=d, so d=gcd⁡(a,b)d=\gcd(a,b).

Topics that use this theorem

Related theorems

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. G. H. Hardy, E. M. Wright (2008). An Introduction to the Theory of Numbers · DOI:10.1093/oso/9780199219858.001.0001
  2. Carl B. Boyer, Uta C. Merzbach (2011). A History of Mathematics