[Math] Numbers in a list which are perfect squares and perfect cubes of numbers

elementary-number-theory

How many numbers in the list $$1,2,3,…,2001$$ are perfect squares and perfect cubes of whole numbers?

My progress: Well I do know $$1,4,9,16,25,36,…$$ are perfect squares and $$1,8,27,64,…$$
are perfect cubes but I can't manage to get a formula/pattern to determine how many there are before 2001 without actually counting them.

Best Answer

If you want perfect squares and perfect cubes, the number needs to be a perfect what?