Sum of an Arithmetic Series: Gauss's Trick

April 12, 2026

Problem

Find the sum of the first 100 natural numbers: S = 100(101)/2 = 5050.

Explanation

The arithmetic series formula

Sn=n(a1+an)2S_n = \frac{n(a_1 + a_n)}{2}

This is "number of terms × average of first and last."

Step-by-step: Find 1+2+3++1001 + 2 + 3 + \cdots + 100

Step 1 — Identify the values: a1=1a_1 = 1, an=a100=100a_n = a_{100} = 100, n=100n = 100.

Step 2 — Apply the formula:

S=100(1+100)2=100×1012=101002=5050S = \frac{100(1 + 100)}{2} = \frac{100 \times 101}{2} = \frac{10100}{2} = 5050

Gauss's pairing trick (the intuition)

Write the sum forward and backward:

S=1+2+3++99+100S = 1 + 2 + 3 + \cdots + 99 + 100 S=100+99+98++2+1S = 100 + 99 + 98 + \cdots + 2 + 1

Add them: 2S=101+101+101++1012S = 101 + 101 + 101 + \cdots + 101 (100 pairs of 101).

2S=100×101=101002S = 100 \times 101 = 10100 S=5050S = 5050

Legend: The young Carl Friedrich Gauss reportedly computed this in seconds when his teacher assigned it as busywork!

General formula derivation

For any arithmetic series a1+(a1+d)+(a1+2d)++ana_1 + (a_1 + d) + (a_1 + 2d) + \cdots + a_n: each pair (first + last) sums to a1+ana_1 + a_n, and there are n/2n/2 such pairs. So S=n(a1+an)/2S = n(a_1 + a_n)/2.

Try it in the visualization

Adjust nn, a1a_1, and dd. Watch Gauss's pairing animate — first and last terms pair up, each summing to the same value. The bar chart shows the terms and their sum.

Interactive Visualization

Parameters

100.00
1.00
1.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day