Replace it is too obvious that resulting number n is perfect square because it is a multiple of perfect squares.

However, if even one of the powers r be an odd number then n = composed of multiple of one or more prime numbers with power =1 that cannot be perfect square!