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.
Draw the sum 1 + 2 + … + 10 as columns of squares. Column 1 has one square, column 10 has ten.
1 + 2 + … + 10 = ?
Turn a second copy of the staircase upside down and set it on top. Its columns run 10, 9, …, 1.
(1 + … + 10) + (10 + … + 1)
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
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
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
cd svg-generator python3 -m svgmath render gauss-sum --out /tmp/gauss-sum
Source: svgmath/diagrams/series.py