The Prince of Mathematicians
Have you ever heard the story of Carl Friedrich Gauss?
Today we call him the "Prince of Mathematicians" because of his extraordinary genius.

Our story takes place near the end of the 18th century. Gauss was a young student who couldn't sit still. One day, to keep him busy, his math teacher gave him a tough puzzle: calculate the sum of every whole number from 1 to 100.
Thinking this would keep the boy occupied for a long time, the teacher went back to his desk—only for the young prodigy to return moments later with the exact answer.
How do you think he pulled it off? *(Back then, of course, calculators didn't exist...)*
The Secret
The puzzle is to find the sum: S = 1 + 2 + 3 + ... + 99 + 100 = ?
Gauss started by writing the numbers in ascending order:
`1 2 3 4 5 ... 99 100`
Then he wrote them underneath in reverse order:
`100 99 98 ... 3 2 1`
He noticed that adding each number to the one directly below it always produced 101:
- 1 + 100 = 101
- 2 + 99 = 101
- 3 + 98 = 101
- ... (100 pairs in total)
He realized that by adding the two rows together, he would get twice the sum he was looking for:
`2S = 100 × 101`
`S = (100 × 101) / 2`
S = 5050