I just took my number theory final and this was on the exam as the second question. It said to use the canonical decomposition of $l, m$ and $n$ for the proof. This is what I put down on the exam:
Proof
Let $l=p_1 p_2 p_3...p_n$ and $m=r_1 r_2 r_3...r_n$. Since $(l,m)=1$, $p_i \nmid r_i$ for all $i\in \Bbb{z}$. (Thinking, I should have stated it differently, maybe $p_a\nmid r_b$ for all $a, b \in\Bbb{z}$). Hence, $l\nmid m$.
Now, $mn=n r_1 r_2 r_3...r_n$ (now realizing poor choice in variable names) and since $l\nmid m$, then it must follow that $l\mid n$
$\blacksquare$
Question is whether or not this is a rigorous enough proof, or whether this makes any sense in general, otherwise how the proof should look?