Gauss Trick (Summing up a series of number )

Table of Contents

1 - Problem

Summing up a series of number <MATH> 1 + 2 + \dots + 50 + 51 + \dots + 99 + 100 </MATH>

2 - Solution

There is a pattern, there is 50 pairs of value 101:

  • <math>1 + 100</math>
  • <math>2 + 99</math>
  • <math>50 + 51</math>

The total is then <MATH> 50 * 101 = 5050 </MATH>

data/type/number/gauss_trick.txt · Last modified: 2017/09/13 16:04 by gerardnico