This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
This is known as Gauss' Trick , and the formula is:
2 ( x ( x + 1 ) )
2 ( 1 0 0 0 0 0 0 ( 1 0 0 0 0 0 0 + 1 ) )
2 ( 1 0 0 0 0 0 0 ) ( 1 0 0 0 0 0 1 ) )
= 5 0 0 0 0 0 5 0 0 0 0 0
This could also work as a function, wherein:
f ( x ) = 2 ( x ( x + 1 ) )
In which you can replace x with any integer, and the output with be the summation from 1 to x