[Math] prove perfect square

elementary-number-theory

Show that if $ab$ and $bc$ are perfect squares then $ac$ is a perfect square using theorem of arithmetic. I am not exactly sure how to prove this.
I know that a perfect square must have even powers of primes so set
$a = p_1^{2k}$, $b = p_1^{2k}$ and $c= p_1^{2k}$ then $ac = p_1^{2k+2k}$ is this the correct approch to prove this ?

Many Thanks

Best Answer

Let the highest power of prime $p$ in $a,b,c$ be $A,B,C$ respectively.

As $ab$ is perfect square, $A+B$ is even

Similarly, $B+C$ will be even $\implies (A+B)+ (B+C)$ will be even

Now the highest power of $p$ in $ac$ will be $A+C$

Now as $A+C-(A+B+B+C)=2B$ is even, so will be $A+C$