Show that all of the powers in the prime-power factorization of an integer n are even if and only if n is a perfect square