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

There is an error in the squares formula as well. The correct formula is:

    (n*(n+1)*(2*n+1))/6.
Thanks a lot for pointing these out! I've corrected them.