14
$\begingroup$

Possible Duplicate:
Proof for formula for sum of sequence $1+2+3+\ldots+n$?

Is there a shortcut method to working out the sum of n consecutive positive integers?

Firstly, starting at $1 ... 1 + 2 + 3 + 4 + 5 = 15.$

Secondly, starting at any other positive integer ...($10$ e.g.): $10 + 11 + 12 + 13 = 46$.

  • 1
    This is not at all a duplicate of the question its marked as a dupe of. This is asking for a simple formula, the other a detailed proof. Very different things. StackExchange has an epidemic of busy bodies marking things as duplicates unnecessarily and destructively.2015-12-18

2 Answers 2

35

Take the average of the first number and the last number, and multiply by the number of numbers.

  • 0
    computation Sum = total_numbers * ( first / 2 + last / 2 )2017-03-14
27

The rule, as given by Gerry's answer (and the generalization as per Henry's comment) can be easily visualized, in a similar way as we deduce the area of a rectangular trapezium:

enter image description here

  • 0
    Thanks Leon. Great illustration of the math.2011-07-13