A number n has 3 divisors. How many divisors does $n^3$ have?
If a number has an odd number of divisors, it's a perfect square
So
Let n = a^2
Then
n^3 = (a^2)^3 = a^6
The number of divisors = (6 + 1) = 7