I came across this problem while studying for a midterm and I'm having a tough time proving the first implication:
Let $n\in\Bbb Z$. Prove that $n$ is a multiple of both $5$ and $9$ if and only if it is a multiple of $45.$
I know that:
If n is a multiple of $45, n = 45a,$ where $a \in\Bbb Z.$ Then, $n = 5(9a) = 5b$, where $b = 9a$. Thus, $n$ is a multiple of $5$.
Likewise, $n = 45a = 9(5a) = 9c$, where $c = 5a$. Thus, n is also a multiple of $9$.
Where I have trouble is proving that if $5$ and $9$ divide $n$, $45$ also divides $n.$
$n = 5a$ and $n = 9b$, where $a,b \in\Bbb Z.$
I'm pretty lost as to what my next step here should be. Anyone have a hint to point me in the right direction?