Is $$d_1\mid n,d_2\mid n\iff [d_1,d_2]\mid n$$ true ? And if yes, how can I prove it ? I recall that $[d_1,d_2]$ is the least common multiple.
My tries
For the implication : Let $d_1\mid n$ and $d_2\mid n$. Then, $d_1d_2\mid n^2$. By the way, since $d_1,d_2\mid n$, we have that $(d_1,d_2)\mid n$ where $(d_1,d_2)=:\gcd(d_1,d_2)$ and thus $$[d_1,d_2](d_1,d_2)\mid n^2.$$
Question: How can I get $[d_1,d_2]\mid n$ from this?
For the converse, since $d_1,d_2\mid [d_1,d_2]\mid n$, the claim follow.
I think that the definition of LCM is as follows: m is said to be the lcm of $d_{1}$ and $d_{2}$ if
(1) $d_{1} |n, d_{2} |n$
(2) if $d_{1}|n$ and $d_{2}|n \implies m|n$
So, one side of the implication is just definition. And the reverse inclusion is also trivial. because $d_{1}|[d_{1} d_{2}]$ and so does $d_{2}$