Maths WorkshopMaths problems with full solutions
Exercise 1482Number theory › Divisibility and gcdL1Added 2 Nov 2026

Existence of a Bézout identity

#Bézout#existence#well-ordering

Statement

Let a,ba,b be nonzero integers, and d=\divisibility(a,b)d=\divisibility(a,b). Show that there exist integers u,vu,v such that au+bv=dau+bv=d.

Hint

Consider the set S={ax+by:x,y∈Z, ax+by>0}S=\{ax+by:x,y\in\mathbb{Z},\,ax+by>0\} and let d′d' be its minimum.

Show solutionHide solution

Solution

Well-ordering. SS is a nonempty set of positive integers (for example, a2+b2∈Sa^2+b^2\in S). Let d′d' be its smallest element, written d′=au+bvd'=au+bv.

Division. Divide aa by d′d': a=d′q+ra=d'q+r with 0≤r<d′0\le r<d'. Then
r=a−d′q=a−(au+bv)q=a(1−uq)+b(−vq).r=a-d'q=a-(au+bv)q=a(1-uq)+b(-vq).
So rr is a linear combination of aa and bb. If r>0r>0, then r∈Sr\in S and r<d′r<d', contradicting the minimality of d′d'. Hence r=0r=0, so d′∣ad'\mid a. Similarly d′∣bd'\mid b.

Conclusion. d′d' is a common divisor of aa and bb, so d′≤dd'\le d. On the other hand, dd divides every linear combination of aa and bb, so d∣d′d\mid d', hence d≤d′d\le d'. Therefore d′=dd'=d, and dd has a Bézout representation.