Sequences: nth Term and Sums
After reading this you can find the nth term and the running total of arithmetic and geometric sequences, decide when an infinite geometric series has a finite sum, and compute exact Fibonacci numbers of any size.
A sequence is an ordered list of numbers built by a fixed rule. Two rules cover most of school and early college algebra. In an arithmetic sequence you add the same amount each step. In a geometric sequence you multiply by the same factor each step. The Fibonacci sequence is a third famous rule where each term is the sum of the two before it.
Here is a quick hook. Start at 1 and multiply by 0.5 each step: 1, 0.5, 0.25, 0.125, .... Add all of it forever and you do not get infinity. The total is exactly 2. That single fact, a never-ending sum that lands on a finite number, is the most surprising thing on this page, and the formulas below tell you exactly when it happens.
What each mode computes
The calculator handles three rules. Each one has a formula for the term in position n (the "nth term") and, where it makes sense, a formula for the sum of the first n terms (the "partial sum").
- Arithmetic sequence
- Fixed difference d added each step. Example with a_1 = 2, d = 3:
2, 5, 8, 11, 14, ... - Geometric sequence
- Fixed ratio r multiplied each step. Example with a_1 = 1, r = 0.5:
1, 0.5, 0.25, 0.125, ... - Fibonacci numbers
- Start with
0, 1and add the last two:0, 1, 1, 2, 3, 5, 8, 13, ...
When to use it, and when not
Reach for a sequence formula when the change from one item to the next is regular. Fixed monthly deposits form an arithmetic sequence. A balance that grows by a fixed percentage each year forms a geometric sequence. A population that grows by adding the two prior counts is Fibonacci-like.
Do not force these formulas onto data that does not fit. Prices that jump up and down with no fixed step are neither arithmetic nor geometric. If your rule involves powers of n or roots, this is not the tool: try the Exponent & Logarithm Calculator for exponential equations, or the Polynomial Toolkit for polynomial patterns.
Check the rule with three terms before trusting a formula. If differences are constant it is arithmetic. If ratios are constant it is geometric. For 3, 6, 12, 24 the ratios are all 2, so it is geometric with r = 2.
The formulas and the intuition
For an arithmetic sequence, the nth term starts at a_1 and adds d a total of n-1 times:
Here a_1 is the first term, d is the common difference, and n is the position. The partial sum pairs the first and last terms, which is Gauss's trick:
Each pair of terms from opposite ends adds to the same value a_1 + a_n, and there are n/2 such pairs.
For a geometric sequence, the nth term multiplies a_1 by r a total of n-1 times:
The partial sum has a closed form as long as r \ne 1:
When \lvert r \rvert \lt 1, the term r^{\,n} shrinks toward 0 as n grows, so the sum settles on a finite limit:
If \lvert r \rvert \ge 1 the terms do not shrink and the infinite sum has no finite value. Fibonacci uses no ratio or difference at all; each term is defined by F_n = F_{n-1} + F_{n-2} with F_0 = 0 and F_1 = 1.
Worked example: the demo data
Geometric sequence with a₁ = 1, r = 0.5, n = 10
This reproduces the demo button. The sequence is 1, 0.5, 0.25, 0.125, ...
- The 10th term: a_{10} = 1 \cdot 0.5^{\,9} = 0.001953125, which is
1/512. - The partial sum of 10 terms: S_{10} = 1 \cdot \frac{1 - 0.5^{10}}{1 - 0.5} = \frac{1 - 0.0009766}{0.5} = 1.998047.
- Since \lvert 0.5 \rvert \lt 1, the infinite sum exists: S_\infty = \frac{1}{1 - 0.5} = 2.
Notice that 1.998047 is already within 0.002 of the limit 2. Each extra term halves the gap. After 20 terms the gap is under 0.000001.
Reading and interpreting the results
The calculator returns two numbers for arithmetic and geometric modes: the nth term a_n and the partial sum S_n. The nth term answers "what is the value in position n". The partial sum answers "what do the first n values add up to".
Watch the sign of d and the size of r to predict behavior before you read the output. With d \gt 0 the terms rise without bound. With -1 \lt r \lt 0 the terms alternate sign and shrink: for r = -0.5 and a_1 = 1 you get 1, -0.5, 0.25, -0.125, ... and the infinite sum is 1/(1-(-0.5)) = 0.6667.
For Fibonacci mode the result is the single exact integer F_n. It stays exact even for large n: for example F_{100} = 354{,}224{,}848{,}179{,}261{,}915{,}075, a 21-digit number that ordinary floating point would round.
Common mistakes
The exponent in the nth term is n-1, not n. Writing a_1 r^{\,n} shifts every value one position and gives the wrong term. For a_1 = 1, r = 0.5, n = 10, the correct value is 0.5^{9} = 0.001953, not 0.5^{10} = 0.0009766.
Three more traps show up often:
- Using the infinite-sum formula when \lvert r \rvert \ge 1. For r = 2 the formula a_1/(1-r) returns a finite negative number, but the true sum grows without limit. The formula only applies when \lvert r \rvert \lt 1.
- Off-by-one on indexing. Some texts start Fibonacci at F_1 = 1, others at F_0 = 0. This tool uses F_0 = 0, F_1 = 1, so F_7 = 13.
- Confusing difference and ratio. A sequence like
2, 4, 8has ratio2, not difference2. Test both: constant difference means arithmetic, constant ratio means geometric.
2, 5, 8, ... lie on a straight line because the step is constant at 3.Related tools
Sequences connect to several other pages here. To solve for an unknown position or an unknown ratio you often set up an equation, and the Equation Solver handles those. If a sequence problem leads to a quadratic (common when a partial sum is given), use the Quadratic solver. For simplifying an exact term like a_1 r^{\,n-1} that contains a root, the Radical Simplifier is the right stop. Sums that split into simpler fractions before telescoping are the job of Partial Fraction Decomposition.
Frequently asked questions
How do I know if a geometric series has a finite sum?
Compare the ratio to 1 in absolute value. If \lvert r \rvert \lt 1 the sum converges to a_1/(1-r). For a_1 = 1, r = 0.5 that is 2. If \lvert r \rvert \ge 1 there is no finite sum.
What is the difference between the nth term and the partial sum?
The nth term is a single value, the number in position n. The partial sum adds up positions 1 through n. For 2, 5, 8 the 3rd term is 8, but the partial sum of the first 3 terms is 2 + 5 + 8 = 15.
Which Fibonacci indexing does this use?
It uses F_0 = 0 and F_1 = 1. So F_2 = 1, F_7 = 13, and F_{10} = 55. If your textbook starts at F_1 = 1, shift the index by one.
Can the common difference or ratio be negative?
Yes. A negative difference makes an arithmetic sequence decrease: a_1 = 10, d = -3 gives 10, 7, 4, 1, .... A negative ratio makes a geometric sequence alternate sign: r = -0.5 gives 1, -0.5, 0.25, ...
Why does Fibonacci stay exact for large n?
Fibonacci numbers are integers, and the calculator adds them as whole numbers rather than approximating. That is why F_{100} shows all 21 digits without rounding error.