Gostaria de saber como provar usando divisibilidade o teorema de Bezout
$(a,b)=d\Longrightarrow \exists f,g\in\mathbb{Z^*}$ tal que $af+gb=d$
I'd like to know how to, using divisibility, prove Bézout's Theorem:
Given integers $a,\ b$, if $(a,b)=d$ then there exist $f,g\in\mathbb{Z^*}$ such that $af + gb=d$.
This is the canonical proof I know.
Consider the set $$ S'=\{ax+by:\ x,y\in\mathbb Z\}. $$ It is easy to check that $S'\cap\mathbb N\ne\emptyset$ (because $a,-a,b,-b\in S'$). Let $S=S'\cap\mathbb N$.
As $S$ is a nonempty set of natural numbers, it has a minimum element $d'=af+bg$ for certain $f,g\in\mathbb Z$.
We note first that $d'$ divides both $a$ and $b$. Indeed, use the Division Algorithm to write $a=qd'+r$, with $0\leq r<d'$. If $r>0$, then $r=a-qd'=a-q(af+bg)=a(1-qf)+b(-g)\in S$, contradicting the minimality of $d'$. So $r=0$. A similar argument shows that $d'$ divides $b$.
Finally, let $c$ be any divisor of $a$ and $b$. Then $a=uc$, $b=vc$ for some $v,c\in\mathbb Z$. So $$ d'=af+bg=ucf+vcg=(uf+vg)c, $$ so $c$ divides $d'$. Thus $d'$ is the greatest common divisor.