Originally Posted by

**Deadstar** Suppose that $\displaystyle x$, $\displaystyle y$ and $\displaystyle z$ are positive integers satisfying $\displaystyle \gcd(x, y) = 1$ and $\displaystyle xy = z^2$. Show that there are integers $\displaystyle u$ and $\displaystyle v$ such that $\displaystyle x = u^2$ and $\displaystyle y = v^2$.

I have some ideas for this. Trivially we can take $\displaystyle u = 1$ and $\displaystyle v = z$. I see nothing that says all numbers have to be different. (Although I suppose we could do this if $\displaystyle z$ is prime or a square leaving the below for when $\displaystyle z$ is composite and not a square)

Alternatively, write $\displaystyle z$ as a product of primes...

$\displaystyle z = p_1^{k_1}p_2^{k_2}\dots p_n^{n_1}$.

Then $\displaystyle z^2 = (p_1^{k_1}p_2^{k_2}\dots p_n^{n_1})^2$ then we divide this up as we please such as...

$\displaystyle z^2 = (p_1^{k_1})^2 (p_2^{k_2}\dots p_n^{n_1})^2$ since $\displaystyle (p_2^{k_2}\dots p_n^{n_1})^2 = (y)$ wont be divisible by $\displaystyle (p_1^{k_1})^2 = (x)$ and hence our $\displaystyle \gcd(x,y) = 1$ condition holds.

How does this all look?