Sequence & Series Basics

Switch sequence type, control parameters, and track how terms accumulate.

Loading interactive simulation...

Lesson

The theory β€” Sequence & Series Basics

A sequence is the list; a series is what you get by adding the list up. This page shows both at once β€” an is the nth item of the list, Sn is the running total of the first n of them β€” and confusing the two is the most common mistake in this topic.

What each symbol means

d
the common difference of an arithmetic sequence β€” what gets added each step. 2 here, giving 3, 5, 7, 9, …
r
the common ratio of a geometric sequence β€” what it gets multiplied by. Switch mode and r = 1.5 gives 3, 4.5, 6.75, …
Sβ‚™
the sum of the first n terms. For the arithmetic defaults, Sβ‚ˆ = 80 while aβ‚ˆ is only 17.

Where the formula comes from

  1. Write the arithmetic sum forwards and then backwards, one under the other: a₁ + (a₁+d) + β‹― + an above an + (anβˆ’d) + β‹― + a₁.
  2. Add the two rows column by column. Every column gives the same total, a₁ + an, because each step up on one row is matched by a step down on the other β€” and there are n columns.
  3. So twice the sum is n(a₁ + an), giving Sn = (n/2)(a₁ + an). At the defaults, (8/2)(3 + 17) = 80 β€” the formula in the table above, and the trick a young Gauss is said to have used on the numbers 1 to 100.
  4. Now switch the mode selector to geometric: the terms become 3, 4.5, 6.75, … and both formulas in the table change. This sum needs a different trick, because its terms do not pair up β€” each is a multiple of the last, not a fixed step from it. Write the sum out, and underneath it write r times the same sum: Sn = a₁ + a₁r + β‹― + a₁rnβˆ’1 above rΒ·Sn = a₁r + a₁rΒ² + β‹― + a₁rn.
  5. Subtract the second line from the first. Every term in the middle appears in both and cancels, leaving only the ends: Sn βˆ’ rΒ·Sn = a₁ βˆ’ a₁rn. Factor both sides and divide by (1 βˆ’ r): Sn = a₁(1 βˆ’ rn)/(1 βˆ’ r) β€” the expression the table shows in geometric mode, giving 147.773438 at a₁ = 3, r = 1.5, n = 8.
Assumes
A constant difference or a constant ratio, forever. Any real sequence that merely looks arithmetic for a few terms will part company from these formulas immediately.
Breaks when
The arithmetic formula has no failure of this kind: Sn = (n/2)(a₁ + an) divides only by 2, and 2 is never zero. The geometric one divides by (1 βˆ’ r), which is exactly why it catches people. Switch to geometric and set r = 1: the sequence becomes 3, 3, 3, …, and the formula shown changes to Sn = nΒ·a₁, giving 8 Γ— 3 = 24. That is not a patch, it is the correct limit β€” when nothing grows, the sum is just the term repeated.

Adding forever can still land on a whole number 🖖

It sounds like a contradiction that adding endlessly many positive terms could produce a finite total, but a geometric series with |r| < 1 does exactly that, and the sum is a/(1 − r). The most familiar example is hiding in plain sight: 0.999… is the series 0.9 + 0.09 + 0.009 + …, so a = 0.9 and r = 0.1, giving 0.9/(1 − 0.1) = 1. Not approaching 1, not almost 1 β€” the sum is 1, and 0.999… is another way of writing the number one. Zeno’s runner covering half the remaining distance forever is the same series with a = r = 1/2, which totals exactly 1: he does finish the race.

Adding versus multiplying 🖖

Both sequence types start from a first term, but they grow by different rules. An arithmetic sequence adds the same amount each step (like saving $50 every month), while a geometric sequence multiplies by the same factor (like a balance earning 5% interest yearly). The nth-term formula hands you any single value without listing them all, and the partial sum adds up the first n. Watch how one starting value diverges wildly depending on which rule you pick.

The only sequence that is both 🖖

Try to build a sequence that is simultaneously arithmetic and geometric. It turns out only one family works: a constant sequence like 7, 7, 7, …, where the difference is d = 0 and the ratio is r = 1. Any genuine change breaks one rule or the other, because steady adding always curves away from steady multiplying. It is a rare case where two seemingly independent growth laws are forced to collapse into a single, motionless value.

Practice

Check yourself

Predict the answer first, then use the controls above to find out. Reveal only after you have committed to a guess β€” that is what makes it practice.

  1. Press geometric decay, then set the ratio to 0.99, then to 1.01. The eight terms barely differ between the two. Which one has a finite infinite sum β€” and can you tell from the terms on screen?

    Set it up:

    Show answer
    0.99 converges and 1.01 does not, and nothing in the terms or the eight-term sum gives it away: eighth terms of 18.641307 against 21.442707, sums of 154.510611 against 165.713411. Only the infinite-sum row flips, from S∞ = 2000 to Diverges. Convergence is settled by the ratio alone, and no finite stretch of a sequence can reveal it.
  2. Stay at r = 0.99, where the infinite sum is 2000 and eight terms have reached 154.510611. Guess how far along the way that is.

    Set it up:

    Show answer
    About 7.7% β€” under a thirteenth. Compare r = 0.7, where the same eight terms reach 62.823466 of an infinite 66.666667, or 94%. Both series converge. One is essentially finished after eight terms and the other has hardly begun, so convergence promises a destination and says nothing whatever about the speed of arrival.
  3. Press geometric growth and push n to 30. The thirtieth term on its own is 255668.078977. Predict the sum of all thirty.

    Set it up:

    Show answer
    767000.236932 β€” almost exactly three times that single last term, so the twenty-nine terms of history together are worth only twice the newest one. Read the sum backwards to see why: at r = 1.5 each term is two thirds of the one after it, making the total a₃₀·(1 + 2/3 + 4/9 + β‹―) = 3a₃₀, a geometric series in its own right.

Problems solved in full

  1. The 8 terms adding up to 80 without adding 8 numbers 5 steps

    The 8 terms 3, 5, 7, 9, 11, 13, 15, 17 add up to 80. Get there without adding 8 numbers, then work out what happens to the sum when the list is twice as long.

    1. The term formula counts steps, not terms. Getting from a1 to a8 takes 7 steps of 2, not 8, and that off-by-one is the only awkward part of the whole topic.

    2. Pair the list from the outside in. 3 and 17 make 20, and so do 5 and 15, 7 and 13, 9 and 11. They have to: moving one place right adds 2 and moving one place left takes 2 away, so each pair loses exactly what the other gains.

    3. 8 terms make 4 pairs, and every pair is worth 20. Nobody added 8 numbers.

    4. Nothing in that argument used 3 or 2. Any arithmetic list of n terms splits into n/2 pairs each worth a1 + an, and for this list the algebra collapses to n(n + 2).

    5. Test the closed form somewhere it matters. Doubling the list to 16 terms gives 16 Γ— 18 = 288, which is 3.6 times the sum of 8 terms rather than twice it.

    Answer

    The panel prints a8 = 17 and S8 = 80, and the 4 pairs of 20 are the reason. Doubling the length multiplies the sum by 4(n + 1)/(n + 2), which is 3.6 here and creeps toward 4 as the list grows β€” an arithmetic sum is quadratic in the number of terms, because a longer list is also a list of bigger terms. Push the closed form past anything on the page and it stays sharp: n(n + 2) hits 9999 exactly at n = 99, and first clears 10000 at n = 100. This page will not take more than 30 terms, where the sum is only 960, so almost everything this sequence does happens past the last value the input accepts.

  2. Where pairing the ends broke on a sequence that returns 86.588344 6 steps

    Pairing the ends worked on an arithmetic list. Try it on 20, 14, 9.8, 6.86, 4.802, 3.3614, 2.35298, 1.647086 and it returns 86.588344 β€” more than this sequence can reach if you let it run forever. Find the real sum, and find where the pairing broke.

    1. Check the pairs instead of assuming them. The outer pair is 21.647086 and the next one in is 16.35298. Stepping inward multiplies one side by 0.7 and divides the other by 0.7, and a factor gained is not a factor lost β€” that cancellation only works for adding and subtracting.

    2. What does work is a shift. Write the sum out, then write 0.7 times the sum underneath it, lined up one place to the right. Every term in the second row is already sitting in the first.

    3. Subtract the rows and everything in the middle annihilates. Only the two overhanging ends survive: the leading 20 from the top and the trailing 20 Γ— 0.78 from the bottom. Divide by 1 βˆ’ r and you have a closed form for any first term and any ratio.

    4. Substitute. 0.78 = 0.05764801, so the numerator is 20 Γ— 0.94235199 and the divisor is 1 βˆ’ 0.7 = 0.3.

    5. Now let the list run on. Each extra term multiplies rn by 0.7, so it heads to 0 and the numerator settles at 1. The sum has a ceiling, which is the one thing an arithmetic series can never have.

    6. The gap between the 8-term sum and that ceiling is 3.843201, and it is exactly 66.666667 Γ— 0.78. So the fraction of the total still missing after n terms is rn β€” the same number that measures how fast the terms shrink also measures how much is left.

    Answer

    The panel prints a8 = 1.647086, S8 = 62.823466 and a ceiling of S∞ = 66.666667. The missing-fraction result is what to keep, because it turns β€œconverges” from a promise into a schedule: 0.7n ≀ 0.01 needs n β‰₯ 12.9114, so 13 terms puts you within 1% of everything this series will ever be. Move the ratio and the schedule moves violently while the ceiling stays finite β€” at r = 0.9 that same 1% costs 44 terms, at r = 0.99 it costs 459. And the 86.588344 the pairing produced was refutable before any of this: a partial sum of positive terms cannot beat the total of all of them, so a method that says otherwise is wrong on sight.

Learning path

Money over time

Leads to Simple vs compound the closed form for a geometric sum.

References (1)

Example problems