A number that is both a square and a cube
What is the smallest whole number greater than 1 that is both a perfect square and a perfect cube? Describe all numbers with this property in terms of their prime factorisations, and say how many of them lie below one million.
Show a hint
Look at the prime factorisation. A square has all exponents even; a cube has all exponents multiples of 3.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
The last digit of seven to the seven to the sevenThe last two digits of seven to the power 2024The smallest number divisible by everything up to 20The smallest number with exactly twelve divisorsHow many zeros end 25 factorial in base twelve?
All questions →