• Foundation
  • About 16 min
  • 5 practice questions

Sum of the first n terms of an AP

Derive the sum formula for an AP by pairing terms, and use Sₙ = n/2 [2a + (n − 1)d] and Sₙ = n/2 (a + l) to add up APs quickly, including the sum of the first n natural numbers.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Explain the pairing idea behind the sum of an AP and derive the sum formula.
  • Use Sₙ = n/2 [2a + (n − 1)d] when a, d and n are known.
  • Use Sₙ = n/2 (a + l) when the first and last terms are known, and find the sum of the first n natural numbers.

Suppose you must add 1 + 2 + 3 + … + 100. Adding one number at a time is slow and error-prone. A famous story tells of the young mathematician Carl Friedrich Gauss, who noticed that pairing the first and last numbers, the second and second-last numbers, and so on, gives the same total every time. That pairing idea works for every AP.

The pairing idea

Pair 1 with 100, 2 with 99, 3 with 98, and so on. Each pair adds to 101, and the 100 numbers make 50 pairs. So the sum is 50 × 101 = 5050. The same trick, written with letters, gives a formula for any AP.

Deriving the formula

Let Sₙ be the sum of the first n terms of an AP with first term a and common difference d. Write the sum forwards and then backwards:

  1. Sₙ = a + (a + d) + (a + 2d) + … + [a + (n − 1)d]
  2. Sₙ = [a + (n − 1)d] + [a + (n − 2)d] + … + a
  3. Add the two lines term by term. Each pair adds to 2a + (n − 1)d, and there are n pairs.
  4. So 2Sₙ = n[2a + (n − 1)d], which gives Sₙ = n/2 [2a + (n − 1)d].

The last term is l = a + (n − 1)d, so 2a + (n − 1)d = a + l. This gives a second form, Sₙ = n/2 (a + l). In words: the sum equals the number of terms multiplied by the average of the first and last terms.

Sum of the first n terms of an AP: Sₙ = n/2 [2a + (n − 1)d] = n/2 (a + l), where l is the nth (last) term. Sum of the first n natural numbers: 1 + 2 + … + n = n(n + 1)/2.

Which sum formula to use

  • Sₙ = n/2 [2a + (n − 1)d]
    • Use when a, d and n are known
    • No need to find the last term
    • Works for every AP question
  • Sₙ = n/2 (a + l)
    • Use when the first and last terms are known
    • Find n first if it is not given
    • Quickest for finite APs

Worked example 1: using a, d and n

Find the sum of the first 20 terms of 2, 7, 12, 17, … . Working: a = 2, d = 5, n = 20. S₂₀ = 20/2 [2 × 2 + (20 − 1) × 5] = 10 [4 + 95] = 10 × 99 = 990.

Worked example 2: using the first and last terms

Find 5 + 9 + 13 + … + 101. Working: a = 5, d = 4, l = 101. First count the terms: n = (101 − 5) ÷ 4 + 1 = 24 + 1 = 25. Then S = 25/2 × (5 + 101) = 25/2 × 106 = 25 × 53 = 1325.

Worked example 3: a decreasing AP

Find the sum of the first 15 terms of 30, 27, 24, … . Working: a = 30, d = −3, n = 15. S₁₅ = 15/2 [60 + 14 × (−3)] = 15/2 [60 − 42] = 15/2 × 18 = 15 × 9 = 135. Check with the other form: l = 30 + 14 × (−3) = −12, so S₁₅ = 15/2 × (30 + (−12)) = 15/2 × 18 = 135.

Worked example 4: the first n natural numbers

1, 2, 3, … , n is an AP with a = 1, d = 1 and l = n, so its sum is n/2 (1 + n) = n(n + 1)/2. For the first 50 natural numbers: 50 × 51 ÷ 2 = 2550 ÷ 2 = 1275.

Sum formulas at a glance
What you knowFormulaExample
a, d, nn/2 [2a + (n − 1)d]First 20 terms of 2, 7, 12: 990
a, l, nn/2 (a + l)5 + 9 + … + 101: 1325
Natural numbers 1 to nn(n + 1)/21 to 50: 1275
First n odd numbers 1, 3, 5, …n² (from a = 1, d = 2)First 10 odd numbers: 100

The last row comes from the main formula: with a = 1 and d = 2, Sₙ = n/2 [2 + 2(n − 1)] = n/2 × 2n = n².

Key takeaways: pairing the first and last terms gives equal pair sums, which leads to Sₙ = n/2 [2a + (n − 1)d] = n/2 (a + l). If the number of terms is not given, find n first with the nth term formula. Keep the sign of d in decreasing APs. The first n natural numbers add up to n(n + 1)/2 and the first n odd numbers to n².

Check your understanding

  1. 1. What is the sum of the first 10 terms of the AP 3, 7, 11, 15, … ?

    1. 200
    2. 105
    3. 210
    4. 220
    Show answer

    Answer: C. a = 3, d = 4, n = 10. S₁₀ = 10/2 [2 × 3 + 9 × 4] = 5 [6 + 36] = 5 × 42 = 210.

  2. 2. What is the sum of the first 100 natural numbers?

    1. 5000
    2. 5050
    3. 10100
    4. 4950
    Show answer

    Answer: B. Sum = n(n + 1)/2 = 100 × 101 ÷ 2 = 10100 ÷ 2 = 5050. 10100 forgets to halve, and 4950 is the sum only up to 99.

  3. 3. Find the sum 10 + 14 + 18 + … + 90.

    1. 1050
    2. 1000
    3. 2100
    4. 1090
    Show answer

    Answer: A. a = 10, d = 4, l = 90. n = (90 − 10) ÷ 4 + 1 = 20 + 1 = 21. Sum = 21/2 × (10 + 90) = 21/2 × 100 = 21 × 50 = 1050.

  4. 4. What is the sum of the first 12 terms of the AP 40, 36, 32, … ?

    1. 264
    2. 228
    3. 252
    4. 216
    Show answer

    Answer: D. a = 40, d = −4, n = 12. S₁₂ = 12/2 [80 + 11 × (−4)] = 6 [80 − 44] = 6 × 36 = 216. Using d = +4 by mistake gives 6 × 124, far too big.

  5. 5. Assertion (A): The sum of the first 10 odd numbers is 100. Reason (R): The sum of the first n odd numbers is n(n + 1).

    1. Both Assertion (A) and Reason (R) are true, and R is the correct explanation of A
    2. Both A and R are true, but R is not the correct explanation of A
    3. A is true, but R is false
    4. A is false, but R is true
    Show answer

    Answer: C. A is true: 1 + 3 + … + 19 has a = 1, d = 2, n = 10, so S = 10/2 [2 + 18] = 5 × 20 = 100. R is false: the sum of the first n odd numbers is n/2 [2 + 2(n − 1)] = n², not n(n + 1). For n = 10, n(n + 1) would give 110, not 100.

Privacy · Terms · Refunds · Delivery