AP sum formula — derivation and when to use nth term vs sum formula

medium CBSE JEE-MAIN 3 min read

Question

Find the sum of the first 20 terms of the AP: 3, 7, 11, 15, … Also, if the sum of first nn terms of an AP is Sn=3n2+5nS_n = 3n^2 + 5n, find the 10th term.


Solution — Step by Step

Here a=3a = 3, d=73=4d = 7 - 3 = 4, n=20n = 20.

Sn=n2[2a+(n1)d]=202[2(3)+19(4)]=10[6+76]=10×82=820S_n = \frac{n}{2}[2a + (n-1)d] = \frac{20}{2}[2(3) + 19(4)] = 10[6 + 76] = 10 \times 82 = \mathbf{820}

The nnth term of an AP can be found from the sum formula: an=SnSn1a_n = S_n - S_{n-1}

a10=S10S9=[3(100)+5(10)][3(81)+5(9)]a_{10} = S_{10} - S_9 = [3(100) + 5(10)] - [3(81) + 5(9)] =[300+50][243+45]=350288=62= [300 + 50] - [243 + 45] = 350 - 288 = \mathbf{62}

Why This Works

graph TD
    A["AP Problem: What is asked?"] --> B["Find a specific term?"]
    A --> C["Find the sum of n terms?"]
    A --> D["Given S_n, find a term?"]
    B --> E["Use a_n = a + n-1 d"]
    C --> F["Use S_n = n/2 times 2a + n-1 d"]
    C --> G["Or S_n = n/2 times a + l if last term known"]
    D --> H["Use a_n = S_n - S_{n-1}"]

The sum formula comes from a beautiful trick by Gauss. Write the AP forward and backward:

Sn=a+(a+d)+(a+2d)+...+lS_n = a + (a+d) + (a+2d) + ... + l

Sn=l+(ld)+(l2d)+...+aS_n = l + (l-d) + (l-2d) + ... + a

Add term by term: 2Sn=n(a+l)2S_n = n(a+l), so Sn=n(a+l)2S_n = \frac{n(a+l)}{2}. Substituting l=a+(n1)dl = a + (n-1)d gives the standard formula.

The an=SnSn1a_n = S_n - S_{n-1} trick works because SnS_n is the sum of first nn terms and Sn1S_{n-1} is the sum of first n1n-1 terms. The difference must be the nnth term alone.

In JEE Main, if SnS_n is given as a quadratic in nn (like Sn=3n2+5nS_n = 3n^2 + 5n), the sequence is always an AP. The common difference is twice the coefficient of n2n^2. Here d=2×3=6d = 2 \times 3 = 6. This shortcut saves time.


Alternative Method

When you know the first term aa and last term ll, use the simpler formula: Sn=n2(a+l)S_n = \frac{n}{2}(a + l). This is faster when the last term is directly given or easy to compute.

For the first part: a20=3+19(4)=79a_{20} = 3 + 19(4) = 79. So S20=202(3+79)=10×82=820S_{20} = \frac{20}{2}(3 + 79) = 10 \times 82 = 820. Same answer, less arithmetic.


Common Mistake

Using nn instead of n1n-1 in the nth term formula. The formula is an=a+(n1)da_n = a + (n-1)d, not a+nda + nd. The first term is a1=a+0d=aa_1 = a + 0 \cdot d = a, not a+da + d. This off-by-one error is the most common mistake in AP problems. When in doubt, verify: a1=a+(11)d=aa_1 = a + (1-1)d = a ✓, a2=a+(21)d=a+da_2 = a + (2-1)d = a + d ✓.


nnth term: an=a+(n1)da_n = a + (n-1)d

Sum of nn terms: Sn=n2[2a+(n1)d]=n2(a+l)S_n = \frac{n}{2}[2a + (n-1)d] = \frac{n}{2}(a + l)

nnth term from sum: an=SnSn1a_n = S_n - S_{n-1} (for n2n \geq 2)

If Sn=An2+BnS_n = An^2 + Bn, then d=2Ad = 2A and a=A+Ba = A + B

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next