Y
Hacker News
new
|
ask
|
show
|
jobs
by
lokedhs
3030 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
3030 days ago
Thanks a lot for pointing these out! I've corrected them.
link