Maths WorkshopMaths problems with full solutions
Exercise 453Number theory › Divisibility and gcdHigh schoolAdded 3 Nov 2026

Coprime integers

#coprime#gcd#Bézout

Statement

Show that aa and bb are coprime iff there exist u,v∈Zu,v\in\mathbb{Z} with au+bv=1au+bv=1.

Hint

Forward: Bézout. Converse: any common divisor divides au+bvau+bv.

Show solutionHide solution

Solution

Forward. If gcd⁡(a,b)=1\gcd(a,b)=1, Bézout gives u,vu,v with au+bv=1au+bv=1.

Converse. If au+bv=1au+bv=1 and d∣ad\mid a, d∣bd\mid b, then d∣au+bv=1d\mid au+bv=1, so d=1d=1. Hence gcd⁡(a,b)=1\gcd(a,b)=1.

Conclusion. gcd⁡(a,b)=1\gcd(a,b)=1 iff aa and bb have a Bézout relation equal to 11.