Special Form of Bézout's Theorem in Arithmetic

Author: Piyi Zu
Release Time: 2026-11-30T14:00+0800
Tag(s): knowledge
Category: Maths


This was an internal article written on 2025-06-20. The article was updated on 2026-11-30.

The Proposition

$a,b\in\mathbb{Z}$ are coprime iff. there exist $u,v\in\mathbb{Z}$ such that $ua+vb=1$.

The Proof

One the one hand, suppose $k\in\mathbb{Z}^+\cap \mathrm{cd}(a,b)$, where $\mathrm{cd}(\cdot, \cdot)$ is the set of common divisors of two integers, then we have $a=ka', b=kb'$ and the following equation holds: $$ ua+vb=uka'+vkb'=k(ua'+vb')=1 $$ Note that $k\in\mathbb{Z}^+$, and $ua'+vb'\in\mathbb{Z}$. Therefore, $k$ could only be 1, otherwise the equation never holds whatever $u$ and $v$ are. Hence the greatest common divisor of $a$ and $b$ could only be 1, i.e. they are coprime.

On the other hand, we define $C(a,b)$ as: $$ C(a,b)=\{ua+vb\ |\ u,v\in\mathbb{Z}\} $$ It is obvious that $C(a,b)=C(b,a)=C(|a|, |b|)$. Without loss of generality, we assume $a$ and $b$ are both non-negative.

If $b=0$, then $C(a, b)=C(a, 0)=\{ ka\ |\ k\in\mathbb{Z}\}$. $a$ and $b$ being coprime implies $a=1$, and so $1\in C(a,b)$, which indicates that there exist $u, v\in\mathbb{Z}$ such that $ua+vb=1$.

Otherwise, we define $r_{a,b}$ to be the remainder of $a$ divided by $b$. Obviously there exists $q\in\mathbb{Z}$ such that $a=qb+r_{a,b}$. Now consider $C(a, b)$ and $C(r_{a,b}, b)$. The following two equations show that they are the same: $$ u_1a+v_1b=u_1(qb+r_{a,b})+v_1b=u_1r_{a,b}+(u_1q+v_1)b,\quad u_1,v_1\in\mathbb{Z} $$ $$ u_2r_{a,b}+v_2b=u_2(a-qb)+v_2b=u_2a+(v_2-u_2q)b,\quad u_2,v_2\in\mathbb{Z} $$ By applying the Euclidean algorithm for greatest common divisors, we can get: $$ C(a,b)=C(r_{a,b}, b)=C(r_{a,b}, r_{b, r_{a,b}})=...=C(0, \mathrm{gcd}(a,b)) $$ As $a$ and $b$ are coprime, $C(0, \mathrm{gcd}(a,b))=C(0,1)$. Hence $1\in C(a,b)$, i.e. there exist $u,v\in\mathbb{Z}$ such that $ua+vb=1$.

The proof above works for Bézout's theorem in number theory, with only a slight modification needed.

Remarks

The use of $C(a,b)$ above helps avoid directly solving $u$ and $v$ out. The same idea can be used in the proof of the Euclidean algorithm for greatest common divisors. This proposition is used to prove the property of ring $\mathbb{Z}_{m}=\mathbb{Z}/(\cdot\equiv\cdot\mod m)$ that $\bar{a}=\{x\in\mathbb{Z}\ :\ x\equiv a\mod m\}$ is a unit of the ring iff. $a$ and $m$ are coprime.