Why the sum of the first n cubes is always a perfect square
1 = 1. 1 + 8 = 9. 1 + 8 + 27 = 36. 1 + 8 + 27 + 64 = 100. 1 + 8 + 27 + 64 + 125 = 225.
The sums of the first few cubes are all perfect squares. Which squares, and why does this always happen? Give a proof that a non-mathematician could follow.
Show a hint
The squares 1, 9, 36, 100, 225 are the squares of 1, 3, 6, 10, 15, which are the triangular numbers 1, 1 + 2, 1 + 2 + 3, and so on. Look for a picture: a square of side 1 + 2 + ... + n split into pieces.
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
Which numbers cannot be a sum of consecutive numbers?Writing 100 as a sum of consecutive numbersThe number equal to the sum of the cubes of its digitsThe taxicab numberThe person whose age is the square root of the year
All questions →