Gauss's Trick: Two Staircases Make a Rectangle

Category: Sequences and Series   Level: 101

1 + 2 + … + n = n(n + 1)/2

Stack 1 + 2 + ... + 10 as a staircase of squares. A second, flipped staircase fills the gaps and makes a 10 by 11 rectangle, so one staircase holds half of 110, which is 55.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Build the staircase

Draw the sum 1 + 2 + … + 10 as columns of squares. Column 1 has one square, column 10 has ten.

1 + 2 + … + 10 = ?

Step 1: Build the staircase

Step 2: Add a flipped copy

Turn a second copy of the staircase upside down and set it on top. Its columns run 10, 9, …, 1.

(1 + … + 10) + (10 + … + 1)

Step 2: Add a flipped copy

Step 3: Every column holds 11

Each column pairs a blue count with an orange count that add to 11: 1 + 10, 2 + 9, and so on.

i + (11 - i) = 11

Step 3: Every column holds 11

Step 4: Count the rectangle and halve it

The two staircases fill a 10 by 11 rectangle of 110 squares. One staircase is half of that.

1 + 2 + … + 10 = 10·11/2 = 55

Step 4: Count the rectangle and halve it

Step 5: Use it for any n

Nothing in the picture depends on 10. For any n the two staircases make an n by n + 1 rectangle.

1 + 2 + … + n = n(n + 1)/2

Step 5: Use it for any n

All steps at once

Storyboard

Generate it yourself

cd svg-generator
python3 -m svgmath render gauss-sum --out /tmp/gauss-sum

Source: svgmath/diagrams/series.py