Y
Hacker News
new
|
ask
|
show
|
jobs
by
farhanhubble
2859 days ago
Amazing article! There's a bug in it though. The LHS of the sum of cubes formula ends in n^2 instead of n^3.
1 comments
lokedhs
2859 days ago
There is an error in the squares formula as well. The correct formula is:
(n*(n+1)*(2*n+1))/6.
link
weebst
2859 days ago
Thanks a lot for pointing these out! I've corrected them.
link