Gauss Trick (Summing up a series of number )

Data System Architecture

Problem

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

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>





Discover More
Thomas Bayes
What is a Pattern ?

A pattern means that the data (visual or not) are correlated that they have a relationship and that they are predictable. When you have a lack of pattern, you have true randomness When you find a pattern,...



Share this page:
Follow us:
Task Runner