3 ms·
There is an error in the squares formula as well. The correct formula is: (n*(n+1)*(2*n+1))/6.
by lokedhs 8y ago
There is an error in the squares formula as well. The correct formula is:
(n*(n+1)*(2*n+1))/6.
- weebst 8y agoThanks a lot for pointing these out! I've corrected them.