Prove that if $n_1$ and $n_2$ divide $n$ and $\gcd(n_1,n_2) = 1$, then $n_1 n_2$ divides $n$.
I start by letting $n = n_1 k$ and $n = n_2 h$, and I know I'm trying to show that $n = q n_1 n_2$ but I can't figure a way to show this.
Prove that if $n_1$ and $n_2$ divide $n$ and $\gcd(n_1,n_2) = 1$, then $n_1 n_2$ divides $n$.
I start by letting $n = n_1 k$ and $n = n_2 h$, and I know I'm trying to show that $n = q n_1 n_2$ but I can't figure a way to show this.
Let $x$ and $y$ be such that $1=xn_1+yn_2$. Multiplying both sides by $n$ and using your two decompositions of $n$ gives $$ n=nxn_1+nyn_2=hn_2xn_1+kn_1yn_2\\=(hx+ky)n_1n_2 $$
$ a,b\mid n\iff ab\mid an,bn\iff ab\mid (an,bn)\!=\! \color{#c00}{(a,b)}n\,\ [= n\ \ {\rm if}\ \ \color{#c00}{(a,b)= 1}]$
Corollary $\,\ a,b\mid n \iff \dfrac{ab}{(a,b)}\mid\, n,\ $ thus $\,\ {\rm lcm}(a,b) = \dfrac{ab}{(a,b)}$