If the product of all the unique positive divisors of $n$, a positive integer which is not a perfect cube, is $n^2$, then the product of all the unique positive divisors of $n^2$ is: (A) $n^3$ (B) $n^4$ (C) $n^6$ (D) $n^8$ (E) $n^9$
I tried using the formula: $\frac{n^{d(n)}}{2}$, where $d(n)$ is the number of factors and I got the answer as $n^7/2$.
Hint: First, note that for the above condition to hold, $n$ cannot be prime and hence can be considered as the product of two primes, $p$ and $q$.
Then, try to list out the factors of $n^2= p^2q^2$.