I have a little problem with the proof of the following proposition:
Let $G$ be a finite group with $|G| = p_1^{r_1}...p_k^{r_k}$ and let's assume $n_{p_i} = 1$ $\forall i = 1,...,k$ so that $P_1,P_2,...,P_k$ are the $p_i$-subgroups of Sylow of $G$. Then $G$ is the internal direct product of $P_1,...,P_k$.
During the proof I have to show by induction that $(P_1...P_{i-1})\cap P_i = \{1\}$ and $P_1...P_i| = |P_1|... 1P_i|$.
For the case $i=2$ I have no problem proving $P_1 \cap P_2 = \{1\}$ but I don't see how $|P_1P_2| = |P_1||P_2|$ should be proved. The notes I'm reading say "as every element of $P_1P_2$ can be written I a unique way as a product of an element of $P_1$ and $P_2$. Why??
Hint: $|P_1P_2|=\frac{|P_1|\cdot|P_2|}{|P_1 \cap P_2|}$