abstract algebra:help meto find a solution( as soon as possible)

let n=p1^r1.p2^r2.p3^r3...pk^rk where p1,p2,..pk are distinct primes and each ri>=0. prove that n is a perfect square if and only if each ri is even.

Re: abstract algebra:help meto find a solution( as soon as possible)

Hi, lenin1234007.

If each exponent is even then you can write

Where .

If n is a perfect square, then

This implies

Now t has its own unique factorization into primes. By the Fundamental Theorem of Arithmetic, the primes and their exponents must be equal on both sides of the equation. Since the exponents of all the primes on the right are even after you square, all the exponents on the left must be even also.

Does this help? Let me know if something is unclear.

Good luck!