Notes of Bezout's Identity

Theorem 1

Let $a, b \in \mathbb{Z}$, where $\gcd(a, b) = d$, then for all $x, y \in \mathbb{Z}$, $ax + by$ must be a multiple of $d$. Especially, there exist $x, y \in \mathbb{Z}$ such that $ax + by = d$.

Theorem 2

The equation $ax + by = 1$ has integer solution iff $\gcd(a, b) = 1$.

Proof

Proof to Theorem 1

Let $d = \gcd(a, b)$. Apparently, $d \mid a$ and $d \mid b$. Therefore, $d \mid ax + by$, where $x, y \in \mathbb{Z}$. Hence $ax + by = dk$, where $k \in \mathbb{Z}^+$. Especially when $k = 1$, $ax + by = d$.

Proof of Theorem 2

To prove equation $ax + by = 1$ has integer solution.

It is not difficult to see that Theorem 2 is a special case of Theorem 1, where $d = 1$.

$\implies$ Assume $a, b$ are not co-prime, where $\gcd(a, b) \neq 1$. According to Theorem 1 and the equation, we can deduce that $ax + by = kd = 1$, where $k \in \mathbb{Z}^+$ and $d = \gcd(a, b)$. Since both $k$ and $d$ are integers, therefore $d = 1$, which forms a contradiction with the proposition we made above.

$\impliedby$ Omitted, since obvious proof by applying Theorem 1. $\square$

Application of Bezout’s Identity

  1. Extended Euclidean algorithm