Prove the following: If $a \mid bc$, then $a \mid \gcd(a, b)c$.
I tried to set $\gcd(a, b)$ to $b$ and used the fundamental theorem of arithmetic to prove that it is divisible by $a$, but I can't prove that $a \mid bc$, if and only if $a\mid b$ and $a\mid c$. Please help. Thanks.
If $a\mid c$ then you are done
If $a\mid b$ then $b=ak$ for some $k$, therefore $a\mid gcd(a,ak)$. Then it is easy to finish the excercise.