DEV Community

Discussion on: Project Euler #6 - Sum Square Difference

Collapse
 
hishamkhr profile image
hishamkhr

hi
i try this:
sum of numbers= n(n+1)/2
then i get the square.
after that i found an equation about sum of squares:
(2*n^3 +3*n^2+n )/6
but i didn't get right result !!!!
so where i lost the control ?
thanks