I have a problem. It states that:
Let $G$ is a group and $|G|=mn$, $(m,n)=1$. Assume that $G$ has exactly one subgroup $M$ with order $m$ and one subgroup $N$ with order $n$. Prove: $G$ is a direct product of $M$ and $N$.
Here is my approach:
Obviously, we have $M\cap N = 1$. By Product Formula we have: $|MN|=|M|\cdot|N|=mn$.
Let $m_1$, $m_2$ be in $M$ and $n_1$, $n_2$ in $N$. If $m_1n_1=m_2n_2$ then $m_2^{-1}m_1=n_2n_1^{-1}$. By $M\cap N = 1$ we must have $m_1=m_2$, $n_1=n_2$. So those elements in the form $m_in_j$ with $m_i\in M$, $n_j\in N$ are distinct. Because $|G|=mn$ we must have $G=MN$.
I'm kind of confused because it seems the uniqueness of subgroups $M$ and $N$ is useless. Is my proof still correct without this hypothesis or I mislead at certain point? Please explain to me.