How can I mathematically prove that the squares of two relatively prime numbers are also relatively prime?
Thanks in advance.
How can I mathematically prove that the squares of two relatively prime numbers are also relatively prime?
Thanks in advance.
Suppose $x = 2^{m_2}\cdot 3^{m_3} \cdots \cdot p_r^{m_r}$ and $y = 2^{n_2}\cdot 3^{n_3}\cdots p_s^{n_s}$. If their gcd is 1, then whenever $m_i>0$ then $n_i=0$ and vice-versa (you can take this as the definition of $gcd(x,y)=1$).
Now $x^2 = 2^{2m_2}\cdot 3^{2m_3} \cdots \cdot p_r^{2m_r}$ and $y^2 = 2^{2n_2}\cdot 3^{2n_3}\cdots p_s^{2n_s}$. It is clear that $n=0$ iff $2n=0$, and $n>0$ iff $2n>0$, so the squares must also be relatively prime.