Why bother with a for­mula?

You could add the first hun­dred terms of an AP one at a time. You could also walk from Delhi to Agra. Nei­ther is a good use of an after­noon. In this les­son we work out a for­mula for the sum of the first nn terms, look at its two forms, and learn which one to pick up depend­ing on what the ques­tion gives you.

The for­mula, and where it comes from

Here's a neat trick. Write the sum SS of the first nn terms once for­wards and once back­wards:

S=a+(a+d)+(a+2d)+⋯+(a+(n−1)d)S = a + (a + d) + (a + 2d) + \cdots + (a + (n-1)d)
S=(a+(n−1)d)+(a+(n−2)d)+⋯+aS = (a + (n-1)d) + (a + (n-2)d) + \cdots + a

Now add the two lines term by term. Each pair adds up to exactly the same thing, 2a+(n−1)d2a + (n - 1)d, and there are nn pairs:

2S=n [2a+(n−1)d]2S = n\,[2a + (n - 1)d]

Bar diagram: the terms from a up to l as rising blue bars, with the same terms reversed stacked on top in amber. Every column reaches 2a + (n - 1)d, and there are n columns.
For­wards plus back­wards: n equal columns make 2S

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

The last term is l=a+(n−1)dl = a + (n - 1)d, so we can also write this as

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

In words, half the num­ber of terms times the sum of the first and last. Reach for this sec­ond form when­ever you know the last term. If you only know aa and dd, use the first.

Using the for­mu­las

Exam­ple 1. Find the sum of the first 3030 terms of 5,9,13,…5, 9, 13, \ldots.

Here a=5a = 5, d=4d = 4, n=30n = 30, so S30=302[10+29×4]=15×126=1890\displaystyle S_{30} = \frac{30}{2}[10 + 29 \times 4] = 15 \times 126 = 1890.

Exam­ple 2. Find 8+11+14+⋯+1168 + 11 + 14 + \cdots + 116.

We know a=8a = 8, d=3d = 3, l=116l = 116. First count the terms: 8+(n−1)⋅3=1168 + (n - 1) \cdot 3 = 116 gives n=37n = 37. Then S=372(8+116)=372×124=37×62=2294\displaystyle S = \frac{37}{2}(8 + 116) = \frac{37}{2} \times 124 = 37 \times 62 = 2294.

Exam­ple 3. Find the sum of the first 2020 terms of 15,12,9,…15, 12, 9, \ldots.

With d=−3d = -3, S20=202[30+19×(−3)]=10×(30−57)=−270\displaystyle S_{20} = \frac{20}{2}[30 + 19 \times (-3)] = 10 \times (30 - 57) = -270. Don't be alarmed by a neg­a­tive sum. The sev­enth term is 00, and from the eighth term on the terms them­selves are neg­a­tive.

Find­ing nn from a given sum

Set SnS_n equal to the given value and you get a qua­dratic in nn. Keep the root that is a pos­i­tive inte­ger.

Exam­ple 4. How many terms of 3,7,11,…3, 7, 11, \ldots add up to 210210?

n2[6+(n−1)⋅4]=210\displaystyle \frac{n}{2}[6 + (n - 1) \cdot 4] = 210, so n(4n+2)=420n(4n + 2) = 420, giv­ing 4n2+2n−420=04n^2 + 2n - 420 = 0, or 2n2+n−210=02n^2 + n - 210 = 0. This fac­torises as (2n+21)(n−10)=0(2n + 21)(n - 10) = 0. We reject −212\displaystyle -\frac{21}{2} and take n=10n = 10. So ten terms.

Sum from a for­mula for SnS_n; a term from two sums

Some­times SnS_n is handed to you as a for­mula. Then the nnth term is just the dif­fer­ence between two con­sec­u­tive sums:

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

Exam­ple 5. The sum of the first nn terms of an AP is Sn=3n2+5nS_n = 3n^2 + 5n. Find the 1212th term.

a12=S12−S11=(432+60)−(363+55)=492−418=74a_{12} = S_{12} - S_{11} = (432 + 60) - (363 + 55) = 492 - 418 = 74.

Let's dou­ble-check using the AP itself: a1=S1=8a_1 = S_1 = 8 and a2=S2−S1=22−8=14a_2 = S_2 - S_1 = 22 - 8 = 14, so d=6d = 6, and a12=8+11×6=74a_{12} = 8 + 11 \times 6 = 74 ✓.

Sums that need set­ting up

Exam­ple 6. Find the sum of all two-digit num­bers divis­i­ble by 66.

These are 12,18,24,…,9612, 18, 24, \ldots, 96, so a=12a = 12, d=6d = 6, l=96l = 96. From 12+(n−1)⋅6=9612 + (n - 1) \cdot 6 = 96 we get n=15n = 15. Then S=152(12+96)=152×108=810\displaystyle S = \frac{15}{2}(12 + 96) = \frac{15}{2} \times 108 = 810.

Exam­ple 7. A con­trac­tor gets ₹ 800800 for the first day of a job and ₹ 3030 more for each day after that. How much does he get in all for 2525 days?

With a=800a = 800, d=30d = 30, n=25n = 25: S25=252[1600+24×30]=252×2320=25×1160=29000\displaystyle S_{25} = \frac{25}{2}[1600 + 24 \times 30] = \frac{25}{2} \times 2320 = 25 \times 1160 = 29000. That's ₹ 2900029000.

Prac­tice

  1. Find the sum of the first 1616 terms of 7,10,13,…7, 10, 13, \ldots.
  2. Find 4+9+14+⋯+1294 + 9 + 14 + \cdots + 129.
  3. Find the sum of the first 2525 terms of 20,17,14,…20, 17, 14, \ldots.
  4. How many terms of 2,5,8,…2, 5, 8, \ldots add up to 155155?
  5. Given Sn=2n2+3nS_n = 2n^2 + 3n, find a1a_1, dd and a15a_{15}.
  6. Find the sum of all three-digit num­bers divis­i­ble by 1111.
  7. An AP has first term 33, last term 5151 and sum 459459. Find nn and dd.

Answers

Show answers
  1. S16=8[14+15×3]=8×59=472S_{16} = 8[14 + 15 \times 3] = 8 \times 59 = 472.
  2. 4+(n−1)⋅5=1294 + (n - 1) \cdot 5 = 129 gives n=26n = 26. So S=13(4+129)=13×133=1729S = 13(4 + 129) = 13 \times 133 = 1729.
  3. S25=252[40+24×(−3)]=252×(−32)=−400\displaystyle S_{25} = \frac{25}{2}[40 + 24 \times (-3)] = \frac{25}{2} \times (-32) = -400.
  4. n2[4+3(n−1)]=155\displaystyle \frac{n}{2}[4 + 3(n - 1)] = 155, so n(3n+1)=310n(3n + 1) = 310, which gives 3n2+n−310=03n^2 + n - 310 = 0, (3n+31)(n−10)=0(3n + 31)(n - 10) = 0, and n=10n = 10.
  5. a1=S1=5a_1 = S_1 = 5 and a2=S2−S1=14−5=9a_2 = S_2 - S_1 = 14 - 5 = 9, so d=4d = 4 and a15=5+14×4=61a_{15} = 5 + 14 \times 4 = 61. (Check: S15−S14=495−434=61S_{15} - S_{14} = 495 - 434 = 61 ✓.)
  6. The num­bers are 110,121,…,990110, 121, \ldots, 990, so a=110a = 110, d=11d = 11, and 110+(n−1)⋅11=990110 + (n - 1) \cdot 11 = 990 gives n=81n = 81. So S=812(110+990)=812×1100=44550\displaystyle S = \frac{81}{2}(110 + 990) = \frac{81}{2} \times 1100 = 44550.
  7. n2(3+51)=459\displaystyle \frac{n}{2}(3 + 51) = 459 gives 27n=45927n = 459, so n=17n = 17. Then 3+16d=513 + 16d = 51, so d=3d = 3.