Expresswala Academy Mathematics Tuition

Arithmetic Progressions

Sum of First n Terms of an AP: Class 10 Formula and Examples

See why the sum of an AP is n/2 times first plus last term, use both forms of the formula, find the number of terms from a sum, and recover the nth term from a formula for the sums.

By 9 min read

Adding the terms of an arith­metic pro­gres­sion one by one is slow and error-prone. For­tu­nately there is a neat trick that turns a long addi­tion into a sin­gle mul­ti­pli­ca­tion. It gives the total amount saved after many months, the total paid in instal­ments, the num­ber of pipes in a stack or the num­ber of seats in a hall. In this les­son you will see where the sum for­mula comes from, how to use both of its forms, how to work back­wards from a sum to the num­ber of terms, and how to recover the terms of an AP from a for­mula for its sums.

The pair­ing idea

Adding 1 to 10 in one step

A well-known story says that the young Carl Friedrich Gauss found the sum 1+2+⋯+1001 + 2 + \cdots + 100 almost instantly by pair­ing num­bers from the two ends. The same idea works for any AP. Take a smaller case, S=1+2+⋯+10S = 1 + 2 + \cdots + 10, and write it twice, once for­wards and once back­wards:

S=1+2+3+⋯+10S=10+9+8+⋯+1\begin{aligned} S &= 1 + 2 + 3 + \cdots + 10 \\ S &= 10 + 9 + 8 + \cdots + 1 \end{aligned}

Add the two lines col­umn by col­umn. Every col­umn adds up to 11, and there are 10 columns, so 2S=10×11=1102S = 10 \times 11 = 110 and S=55S = 55. In the same way, 1+2+⋯+1001 + 2 + \cdots + 100 has 100 columns each adding to 101, giv­ing 2S=101002S = 10100 and S=5050S = 5050.

Three rows of ten boxes: 1 to 10 forwards, 10 to 1 backwards, and ten green boxes each showing 11, with the line 2S = 10 x 11 = 110, so S = 55
Writ­ing the sum for­wards and back­wards makes every col­umn add up to the same num­ber.

The sum for­mula

The result

The sum of the first nn terms of an AP with first term aa and com­mon dif­fer­ence dd is

Sn=n2[2a+(n−1)d]\displaystyle S_n = \frac{n}{2}\left[2a + (n - 1)d\right]

If the last of these nn terms is l=a+(n−1)dl = a + (n - 1)d, this can also be writ­ten as

Sn=n2(a+l)\displaystyle S_n = \frac{n}{2}(a + l)

Proof

Write the sum for­wards, and then back­wards start­ing from the nnth term a+(n−1)da + (n - 1)d:

Sn=a+(a+d)+(a+2d)+⋯+[a+(n−1)d]Sn=[a+(n−1)d]+[a+(n−2)d]+⋯+a\begin{aligned} S_n &= a + (a + d) + (a + 2d) + \cdots + [a + (n - 1)d] \\ S_n &= [a + (n - 1)d] + [a + (n - 2)d] + \cdots + a \end{aligned}

Add the two lines term by term. In each col­umn, one term has kk lots of dd and the term beneath it has n−1−kn - 1 - k lots, so each col­umn adds up to

2a+(n−1)d2a + (n - 1)d

There are nn columns, so

2Sn=n[2a+(n−1)d]⇒Sn=n2[2a+(n−1)d]\displaystyle 2S_n = n\left[2a + (n - 1)d\right] \quad \Rightarrow \quad S_n = \frac{n}{2}\left[2a + (n - 1)d\right]

Since 2a+(n−1)d=a+[a+(n−1)d]=a+l2a + (n - 1)d = a + [a + (n - 1)d] = a + l, this is the same as Sn=n2(a+l)\displaystyle S_n = \frac{n}{2}(a + l). In words: the sum is the num­ber of terms times the aver­age of the first and last terms.

Grid of 5 rows and 16 columns: blue staircase of 2, 5, 8, 11, 14 squares and orange staircase of the same terms reversed, fitting together so 2S = 5 x 16 = 80 and S = 40
Two copies of the stair­case 2, 5, 8, 11, 14 fit together into a 5 by 16 rec­tan­gle, so the sum is half of 80.

Sum of the first n nat­ural num­bers

The nat­ural num­bers 1,2,3,…,n1, 2, 3, \ldots, n form an AP with a=1a = 1 and l=nl = n. So

1+2+3+⋯+n=n(n+1)2\displaystyle 1 + 2 + 3 + \cdots + n = \frac{n(n + 1)}{2}

For exam­ple, 1+2+⋯+40=40×412=820\displaystyle 1 + 2 + \cdots + 40 = \frac{40 \times 41}{2} = 820.

Get­ting a term back from the sums

The sum of the first nn terms is the sum of the first n−1n - 1 terms plus the nnth term: Sn=Sn−1+anS_n = S_{n-1} + a_n. There­fore, for n≥2n \ge 2,

an=Sn−Sn−1a_n = S_n - S_{n-1}

and a1=S1a_1 = S_1. This lets you find an AP when you are only told a for­mula for its sums.

Method

  1. Iden­tify aa and dd, and decide whether you know nn, the last term ll, or the sum SnS_n.
  2. If you know ll but not nn, first find nn from l=a+(n−1)dl = a + (n - 1)d.
  3. Use Sn=n2(a+l)\displaystyle S_n = \frac{n}{2}(a + l) when the last term is known; oth­er­wise use Sn=n2[2a+(n−1)d]\displaystyle S_n = \frac{n}{2}[2a + (n - 1)d].
  4. If nn is unknown and SnS_n is given, sub­sti­tute, clear the frac­tion and solve the qua­dratic in nn.
  5. Keep only pos­i­tive whole-num­ber val­ues of nn. If two such val­ues appear, check both and explain why both work.

Worked exam­ples

Exam­ple 1: sum of a given num­ber of terms

Find the sum of the first 20 terms of the AP 3, 8, 13, … .

Here a=3a = 3, d=5d = 5 and n=20n = 20:

S20=202[2×3+19×5]=10 [6+95]=10×101=1010\displaystyle S_{20} = \frac{20}{2}\left[2 \times 3 + 19 \times 5\right] = 10\,[6 + 95] = 10 \times 101 = 1010

Answer: 1010.

Exam­ple 2: sum when the last term is given

Find 5+9+13+⋯+1015 + 9 + 13 + \cdots + 101.

First find the num­ber of terms, with a=5a = 5, d=4d = 4 and l=101l = 101:

5+(n−1)×4=101  ⇒  n−1=24  ⇒  n=255 + (n - 1) \times 4 = 101 \;\Rightarrow\; n - 1 = 24 \;\Rightarrow\; n = 25

Now use the first-and-last form:

S25=252(5+101)=252×106=25×53=1325\displaystyle S_{25} = \frac{25}{2}(5 + 101) = \frac{25}{2} \times 106 = 25 \times 53 = 1325

Answer: 1325.

Exam­ple 3: sum of odd num­bers

Find the sum of all odd num­bers from 1 to 99.

The odd num­bers 1, 3, 5, …, 99 form an AP with a=1a = 1, d=2d = 2 and l=99l = 99. From 1+(n−1)×2=991 + (n - 1) \times 2 = 99 we get n=50n = 50. So

S50=502(1+99)=25×100=2500\displaystyle S_{50} = \frac{50}{2}(1 + 99) = 25 \times 100 = 2500

Answer: 2500. (Notice that 2500=5022500 = 50^2: the sum of the first nn odd num­bers is n2n^2.)

Exam­ple 4: find­ing n and reject­ing an invalid root

How many terms of the AP 3, 7, 11, … must be taken so that their sum is 406?

Here a=3a = 3 and d=4d = 4:

n2[6+(n−1)×4]=406n2(4n+2)=406n(2n+1)=4062n2+n−406=0\displaystyle \begin{aligned} \frac{n}{2}\left[6 + (n - 1) \times 4\right] &= 406 \\ \frac{n}{2}(4n + 2) &= 406 \\ n(2n + 1) &= 406 \\ 2n^2 + n - 406 &= 0 \end{aligned}

The dis­crim­i­nant is 1+4×2×406=3249=5721 + 4 \times 2 \times 406 = 3249 = 57^2, so

n=−1±574⇒n=14orn=−292\displaystyle n = \frac{-1 \pm 57}{4} \quad \Rightarrow \quad n = 14 \quad \text{or} \quad n = -\frac{29}{2}

The num­ber of terms must be a pos­i­tive whole num­ber, so n=−292\displaystyle n = -\frac{29}{2} is rejected.

Answer: 14 terms.

Exam­ple 5: when two val­ues of n both work

How many terms of the AP 30, 27, 24, … must be taken to give a sum of 135?

Here a=30a = 30 and d=−3d = -3:

n2[60−3(n−1)]=135n(63−3n)=2703n2−63n+270=0n2−21n+90=0(n−6)(n−15)=0\displaystyle \begin{aligned} \frac{n}{2}\left[60 - 3(n - 1)\right] &= 135 \\ n(63 - 3n) &= 270 \\ 3n^2 - 63n + 270 &= 0 \\ n^2 - 21n + 90 &= 0 \\ (n - 6)(n - 15) &= 0 \end{aligned}

So n=6n = 6 or n=15n = 15. Both are pos­i­tive whole num­bers, so both are valid. Why? The nnth term is an=30−3(n−1)=33−3na_n = 30 - 3(n - 1) = 33 - 3n, so the terms from the 7th to the 15th are

12,9,6,3,0,−3,−6,−9,−1212, 9, 6, 3, 0, -3, -6, -9, -12

These nine terms add up to 0, so adding them to the first six terms does not change the total.

Answer: Either 6 terms or 15 terms give a sum of 135.

Exam­ple 6: find­ing the AP from its sums

The sum of the first nn terms of an AP is Sn=2n2+5nS_n = 2n^2 + 5n. Find the nnth term and the com­mon dif­fer­ence.

Use an=Sn−Sn−1a_n = S_n - S_{n-1}:

an=(2n2+5n)−[2(n−1)2+5(n−1)]=2n2+5n−(2n2−4n+2+5n−5)=4n+3\begin{aligned} a_n &= (2n^2 + 5n) - \left[2(n - 1)^2 + 5(n - 1)\right] \\ &= 2n^2 + 5n - (2n^2 - 4n + 2 + 5n - 5) \\ &= 4n + 3 \end{aligned}

Check with n=1n = 1: a1=7a_1 = 7 and S1=2+5=7S_1 = 2 + 5 = 7. The terms are 7, 11, 15, …, so d=4d = 4.

Answer: an=4n+3a_n = 4n + 3 and d=4d = 4.

Exam­ple 7: word prob­lems

(a) Pipes are stacked with 24 pipes in the bot­tom row, 23 in the next, 22 in the next, and so on, with 9 pipes in the top row. How many pipes are there?

The rows form the AP 24, 23, …, 9 with d=−1d = -1. From 24−(n−1)=924 - (n - 1) = 9 we get n=16n = 16 rows. So the total is

S16=162(24+9)=8×33=264\displaystyle S_{16} = \frac{16}{2}(24 + 9) = 8 \times 33 = 264

(b) A loan is repaid in monthly instal­ments of ₹1000, ₹1100, ₹1200, and so on. How much is paid in the first 12 months?

S12=122[2×1000+11×100]=6×3100=18600\displaystyle S_{12} = \frac{12}{2}\left[2 \times 1000 + 11 \times 100\right] = 6 \times 3100 = 18600

Answer: (a) 264 pipes; (b) ₹18,600.

Com­mon mis­takes

  • Using Sn=n2(a+l)\displaystyle S_n = \frac{n}{2}(a + l) with the wrong nn. Find the num­ber of terms from l=a+(n−1)dl = a + (n - 1)d first; do not guess it.
  • For­get­ting the brack­ets, for exam­ple writ­ing n2×2a+(n−1)d\displaystyle \frac{n}{2} \times 2a + (n - 1)d. The n2\displaystyle \frac{n}{2} mul­ti­plies the whole bracket.
  • Keep­ing a neg­a­tive or frac­tional value of nn. A num­ber of terms must be a pos­i­tive whole num­ber.
  • Throw­ing away a valid sec­ond root. When both roots are pos­i­tive whole num­bers, both answers are cor­rect; explain why.
  • Con­fus­ing ana_n with SnS_n. The nnth term is one num­ber; SnS_n is the total of the first nn num­bers.
  • Writ­ing an=Sn−Sn−1a_n = S_n - S_{n-1} for n=1n = 1. For the first term use a1=S1a_1 = S_1.

Try these

  1. Find the sum of the first 15 terms of the AP 8, 5, 2, … . Answer: −195-195.
  2. Find the sum of all mul­ti­ples of 6 between 1 and 200. Answer: 3366.
  3. If Sn=n2+4nS_n = n^2 + 4n, find ana_n and a10a_{10}. Answer: an=2n+3a_n = 2n + 3; a10=23a_{10} = 23.
  4. How many terms of 45, 42, 39, … give a sum of 315? Answer: 10 or 21 (the 11th to 21st terms add up to 0).
  5. Find 1+2+3+⋯+601 + 2 + 3 + \cdots + 60. Answer: 1830.

Key terms

Sum of n terms
SnS_n, the total of the first nn terms of an AP.
Sum for­mula
Sn=n2[2a+(n−1)d]\displaystyle S_n = \frac{n}{2}[2a + (n - 1)d].
First-and-last form
Sn=n2(a+l)\displaystyle S_n = \frac{n}{2}(a + l), used when the last term ll is known.
Pair­ing method
Writ­ing a sum for­wards and back­wards so that every col­umn has the same total.
Nat­ural num­ber sum
1+2+⋯+n=n(n+1)2\displaystyle 1 + 2 + \cdots + n = \frac{n(n + 1)}{2}.
Term from sums
an=Sn−Sn−1a_n = S_n - S_{n-1} for n≥2n \ge 2, with a1=S1a_1 = S_1.

Com­mon ques­tions

Which sum for­mula should I use?

If the last term is known, n2(a+l)\displaystyle \frac{n}{2}(a + l) is quicker. If you know dd and nn but not the last term, use n2[2a+(n−1)d]\displaystyle \frac{n}{2}[2a + (n - 1)d]. Both always give the same answer.

Can the sum of an AP be zero or neg­a­tive?

Yes. When dd is neg­a­tive the later terms become neg­a­tive, and the total can fall to zero or below, as in the AP 12, 9, …, −12-12, whose terms add up to 0.

Why can two dif­fer­ent val­ues of n give the same sum?

If a block of con­sec­u­tive terms adds up to zero, includ­ing or leav­ing out that block does not change the total. This can hap­pen only when the terms change sign, so dd and aa have oppo­site signs.

Does the pair­ing method need an even num­ber of terms?

No. Writ­ing the sum twice avoids the prob­lem of a mid­dle term, because every col­umn pairs a term with a dif­fer­ent copy. That is why the for­mula works for odd nn too.

How can I check an answer quickly?

For small nn, add the terms directly. For large nn, check that S1S_1 equals the first term and that S2−S1S_2 - S_1 equals the sec­ond term.

Ref­er­ences

  1. National Coun­cil of Edu­ca­tional Research and Train­ing. Math­e­mat­ics: Text­book for Class X. NCERT, New Delhi.
  2. Hall, H. S. and Knight, S. R. Higher Alge­bra. Macmil­lan.
  3. Gelfand, I. M. and Shen, A. Alge­bra. Birkhäuser.