Overview
Adding long lists of numbers is slow, but closed-form formulas do it instantly. Gauss famously summed 1 to 100 as a schoolboy.
Enter n to get the sum of the first n natural numbers, squares, cubes, odds and evens.
Worked examples
| Inputs | Result |
|---|---|
| n100 | 1 + 2 + … + 100 = 5,0501² + 2² + … + 100² = 338,3501³ + 2³ + … + 100³ = 25,502,500Sum of first 100 odd numbers = 10,000Sum of first 100 even numbers = 10,100 |
Show 3 more examples
| n10 | 1 + 2 + … + 10 = 551² + 2² + … + 10² = 3851³ + 2³ + … + 10³ = 3,025Sum of first 10 odd numbers = 100Sum of first 10 even numbers = 110 |
| n50 | 1 + 2 + … + 50 = 1,2751² + 2² + … + 50² = 42,9251³ + 2³ + … + 50³ = 1,625,625Sum of first 50 odd numbers = 2,500Sum of first 50 even numbers = 2,550 |
| n1,000 | 1 + 2 + … + 1000 = 500,5001² + 2² + … + 1000² = 333,833,5001³ + 2³ + … + 1000³ = 250,500,250,000Sum of first 1000 odd numbers = 1,000,000Sum of first 1000 even numbers = 1,001,000 |
Sum of Natural Numbers, Squares and Cubes by n
With the calculator's starting values, the result is 5,050. The table shows how it changes with the n.
| n | Sum of Natural Numbers, Squares and Cubes |
|---|---|
| 60 | 1,830 |
| 80 | 3,240 |
| 100starting value | 5,050 |
| 120 | 7,260 |
| 140 | 9,870 |
How it works
The sum 1 + 2 + … + n equals n(n+1)/2. The sum of squares is n(n+1)(2n+1)/6, and the sum of cubes is the square of the first sum.
The formula
Σk = n(n+1)/2 · Σk² = n(n+1)(2n+1)/6 · Σk³ = (n(n+1)/2)²
| n | How many terms |
Practical tips
- The sum of the first n odd numbers is always n².
- Triangle numbers (1, 3, 6, 10…) are the results of the first formula.
Frequently asked questions
What is 1 + 2 + … + 100?
5,050.
What is the sum of the first 10 squares?
385.