Y
Hacker News
new
|
ask
|
show
|
jobs
by
globnomulous
532 days ago
How so? I'm too dumb to see it.
1 comments
bonzini
532 days ago
The sum of the first n cubes is always the square of the sum of numbers from 1 to n. For example 1³+2³+3³+4³=(1+2+3+4)².
You can prove it by induction; just expand (n(n+1)/2)² – (n(n-1)/2)², the result is n³.
link
You can prove it by induction; just expand (n(n+1)/2)² – (n(n-1)/2)², the result is n³.