Sum of first n terms of an AP
Adding up the first terms of an arithmetic progression one by one works fine when is small, but it becomes painfully slow the moment runs into the hundreds or thousands. Karl Friedrich Gauss, as a schoolboy, is said to have spotted a shortcut for exactly this problem: pair the first and last term, the second and second-last, and so on — every pair adds up to the same total. That single trick is the seed of the sum formula for an AP, , which turns a long addition into one substitution. This article builds on the th-term formula from the CBSE Class 10 chapter Arithmetic Progressions. You already know how to find a single term ; here you learn to add up a whole run of them at once, in two equivalent forms, and to move fluently between a sum and an individual term .
The sum of the first terms of an AP is times the average of its first and last term, , which expands to when only and are known.
The core idea
An arithmetic progression (AP) is a list of numbers in which each term differs from the one before it by a fixed amount, the common difference . Denote the first term , and let stand for the sum of its first terms — not any single term, but the running total. For any AP with first term and common difference , the sum of the first terms is
where: is the first term, is the common difference, is the number of terms being added, and is their sum. The bracketed quantity is exactly twice the average of the first and last term — the formula in disguise. If the last term (sometimes written ) is already known, a shorter equivalent form avoids recomputing altogether:
where: is the first term and is the th (last) term being summed. This second form reads simply as "number of terms times the average of the first and last term," and it is the more convenient choice whenever a problem hands you the last term directly. The two forms are not independent facts to memorise separately — the second collapses into the first the instant you substitute . Reach for when you know , and but not the last term; reach for when the last term is already sitting in front of you. A companion idea, tested just as often, links a sum back to a single term. Since is the running total through the th term while stops one term earlier, their difference isolates that one term:
where: is the sum of the first terms and is the sum of the first terms, so their difference is whatever got added last, namely . This relation is useful even when the AP's rule is not given explicitly, as long as a formula for in terms of is known. The picture below shows why pairing works: stack the terms as bars of increasing height and lay a second, upside-down copy of the same staircase against it — together they tile a rectangle of constant height and width , so twice the sum is that rectangle's area.
The goal is to derive from nothing more than writing the sum twice — once forwards and once backwards — and adding the two copies term by term, the same pairing trick young Gauss is said to have used on .
Step 1. Write as the sum of the first terms in the usual forward order: , where the last term is .
Step 2. Write the very same sum again, but list the terms in reverse order, from last to first: . This is legal because addition does not care about order — it is still the same total .
Step 3. Add the two equations together, position by position. The first terms of each give ; the second terms give as well, since the and cancel; every subsequent pair collapses the same way, because whatever is added on one side is subtracted on the other. So every one of the columns contributes exactly , and adding the two copies of gives .
Step 4. Divide both sides by : . Finally substitute to reach the form used when the last term is not yet known: , which is the formula stated above.
Worked example
Question. Find the sum of the first 20 terms of the AP , and then use that sum together with to recover the 20th term directly.
Step 1. Identify and . Here and . We want , so .
Step 2. Apply : . So the sum of the first 20 terms is .
Step 3. Cross-check with the other form. The 20th term is , so — the same answer, confirming both forms agree.
Step 4. Recover from two sums, without ever using the th-term formula. Compute . Then , exactly matching Step 3 and illustrating in action.
Competitive stretch
A problem may instead give you the sum and ask for . For the AP (here , ), asking how many terms give leads to , which simplifies to . Factoring gives , so or the rejected negative root . Check: . ✓
Common traps
- Mixing up and . The first form uses (first term) inside ; the second form uses (last term) directly. Do not plug the last term into the slot meant for the first term.
- Forgetting the factor. Computing correctly and then forgetting to multiply by is one of the most common arithmetic slips.
- Keeping the wrong root of the quadratic. When solving for from a given , always discard negative or non-integer roots, because counts terms and must be a positive whole number.
- Confusing with . is a cumulative total; is a single term. Using a sum formula where a term formula is needed (or the reverse) leads to the wrong equation entirely.
Ask the tutor: If a quadratic pops out while solving for and you are unsure which root to keep, ask the AI tutor to walk through the factoring and the reasoning for rejecting the invalid root.
Why does the pairing trick add the forward and reverse listing instead of just adding the terms directly?
Adding the terms directly is exactly what already means, but doing it term by term for a large is slow. The trick is to write the very same total twice, once forwards and once backwards, and add those two copies of together column by column. Every column then produces the same value, , because the steps in one listing exactly cancel the steps in the other. That turns a long, varying addition into one repeated value multiplied by , then halved because two copies of were used.
How do I know which of the two sum formulas to use in a given problem?
Look at what the question already gives you. If you know the first term , the common difference , and the number of terms , but not the last term, use . If the last term (or ) is stated directly, or you can spot it quickly, use instead — it saves a step because you skip finding altogether. Both forms always give the same answer since one follows from the other by substituting .
If I am given Sn as a formula in n, can I find any term of the AP without knowing a and d?
Yes. Since holds for every AP regardless of what and are, you can find any term just by evaluating the given formula at and at and subtracting. This is especially handy when a problem states as an algebraic expression in (for example ) without ever mentioning or explicitly; the first term itself is simply , since there is no to subtract.