Y
Hacker News
new
|
ask
|
show
|
jobs
by
lokedhs
2857 days ago
There is an error in the squares formula as well. The correct formula is:
(n*(n+1)*(2*n+1))/6.
1 comments
weebst
2856 days ago
Thanks a lot for pointing these out! I've corrected them.
link