What is $S_n$? The sum of the first $n$ terms of an AP is written $S_n$. It adds up everything from the first term to the $n$th term: $S_n = a_1 + a_2 + a_3 + \dots + a_n$. Adding the terms one by one is slow, so we use a formula.
The pairing idea (how the formula arises). Write the sum forwards and again backwards underneath, then add column by column. Each column sums to (first $+$ last), there are $n$ such columns, and we counted everything twice — hence $S_n = \dfrac{n}{2}(a + l)$. This pairing trick (often credited to a young Gauss) is the reason the $\dfrac{n}{2}$ appears.
The two standard formulas. $S_n = \dfrac{n}{2}\,[2a + (n - 1)d]$ and $S_n = \dfrac{n}{2}\,(a + l)$, where $l = a_n = a + (n - 1)d$ is the last term. The two are the same formula with $l$ written out, so pick whichever fits the data.
- Use $S_n = \dfrac{n}{2}[2a + (n - 1)d]$ when you know $a$, $d$ and $n$.
- Use $S_n = \dfrac{n}{2}(a + l)$ when you know $a$, the last term $l$ and $n$.
Recovering a term from the sums. A very useful relation links the sum and the terms: $a_n = S_n - S_{n - 1}$. The $n$th term is whatever the total gains when you include one more term. In particular $a_1 = S_1$. This is the standard way to find a term (or $d$) when only a formula for $S_n$ is given, e.g. $S_n = 3n^2 + 5n$.
Finding $n$ from a given sum. Setting $S_n$ equal to a target value gives an equation in $n$. Because $S_n$ is quadratic in $n$, this is a quadratic equation. Solve it, then keep only positive-integer roots. Sometimes two values of $n$ work — this happens in a decreasing AP, where later negative terms cancel earlier ones to give the same running total twice.
Reading the answer sensibly. $n$ must be a positive whole number. Discard fractions or negatives. If both quadratic roots are valid integers, both are genuine answers and should be reported. If neither is a positive integer, no such $n$ exists.
Where sums show up. Total savings after $n$ months under a fixed-increment plan; total seats across rows that grow steadily; total penalty when the daily fine rises; total logs in a triangular stack; total prize money split into steadily decreasing awards; total distance under uniform acceleration. Each of these is "add up an AP", i.e. a single $S_n$ calculation.
- Total savings after $n$ months with a fixed monthly increase.
- Total seats in a hall whose rows grow by a constant.
- Total penalty when the daily fine rises by a fixed amount.
- Total logs in a stack where each row has one fewer log.
Common mistakes to avoid. (1) Forgetting the factor $\dfrac{n}{2}$ or dividing only one bracket. (2) Mixing the two formulas — do not put $l$ inside the $[2a + (n - 1)d]$ bracket. (3) Sign slips when $d < 0$. (4) Keeping a non-integer or negative root for $n$. (5) In $a_n = S_n - S_{n - 1}$, miscomputing $S_{n-1}$ by failing to replace every $n$ with $(n - 1)$.
Find the sum of the first 20 terms of the AP 5, 11, 17, 23, ...
Solution- $a = 5$, $d = 6$, $n = 20$.
- $S_n = \dfrac{n}{2}[2a + (n - 1)d]$.
- $S_{20} = \dfrac{20}{2}[2 \times 5 + 19 \times 6] = 10[10 + 114]$.
- $= 10 \times 124 = 1240$.
Answer: The sum is 1240.
Find the sum of the first 15 terms of the AP 8, 3, -2, -7, ...
Solution- $a = 8$, $d = -5$, $n = 15$.
- $S_{15} = \dfrac{15}{2}[2 \times 8 + 14 \times (-5)]$.
- $= \dfrac{15}{2}[16 - 70] = \dfrac{15}{2}(-54)$.
- $= 15 \times (-27) = -405$.
Answer: The sum is $-405$.
The first term of an AP is 5, the last term is 45 and the sum is 400. Find the number of terms and the common difference.
Solution- $a = 5$, $l = 45$, $S_n = 400$.
- $S_n = \dfrac{n}{2}(a + l) \Rightarrow 400 = \dfrac{n}{2}(5 + 45) = 25n$.
- $n = 16$.
- Now $l = a + (n - 1)d \Rightarrow 45 = 5 + 15d \Rightarrow 15d = 40 \Rightarrow d = \dfrac{8}{3}$.
Answer: $n = 16$ and $d = \dfrac{8}{3}$.
How many terms of the AP 24, 21, 18, ... must be taken so that their sum is 78?
Solution- $a = 24$, $d = -3$, $S_n = 78$.
- $\dfrac{n}{2}[48 + (n - 1)(-3)] = 78 \Rightarrow \dfrac{n}{2}[51 - 3n] = 78$.
- $n(51 - 3n) = 156 \Rightarrow 3n^2 - 51n + 156 = 0 \Rightarrow n^2 - 17n + 52 = 0$.
- $(n - 4)(n - 13) = 0 \Rightarrow n = 4$ or $n = 13$.
- Both are positive integers; for $n = 13$ the later negative terms cancel back to 78.
Answer: 4 terms or 13 terms.
Find the sum of all two-digit numbers divisible by 3.
Solution- They are $12, 15, 18, \dots, 99$ with $a = 12$, $d = 3$, $l = 99$.
- Number of terms: $99 = 12 + (n - 1)3 \Rightarrow (n - 1)3 = 87 \Rightarrow n = 30$.
- $S_{30} = \dfrac{30}{2}(12 + 99) = 15 \times 111$.
- $= 1665$.
Answer: The sum is 1665.
The sum of the first $n$ terms of an AP is $S_n = 3n^2 + 5n$. Find its $n$th term and the 25th term.
Solution- $a_n = S_n - S_{n - 1}$.
- $S_{n - 1} = 3(n - 1)^2 + 5(n - 1) = 3n^2 - 6n + 3 + 5n - 5 = 3n^2 - n - 2$.
- $a_n = (3n^2 + 5n) - (3n^2 - n - 2) = 6n + 2$.
- $a_{25} = 6 \times 25 + 2 = 152$.
Answer: $a_n = 6n + 2$; the 25th term is 152.
A construction contract has a penalty for delay: ₹200 for the first day, ₹250 for the second, ₹300 for the third, and so on. Find the total penalty if work is delayed by 30 days.
Solution- Penalties: 200, 250, 300, ... — an AP with $a = 200$, $d = 50$.
- $S_{30} = \dfrac{30}{2}[2 \times 200 + 29 \times 50]$.
- $= 15[400 + 1450] = 15 \times 1850$.
- $= 27750$.
Answer: Total penalty $=$ ₹27,750.
A sum of ₹700 is to be used for seven cash prizes. Each prize is ₹20 less than its preceding prize. Find the value of each prize.
Solution- Let the largest prize be $a$; the prizes are $a, a - 20, a - 40, \dots$ ($d = -20$, $n = 7$).
- $S_7 = \dfrac{7}{2}[2a + 6(-20)] = 700 \Rightarrow \dfrac{7}{2}[2a - 120] = 700$.
- $7(a - 60) = 700 \Rightarrow a - 60 = 100 \Rightarrow a = 160$.
- Prizes: 160, 140, 120, 100, 80, 60, 40.
Answer: The prizes are ₹160, ₹140, ₹120, ₹100, ₹80, ₹60, ₹40.
200 logs are stacked so that the bottom row has 20 logs, the next 19, the next 18, and so on. In how many rows are the 200 logs placed, and how many are in the top row?
Solution- Rows have 20, 19, 18, ... logs — an AP with $a = 20$, $d = -1$, total $S_n = 200$.
- $\dfrac{n}{2}[40 + (n - 1)(-1)] = 200 \Rightarrow n(41 - n) = 400$.
- $n^2 - 41n + 400 = 0 \Rightarrow (n - 16)(n - 25) = 0 \Rightarrow n = 16$ or $25$.
- $n = 25$ gives a 25th row of $20 - 24 = -4$ logs (impossible), so $n = 16$.
- Top row: $a_{16} = 20 + 15(-1) = 5$ logs.
Answer: 16 rows, with 5 logs in the top row.
Find the sum of the first 40 positive integers divisible by 6.
Solution- They are $6, 12, 18, \dots$ — an AP with $a = 6$, $d = 6$, $n = 40$.
- $S_{40} = \dfrac{40}{2}[2 \times 6 + 39 \times 6]$.
- $= 20[12 + 234] = 20 \times 246$.
- $= 4920$.
Answer: The sum is 4920.
In an AP the sum of the first 7 terms is 49 and the sum of the first 17 terms is 289. Find the sum of its first $n$ terms.
Solution- $S_7 = \dfrac{7}{2}[2a + 6d] = 49 \Rightarrow 2a + 6d = 14 \Rightarrow a + 3d = 7$ ... (1)
- $S_{17} = \dfrac{17}{2}[2a + 16d] = 289 \Rightarrow 2a + 16d = 34 \Rightarrow a + 8d = 17$ ... (2)
- Subtract (1) from (2): $5d = 10 \Rightarrow d = 2$; then $a = 1$.
- $S_n = \dfrac{n}{2}[2(1) + (n - 1)2] = \dfrac{n}{2}[2n] = n^2$.
Answer: $S_n = n^2$.
A man repays a loan of ₹3250 by paying ₹20 in the first month and increasing the payment by ₹15 every month. How long will it take to clear the loan?
Solution- Payments form an AP: $a = 20$, $d = 15$; total $S_n = 3250$.
- $\dfrac{n}{2}[2 \times 20 + (n - 1)15] = 3250 \Rightarrow n[40 + 15n - 15] = 6500$.
- $15n^2 + 25n - 6500 = 0 \Rightarrow 3n^2 + 5n - 1300 = 0$.
- $n = \dfrac{-5 + \sqrt{25 + 15600}}{6} = \dfrac{-5 + 125}{6} = 20$ (reject the negative root).
Answer: The loan is cleared in 20 months.