Prove if $n\mid ab$, then $n\mid [\gcd(a,n)\times \gcd(b,n)]$
So I started by letting $d=\gcd(a,n)$ and $e=\gcd(b,n)$. Then we have $x,y,w,z$ so that $dx=a$, $ey=b$,$dw=ez=n$ and we also have $s$ so that $ns=ab$
or $ns=dexy$.
what I want is $n\mid de$, but I'm only getting to $n\mid de(xy)$ since I cannot prove that $s/(xy)$ is an integer.
By Bézout's theorem there are integers $\alpha,\beta,\gamma,\delta$ such that $\gcd(a,n)=\alpha a+\beta n$ and that $\gcd(b,n)=\gamma b+\delta n$. Therefore,$$\gcd(a,n)\times\gcd(b,n)=\alpha\gamma ab+\beta\gamma nb+\alpha\delta an+\beta\delta n^2.$$So, since $n\mid ab$, $n\mid\gcd(a,n)\times\gcd(b,n)$.