I want to prove this theorem:
Let $n = n_1 n_2$, $(n_1, n_2) = 1$. Then for all $d^2 | n$, $d^2$ can be uniquely written as $d^2 = (d_1 d_2)^2$ where $d_1^2 | n_1$, $d_2^2 | n_2$.
I've already proved the following two results:
(1) If $d^2 | n$, then $(d^2, n_1) = d_1^2$, $(d^2, n_2) = d_2^2$ where $d = d_1 d_2$.
(2) If $d_1^2 | n_1$, $d_2^2 | n_2$ where $d = d_1 d_2$, then $d^2 | n$.
Do these results prove that theorem? Why? And are both the two results required to prove the theorem?
And similarly, can we prove the following theorem?
Let $n = n_1 n_2$, $(n_1, n_2) = 1$. Then for all $d | n$, $d$ can be uniquely written as $d = d_1 d_2$ where $d_1 | n_1$ and $d_2 | n_2$.