About 70 minutes · 3 things to learn By the end you can…
Derive S_n = n/2 [2a + (n − 1)d] and S_n = n/2 (a + l).
Find S_n, or find n (including from a quadratic in n, deciding whether one or both roots are valid), a or d from a given sum.
Find the sum of the first n natural numbers, of odd numbers and of multiples in a range; find a_n from S_n using a_n = S_n − S_(n−1); find the sum of the last k terms.
The story goes that a teacher once asked a class to add all the whole numbers from 1 to 100. One pupil, the young Carl Friedrich Gauss, is said to have answered in moments: 5050. He did not add faster than everyone else — he added smarter, by pairing the numbers. This topic turns his trick into a formula that adds up any AP.
Gauss's pairing idea
Write the sum forwards, then backwards underneath, and add each column:
SS=1+2+3+⋯+100=100+99+98+⋯+1Swipe to see the whole equation →
Every column adds to 101, and there are 100 columns. So 2S=100×101, which gives S=5050. The same idea works for every AP.
Deriving the formula for Sn
Let Sn be the sum of the first n terms of an AP with first term a and common difference d.
Statement
Reason
Sn=a+(a+d)+⋯+[a+(n−1)d]
The first n terms written forwards. Call this (1).
Sn=[a+(n−1)d]+[a+(n−2)d]+⋯+a
The same terms written backwards. Call this (2).
Each column of (1) and (2) adds to 2a+(n−1)d.
The first column is a+[a+(n−1)d]. Moving one column to the right adds d to the top term and takes d away from the bottom term, so the column total never changes.
2Sn=n[2a+(n−1)d]
Adding (1) and (2): there are n columns, each with the same total.
Sn=2n[2a+(n−1)d]
Divide both sides by 2.
Sn=2n(a+l)
2a+(n−1)d=a+[a+(n−1)d]=a+l, where l=an is the last of the n terms.
Which sum formula?
Use Sn=2n(a+l) when you know the last term of the terms being added. Here l must be the nth term — the last of these n terms, not the last term of some longer list.
Otherwise use Sn=2n[2a+(n−1)d].
Two special sums: 1+2+3+⋯+n=2n(n+1) (here a=1, l=n), and the first n odd numbers 1+3+5+⋯+(2n−1)=2n(1+2n−1)=n2.
Finding n from a sum
Putting a known sum into the formula gives a quadratic in n. Solve it (factorise, as in Chapter 4) and test both roots:
A negative root, or one that is not a whole number, is rejected: n counts terms.
If both roots are positive whole numbers, the sum really is reached twice. This can happen only when the terms change sign (a and d have opposite signs): the terms between the two answers add up to 0. Then both are valid — unless the story rules one out (for example, it would need a negative number of objects in a row).
Quick reminder (Chapter 4). To factorise an2+bn+c, find two numbers whose product is a×c and whose sum is b, and split the middle term. For 2n2+3n−230: product −460, sum 3 → 23 and −20, so 2n2+23n−20n−230=(2n+23)(n−10).
Going backwards: an from Sn
The sum of the first n terms minus the sum of the first n−1 terms leaves the nth term:
an=Sn−Sn−1(n≥2),a1=S1Swipe to see the whole equation →
The sum of the last k terms
The last k of n terms are themselves an AP, from the (n−k+1)th term to the last term l. So their sum is 2k(an−k+1+l). A second route: Sn−Sn−k.
Visuals
Gauss pairing and the double staircaseThe derivation as a picture: two copies of the sum fit together into a rectangle n by (a + l).Formula cardEvery formula of the chapter on one card, each with the clue that tells you when to use it.
The AP explorer from Topic 3 opens here in its sum view. It shows the running total as each bar is added, and a "pair them up" button that folds the bars into Gauss's pairs.
AP explorer (interactive)Sₙ grow term by term and check that n/2 (a + l) gives the same total.
Worked examples
Worked example 1
A sum by each formula
Question. Find (a) the sum of the first 18 terms of the AP 14,19,24,… (b) 50+46+42+⋯+(−18).
Given: (a) a=14, d=5, n=18 (b) a=50, d=−4, last term l=−18. Asked: each sum.
Concept used:Sn=2n[2a+(n−1)d] when l is unknown; Sn=2n(a+l) when l is known. Why it applies: in (a) the last term is not given; in (b) it is, but n is not.
1
(a)
Substitute into Sn=2n[2a+(n−1)d].
S18=218[2×14+17×5]Swipe to see the whole equation →
2
Work out the bracket.
S18=9[28+85]Swipe to see the whole equation →
3
Add, then multiply.
S18=9×113=1017Swipe to see the whole equation →
4
(b)
Find n from l=a+(n−1)d.
−18=50+(n−1)(−4)Swipe to see the whole equation →
5
Subtract 50 from both sides.
−68=(n−1)(−4)Swipe to see the whole equation →
6
Divide by −4.
17=n−1Swipe to see the whole equation →
7
Add 1.
n=18Swipe to see the whole equation →
8
Now use Sn=2n(a+l).
S18=218(50+(−18))=9×32=288Swipe to see the whole equation →
Check: (a) a18=14+17×5=99, and 218(14+99)=9×113=1017 ✔. (b) the other formula: 9[100+17×(−4)]=9×32=288 ✔.
Answer(a) 1017 (b) 288
Common trap: In (b), using n=17 (from 468) and forgetting to add 1. Then 217(50−18)=272 — the count is one short.
Worked example 2
Finding n: one root or both?
Question. (a) How many terms of the AP 5,9,13,… are needed to make a sum of 230? (b) How many terms of the AP 30,26,22,… are needed to make a sum of 120? Explain your answer.
Concept used:Sn=2n[2a+(n−1)d] gives a quadratic in n; test both roots. Why it applies: n is unknown and appears twice in the formula.
1
(a)
Substitute.
230=2n[10+(n−1)×4]Swipe to see the whole equation →
2
Simplify the bracket: 10+4n−4=4n+6.
230=2n(4n+6)Swipe to see the whole equation →
3
Divide 4n+6 by 2.
230=n(2n+3)Swipe to see the whole equation →
4
Expand the bracket.
230=2n2+3nSwipe to see the whole equation →
5
Subtract 230 from both sides.
2n2+3n−230=0Swipe to see the whole equation →
6
Factorise (2×(−230)=−460=23×(−20), and 23−20=3).
(2n+23)(n−10)=0Swipe to see the whole equation →
7
So n=10 or n=−223. A number of terms cannot be negative (or a fraction), so reject −223.
8
(b)
Substitute.
120=2n[60+(n−1)(−4)]Swipe to see the whole equation →
9
Simplify the bracket: 60−4n+4=64−4n.
120=2n(64−4n)Swipe to see the whole equation →
10
Divide 64−4n by 2.
120=n(32−2n)Swipe to see the whole equation →
11
Expand the bracket.
120=32n−2n2Swipe to see the whole equation →
12
Add 2n2 and subtract 32n on both sides.
2n2−32n+120=0Swipe to see the whole equation →
13
Divide every term by 2.
n2−16n+60=0Swipe to see the whole equation →
14
Factorise.
(n−6)(n−10)=0Swipe to see the whole equation →
15
So n=6 or n=10. Both are positive whole numbers, so test both: S6=3(60−20)=120 ✔ and S10=5(60−36)=120 ✔. Both are valid.
16
Why? The 7th to 10th terms are 6,2,−2,−6, which add up to 0. So adding them leaves the sum at 120.
Check: (a) S10=5[10+36]=5×46=230 ✔.
Answer(a) 10 terms (b) 6 terms or 10 terms — both give 120, because terms 7 to 10 add up to 0.
Common trap: In (b), rejecting n=10 "because only one answer is allowed". Reject a root only for a reason: negative, not whole, or impossible in the story.
Worked example 3
Finding d or a from a sum
Question. (a) The first term of an AP is 13 and the sum of its first 12 terms is 486. Find the common difference and the 12th term. (b) The common difference of an AP is −3 and the sum of its first 10 terms is 25. Find the first term.
Given: (a) a=13, n=12, S12=486 (b) d=−3, n=10, S10=25. Asked: (a) d and a12 (b) a.
Concept used:Sn=2n[2a+(n−1)d] with one unknown. Why it applies: three of the four quantities S, a, d, n are known.
1
(a)
Substitute.
486=212[26+11d]Swipe to see the whole equation →
2
212=6; divide both sides by 6.
81=26+11dSwipe to see the whole equation →
3
Subtract 26.
55=11dSwipe to see the whole equation →
4
Divide by 11.
d=5Swipe to see the whole equation →
5
The 12th term: a12=13+11×5=68.
6
(b)
Substitute.
25=210[2a+9×(−3)]Swipe to see the whole equation →
7
Simplify: 210=5 and 9×(−3)=−27.
25=5(2a−27)Swipe to see the whole equation →
8
Divide both sides by 5.
5=2a−27Swipe to see the whole equation →
9
Add 27.
32=2aSwipe to see the whole equation →
10
Divide by 2.
a=16Swipe to see the whole equation →
Check: (a) 212(13+68)=6×81=486 ✔. (b) the AP is 16,13,10,…; a10=16−27=−11 and 210(16−11)=25 ✔.
Answer(a) d=5, a12=68 (b) a=16
Common trap: In (b), writing 9×(−3) as +27, which gives 2a+27=5 and a=−11 — that is the last term, not the first.
Worked example 4
The sum of multiples of two numbers
Question. Find the sum of all the integers between 1 and 300 that are multiples of both 6 and 8.
Given: the range 1 to 300; divisors 6 and 8. Asked: the sum.
Concept used: multiples of both 6 and 8 are multiples of LCM(6, 8); they form an AP; then Sn=2n(a+l). Why it applies: first and last terms are easy to find.
1
6=2×3 and 8=23, so LCM(6,8)=23×3=24.
2
The multiples of 24 between 1 and 300 are 24,48,…,288 (since 24×12=288 and 24×13=312>300).
3
Number of terms: put l=288.
288=24+(n−1)×24Swipe to see the whole equation →
4
Subtract 24 from both sides.
264=(n−1)×24Swipe to see the whole equation →
5
Divide by 24.
11=n−1Swipe to see the whole equation →
6
Add 1.
n=12Swipe to see the whole equation →
7
Sum.
S12=212(24+288)Swipe to see the whole equation →
8
Work it out.
S12=6×312=1872Swipe to see the whole equation →
Check:24+48+⋯+288=24×(1+2+⋯+12)=24×78=1872 ✔.
Answer1872
Common trap: Using 6×8=48: the list 48,96,…,288 has 6 terms and sum 1008 — it misses 24, 72, 120, 168, 216 and 264.
Worked example 5
The nth term from a formula for Sn
Question. The sum of the first n terms of an AP is Sn=2n2+11n. Find the first term, the common difference and the 15th term.
Given:Sn=2n2+11n. Asked: a, d and a15.
Concept used:a1=S1 and an=Sn−Sn−1. Why it applies: subtracting the sum of the first n−1 terms from the sum of the first n leaves the nth term.
1
First term.
a1=S1=2(1)2+11(1)=13Swipe to see the whole equation →
2
S2=2(4)+22=30, so a2=S2−S1=30−13=17.
3
Common difference: d=a2−a1=17−13=4.
4
General term (for n≥2).
an=[2n2+11n]−[2(n−1)2+11(n−1)]Swipe to see the whole equation →
5
Expand the second bracket: 2(n2−2n+1)+11n−11=2n2+7n−9.
an=2n2+11n−2n2−7n+9Swipe to see the whole equation →
6
Collect like terms.
an=4n+9Swipe to see the whole equation →
7
This also gives a1=4+9=13 ✔, so it holds for every n. The 15th term: a15=4×15+9=69.
Check: with a=13 and d=4, the sum formula gives Sn=2n[26+4(n−1)]=2n(4n+22)=2n2+11n ✔.
Answera=13, d=4, a15=69 (and an=4n+9)
Common trap: Putting n=15 into Sn: 2(225)+165=615 is the sum of the first 15 terms, not the 15th term.
Worked example 6
The sum of the last k terms
Question. The AP 9,12,15,… has 40 terms. Find the sum of its last 12 terms.
Given:a=9, d=3, n=40. Asked: the sum of the last 12 terms.
Concept used: the last 12 terms are an AP from the (40−12+1)=29th term to the 40th term. Why it applies: we can find both ends of that AP.
1
The last term.
l=a40=9+39×3=126Swipe to see the whole equation →
2
The first of the last 12 terms is the 29th term.
a29=9+28×3=93Swipe to see the whole equation →
3
Sum of these 12 terms.
212(93+126)=6×219=1314Swipe to see the whole equation →
Check (second route):S40−S28. S40=20(9+126)=2700; a28=90, so S28=14(9+90)=1386; 2700−1386=1314 ✔.
Answer1314
Common trap: Starting the last 12 terms at the 28th term (40−12=28). From the 28th to the 40th there are 13 terms, not 12.
6 examples · they get harder as you go
Quick check
Answer without scrolling up
Quick check · 1 of 4MCQ1 mark
The sum of the first 20 terms of the AP 2,5,8,… is:
This is the 20th term, 2+19×3 — the question asks for a sum.
S20=10[4+19×3]=10×61=610.
The 21 in 2n is missing.
This uses l=a+nd=62; the 20th term is a+19d=59.
Quick check · 2 of 4Very short answer1 mark
For an AP, Sn=n2+4n. Find a5.
Answer:a5=13
Working: S5=25+20=45 and S4=16+16=32, so a5=45−32=13.
S5=45 is the sum of five terms. The 5th term alone is S5−S4.
Did you get it?
Quick check · 3 of 4Very short answer1 mark
Find 1+2+3+⋯+60.
Answer: 1830
Working: 2n(n+1)=260×61=1830.
Pairs: 1+60=2+59=⋯=61, and there are 30 such pairs.
Did you get it?
Quick check · 4 of 4Short answer3 marks
Without looking back, derive Sn=2n[2a+(n−1)d], and use it to show Sn=2n(a+l). (3 marks)
Answer:
Write the sum forwards, Sn=a+(a+d)+⋯+[a+(n−1)d], and backwards, Sn=[a+(n−1)d]+[a+(n−2)d]+⋯+a. (1)
Add the two lines column by column: each of the n columns adds to 2a+(n−1)d, so 2Sn=n[2a+(n−1)d]. Dividing by 2 gives Sn=2n[2a+(n−1)d]. (1)
2a+(n−1)d=a+[a+(n−1)d]=a+l, so Sn=2n(a+l). (1)
The key step is that every column has the same total — that is why writing the sum backwards works.
Did you get it?
Key points
Sn=2n[2a+(n−1)d]=2n(a+l) — derived by adding the sum to itself written backwards.
Use 2n(a+l) only when l is the last of the n terms you are adding.
1+2+⋯+n=2n(n+1); 1+3+⋯+(2n−1)=n2.
A sum gives a quadratic in n: reject a root only for a reason; when both roots are positive whole numbers (terms change sign), both can be valid.
an=Sn−Sn−1 for n≥2, and a1=S1.
Sum of the last k terms =2k(an−k+1+l)=Sn−Sn−k.