Little Gauss
About this app
The sum 1 + 2 + … + n as a staircase of cubes: a copy turned by 180° completes it to an n × (n+1) rectangle with equally high columns. With Gauss’s pairs up to 100, upper limit n − 1 (slide 8) and the arithmetic series sₙ = n/2·(a₁ + aₙ) (slide 9).
With explain mode: an AI tutor walks you through the app, points out what matters in the scene and answers your questions.
The formula
The sum of the first n natural numbers is 1 + 2 + … + n = n(n+1)/2, so 5050 for n = 100. The reason is a picture: lay the sum out as a staircase of cubes and add an identical staircase turned by 180°. Together they fill a rectangle of n columns, each n + 1 high, and the staircase is half of it. The same holds for every finite arithmetic series with aₖ = a + (k−1)d: every column is a₁ + aₙ high, so sₙ = n/2 · (a₁ + aₙ), the number of terms times the mean of the first and last term.
What the app shows
The staircase grows column by column. A copy lifts off, turns by 180° and snaps into the gaps. Height marks on every column show that they are all equally high, then the copy turns see-through and the staircase remains as half the rectangle. In pairs mode, arcs connect 1 with n, 2 with n − 1 and so on; for odd n the middle stays alone. In the arithmetic series mode the staircase has a base a and steps of height d. The working with numbers is shown in a panel.
Try it
Drag the handle at the end of the staircase to change n and tap a column: it shows its two parts, for example 2 + 5 = 7 for n = 6. Play the five steps or scrub back and forth with the slider. Load Gauss’s school task 1 + … + 100 = 50 · 101 = 5050 or the production example with a = 3, d = 2 and n = 8, which gives 80. With the upper limit n − 1 you see the variant (n−1)n/2.
Frequently asked questions
- What is the formula for the sum of 1 to n?
- The sum 1 + 2 + 3 + … + n equals n(n+1)/2. For n = 10 that is 55, for n = 100 it is 5050. Without the last term, 1 + 2 + … + (n−1) = (n−1)n/2. It is often called Gauss’s formula or the triangular number formula.
- Does the pairing trick work for odd n?
- Yes. For odd n the middle number has no partner, for example 4 when n = 7: three pairs of 8 plus 4 gives 28. The result n(n+1)/2 is still always a whole number, because one of the two consecutive numbers n and n + 1 is even. The rectangle made of the staircase and its rotated copy needs no case distinction at all.
- How do you calculate the sum of an arithmetic series?
- For an arithmetic sequence aₖ = a + (k−1)d, sₙ = n/2 · (a₁ + aₙ) = n/2 · (2a + (n−1)d): the number of terms times the mean of the first and last term. Example a = 3, d = 2, n = 8: aₙ = 17, s₈ = 4 · 20 = 80. Equivalently, sₙ = n·a + d·(n−1)n/2.
- What can I change in the app?
- You choose the mode 1 + … + n, pairs or arithmetic series, set n, the first term a and the difference d, switch the upper limit between n and n − 1 and play the proof step by step. You can rotate the scene, drag n at the end of the staircase and tap any column.
Subject: Visual proofs
More from Visual proofs
- Achilles and the Tortoise (Zeno)
- Banach–Tarski: 1 orange becomes 2
- Hilbert's Hotel
- Why √2 is not rational
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps