What it is
Questions that add up long runs of numbers:
- 1 + 2 + … + 50
- the first 20 odd numbers
- the average of consecutive numbers
- 1² + 2² + … + 10²
How to solve it
- 1 + 2 + … + n = n(n + 1)/2
- First n odd numbers (1 + 3 + 5 + …) = n²
- First n even numbers (2 + 4 + …) = n(n + 1)
- 1² + 2² + … + n² = n(n + 1)(2n + 1)/6
- 1³ + 2³ + … + n³ = (n(n + 1)/2)²
- Consecutive numbers: the average is the middle number (or the mean of the first and last). Sum = average × count.
Tips and shortcuts
- Gauss's pairing: 1 + 100 = 2 + 99 = … = 101, and there are 50 pairs: 5,050.
- Any evenly spaced list: sum = (first + last) ÷ 2 × number of terms.
- Count the terms carefully: from 11 to 40 is 30 numbers (40 − 11 + 1).
- The sum of cubes is the square of the sum: 1³ + 2³ + 3³ = 36 = 6².
Solved examples
Example 1 (easy)
1 + 2 + … + 40?
40 × 41/2 = 820.
Example 2 (medium): average of consecutive numbers
The average of 9 consecutive numbers is 24. The largest?
Middle = 24, so the largest is 4 above: 28.
Example 3 (hard): sum of squares
1² + 2² + … + 12²?
12 × 13 × 25/6 = 650.
Example 4 (medium): odd numbers
Sum of the first 25 odd numbers?
25² = 625.
Example 5 (hard): a range
Sum of the numbers from 21 to 60?
40 terms, average (21 + 60)/2 = 40.5 → 40 × 40.5 = 1,620.