Your Equation

Library / Foundations: Maths / FMA-17

Foundations: Maths

Arithmetic series: sum of n terms

Total of the first n terms when each rises by a constant step.

Ref
FMA-17
Rev
v1
Field
Foundations: Maths
Result
Sn

a is the first term, d the common difference and n the number of terms.

Pair the first and last terms, the second and second-to-last, and so on: each pair has the same total, so the sum is the number of pairs times that total.

Calculator

Solve for
120
110
3100
  • Last term a + (n − 1)d39
  • Mean of the terms21

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Sum of n terms () current value 210
nNumber of termsKey driver
2120,100
dCommon difference
75480
aFirst term
190380
  • The sum equals the number of terms times the average of the first and last terms.
  • The sum of the first n whole numbers is n(n+1)/2, the case a = d = 1.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing ()Local stepChange in result
n Number of terms3 to 100 2120,10020,080+10%+20.5 %
d Common difference1 to 10 75480405+10%+8.57 %
a First term1 to 20 190380190+10%+1.43 %

Sweep of Number of terms

Number of termsSum of n terms
321
15.13472.7
27.251,512
39.383,140
51.55,356
63.638,160
75.7511,550
87.8815,530
10020,100

Sweep one variable

Sum of n terms ()Hover, touch, or use the arrow keys on the chart
0500010k15k20k 20406080100 Number of terms now 210

Variables and how each one contributes

Sn

Sum of n terms

Result ·

What the equation gives you. Everything else feeds it.

a

First term

· typical 1 to 20

The first term. Adds n times its value to the sum.

d

Common difference

· typical 1 to 10

Step between terms. Its effect grows with n²: more terms make the step far more important.

n

Number of terms

· typical 3 to 100

How many terms are added. The sum grows roughly with n².

Worked example with the values above

  1. Last term: 3 + 9 × 4 = 39.
  2. Average of first and last: 21.
  3. Sn = 10 × 21 = 210.

Assumptions and limits

  • A constant common difference.
  • n is a positive whole number.

Common mistakes

  • Using n instead of n − 1 in the bracket.
  • Mixing up the sum with the nth term.

Statistics and uncertainty

The sum grows roughly with n², so an error in the count n has double the relative effect on the total.

Where it is used

  • Total stack or layer counts.
  • Cumulative totals of a steadily changing quantity.

Maths you need

  • Arithmetic sequences: nth term a + (n−1)d
  • Algebra: brackets

Related formulas

Practise this formula