letx=

Sequences and series

Arithmetic series (sum)

Adds up the first n terms of an arithmetic sequence in one step.

Sn=n2(2a1+(n−1)d)
Using the last termSn=n2(a1+an)

Calculator

The live calculator needs JavaScript. The worked example below shows the same steps it would.

See it move

024681012141618205101520average
  • Terms: 1, 2, 3, 4, 5, 6, …; the 20th term is 20
  • Sum of the 20 bars = n × average = 20 × 10.5 = 210

What the symbols mean

Sn
the sum of the first n terms, Sn
a1
the first term
d
the common difference
n
how many terms are added

When to use it

Use it to total anything that grows by a fixed amount: savings that increase by the same sum each month, the seats in a theatre whose rows grow by two, the logs in a stacked pile. If you know the last term, the form n2(a1+an) is quicker. Solving for n gives a quadratic; this calculator keeps only positive whole-number answers.

Worked example

Add up the whole numbers from 1 to 100 (a₁ = 1, d = 1, n = 100).

  1. Start from the formula.

    Sn=n2·(2⁢a1+(n−1)⁢d)
  2. Substitute a1 = 1, d = 1, n = 100 and work it out.

    Sn=1002·(2·1+(100−1)·1)
    =50·(2+99·1)
    =50·(2+99)
    =50·101
    =5050
  3. Check with the other form, n times the average of the first and last terms: the last term is an=100, and 1002(1+100)=5050.

Answer S₁₀₀ = 5050

Why it works

Write the sum forwards and backwards and add the two lines term by term: every pair adds to a1+an, and there are n pairs, so twice the sum is n(a1+an). Substituting an=a1+(n−1)d gives the formula.

Common mistakes

  • Using n where the formula has n−1 inside the bracket.
  • Halving twice: the n2 already takes care of the pairing, so do not divide the bracket by 2 as well.
  • Counting terms wrongly: from 5 to 50 in steps of 5 there are 10 terms, not 9 (use n=(an−a1)/d+1).