disregardthat
Science Advisor
- 1,864
- 34
It is not difficult to prove for arbitrary products of different primes (of course this will suffice for the general non-square case). The proof goes exactly the same way as the case for one prime. If b^2p_1...p_k = a^2, then p_1...p_k must be a factor of a, etc..