Prove that if integer $a > 0$ is not a square , then $ a \neq \frac{b^2}{c^2} $ for non-zero integers b,c.
I would like to know if the proposed proof below is valid.
Assume that $ac^2 = b^2$.
With $a > 0$ we have $ac^2 > 0$. $b^2$ is a square and can written with the following factorization:
$b^2 = p_1^{\alpha_1} \cdot p_2^{\alpha_2} \ldots p_n^{\alpha_n}$
where ${\alpha_1,\alpha_2,\ldots,\alpha_n}$ are all even integers and ${p_1,p_2,\ldots,p_n}$ are prime numbers.
Now $c^2$ and $a$ can be written with the following factorizations:
$c^2 = r_1^{2\beta_1}\cdot r_2^{2\beta_2} \ldots r_n^{2\beta_n}$
$a = r_1^{\gamma_1}\cdot r_2^{\gamma_2} \ldots r_n^{\gamma_n}$
where ${r_1,r_2,\ldots,r_n}$ are prime numbers and, ${\beta_1,\beta_2,\ldots,\beta_n}$ and ${\gamma_1,\gamma_2,\ldots,\gamma_n}$ are positive integers.
Then for any prime $s$ in the factorization of $b^2$ we have that ${s\mid r_1^{\gamma_1+2\beta_1}\cdot r_2^{\gamma_1+2\beta_2} \ldots r_n^{\gamma_n+2\beta_n}}$ which implies there is a unique $r_i$ such that ${s\mid r_i^{\gamma_i+2\beta_i}}$. It also implies $s\mid r_i$ and $s= r_i$ since $s$ and $r_i$ are both prime. (Believe last implication is correct but needs confirmation).
By the uniqueness of the factorization of $b^2$, $s$ has the power $t$ so that ${s^t = r_i^{\gamma_i+2\beta_i}}$ and $t = \gamma_i+2\beta_i$. $t$ is odd if $\gamma_i$ is odd but $t$ is even if $\gamma_i $ is even. So some of the powers in
${b^2 = p_1^{\alpha_1} \cdot p_2^{\alpha_2} \ldots p_n^{\alpha_n}}$
are odd. This is a contradiction and ${ac^2 \neq b^2}$.