Adding the terms of an A.P. one by one is slow when there are fifty or a hundred of them. There is a neat trick, said to have been found by the young Carl Friedrich Gauss when he was asked in class to add the numbers from 1 to 100: write the sum forwards and backwards, and add the two. This lesson turns that trick into a formula for the sum of any number of terms of an A.P.
Adding 1 to 100#
Write the sum twice, once in each order:
SS=1+2+3+⋯+99+100=100+99+98+⋯+2+1
Add the two lines column by column. Every column adds up to 101, and there are 100 columns. So 2S=100×101, and S=5050.
The sum of n terms of an A.P.#
Do the same with a general A.P. whose first term is a, common difference d and nth term l=a+(n−1)d:
SnSn=a+(a+d)+(a+2d)+⋯+(l−d)+l=l+(l−d)+(l−2d)+⋯+(a+d)+a
Adding column by column, each pair gives a+l, and there are n pairs. So 2Sn=n(a+l), which gives
Sn=2n(a+l)
Replacing l by a+(n−1)d gives the second form:
Sn=2n[2a+(n−1)d]
Use the first form when you know the last term, and the second when you know the common difference.
Useful special sums#
Three sums occur so often that they are worth remembering. Each follows from the formula.
The first n natural numbers (a=1, l=n): 1+2+3+⋯+n=2n(n+1).
The first n odd numbers (a=1, d=2): 1+3+5+⋯+(2n−1)=2n[2+2(n−1)]=n2.
The first n even numbers (a=2, d=2): 2+4+6+⋯+2n=n(n+1).
Sum and term are linked#
Remember from the first lesson that tn=Sn−Sn−1. For an A.P. this gives a quick test: the sum Sn of an A.P. is always of the form pn2+qn (no constant term), and then tn=Sn−Sn−1.
Example 1#
Find the sum of the first 20 terms of the A.P. 2,5,8,…
a=2, d=3, n=20.
S20=220[2×2+19×3]=10×(4+57)=10×61=610
Example 2#
Find the sum 7+11+15+⋯+207.
First count the terms: 7+4(n−1)=207 gives 4(n−1)=200, so n=51. Now use the form with the last term:
S51=251(7+207)=251×214=51×107=5457
Example 3#
Find the sum of the first 15 terms of the A.P. 30,26,22,…
a=30, d=−4.
S15=215[60+14×(−4)]=215×(60−56)=215×4=30
Example 4#
How many terms of the A.P. 30,27,24,… must be taken so that their sum is 162?
a=30, d=−3. Set Sn=162:
2n[60+(n−1)(−3)]n(63−3n)3n2−63n+324n2−21n+108(n−9)(n−12)=162=324=0=0=0
So n=9 or n=12. Both answers are correct. The first nine terms are 30,27,…,6, with sum 29(30+6)=162. The 10th, 11th and 12th terms are 3,0,−3, which add up to 0, so taking 12 terms also gives 162.
Example 5#
The sum of the first n terms of a sequence is Sn=3n2+2n. Show that it is an A.P. and find its general term.
tn=Sn−Sn−1=3n2+2n−[3(n−1)2+2(n−1)]
Expanding, 3(n−1)2+2(n−1)=3n2−6n+3+2n−2=3n2−4n+1. So
tn=3n2+2n−3n2+4n−1=6n−1
This also gives t1=5=S1. Since tn=6n−1 is first degree in n, the sequence is an A.P.: 5,11,17,… with d=6.
Example 6#
Find the sum of all odd numbers between 0 and 100.
These are 1,3,5,…,99, the first 50 odd numbers. Their sum is 502=2500.
Example 7#
The first term of an A.P. is 5, the last term is 45 and the sum is 400. Find the number of terms and the common difference.
From Sn=2n(a+l): 400=2n(5+45)=25n, so n=16. Then 45=5+15d gives d=1540=38.
Practice#
- Find the sum of the first 25 natural numbers.
- Find the sum of the first 12 terms of 3,8,13,…
- Find the sum 10+14+18+⋯+102.
- Find the sum of the first 10 terms of 20,17,14,…
- Find the sum of the first 40 even numbers.
- How many terms of 3,6,9,… must be added to get 165?
- How many terms of 17,15,13,… give a sum of 72? Explain why there are two answers.
- If Sn=2n2+5n, find tn and the common difference.
- The first term of an A.P. is 8, the last term is 62 and the sum is 350. Find the number of terms and the common difference.
- Find the sum of all multiples of 6 between 1 and 200.
Answers#
Show answers
- 225×26=325
- S12=6[6+11×5]=6×61=366
- 10+4(n−1)=102 gives n=24; S24=12×112=1344.
- S10=5[40+9×(−3)]=5×13=65
- 40×41=1640
- 2n[6+3(n−1)]=165 gives n(n+1)=110, so n=10.
- 2n[34−2(n−1)]=72 gives n(18−n)=72, so n2−18n+72=0 and n=6 or n=12. Terms 7 to 12 are 5,3,1,−1,−3,−5, which add up to 0.
- tn=4n+3, so d=4.
- 350=2n(8+62)=35n, so n=10; then 62=8+9d gives d=6.
- The multiples are 6,12,…,198: 33 terms. Sum =233(6+198)=33×102=3366.