Find all sets of consecutive integers that add up to 1000.
There are total 8 such series:
1.
Sum of 2000 numbers starting from -999 i.e. summation of numbers from -999 to 1000. (-999) + (-998) + (-997) + ….. + (-1) + 0 + 1 + 2 + ….. + 997 + 998 + 999 + 1000 = 1000
2.
Sum of 400 numbers starting from -197 i.e. summation of numbers from -197 to 202. (-197) + (-196) + (-195) + ….
[Read More]