Skip to content
K Knidox Search…
Math · Algebra

Sequences

Find the nth term and the sum of an arithmetic or geometric sequence.

Sequence type
Added each step.
A whole number ≥ 1.
Examples — tap to load
nth term (a₅)
14

aₙ = a₁ + (n−1)d

Sum of first 5 terms (S₅)
40

Sₙ = n(a₁ + aₙ) / 2

First terms

For an arithmetic sequence the nth term is aₙ = a₁ + (n−1)d and the sum is Sₙ = n(a₁ + aₙ)/2. With a₁ = 2 and d = 3, the 5th term is a₅ = 2 + 4·3 = 14, and the sum of the first five terms is S₅ = 5(2 + 14)/2 = 40.

Arithmetic and geometric sequences

A sequence is an ordered list of numbers. In an arithmetic sequence you add a fixed amount — the common difference d — to get from one term to the next: 2, 5, 8, 11, … In a geometric sequence you multiply by a fixed factor — the common ratio r — instead: 2, 6, 18, 54, … This tool finds the nth term aₙ and the sum of the first n terms Sₙ for either kind.

aₙ = a₁ + (n−1)d · · · aₙ = a₁·rⁿ⁻¹

nth term — arithmetic (left) and geometric (right)

Worked example

Take the arithmetic sequence with a₁ = 2 and d = 3, and find the 5th term and the sum of the first five terms.

  1. 1
    Identify the first term and the step. Here a₁ = 2 and the common difference d = 3 (each term is 3 more than the last).
  2. 2
    Apply the nth-term formula. aₙ = a₁ + (n−1)d, so a₅ = 2 + (5−1)·3 = 2 + 12 = 14.
  3. 3
    Apply the sum formula. Sₙ = n(a₁ + aₙ)/2, so S₅ = 5·(2 + 14)/2 = 5·16/2 = 40.
  4. 4
    For geometric, swap in the ratio. Use aₙ = a₁·rⁿ⁻¹ and Sₙ = a₁(rⁿ − 1)/(r − 1); for a₁ = 2, r = 3, n = 4 this gives a₄ = 54 and S₄ = 80.

Arithmetic vs geometric formulas

d is the common difference; r is the common ratio (r ≠ 1 in the geometric sum).

ArithmeticGeometric
Next term from previousadd dmultiply by r
nth term aₙa₁ + (n−1)da₁·rⁿ⁻¹
Sum Sₙn(a₁ + aₙ)/2a₁(rⁿ − 1)/(r − 1)
Example2, 5, 8, 11, …2, 6, 18, 54, …

Difference vs ratio, and infinite sums

The common difference measures additive growth — every term sits a constant distance from its neighbour, so the terms trace a straight line. The common ratio measures multiplicative growth — each term is a constant multiple of the last, so the terms grow (or shrink) exponentially.

A geometric series can even be summed to infinity. When |r| < 1 the terms shrink toward zero fast enough that the total converges to S = a₁/(1 − r). For example, 1 + ½ + ¼ + ⅛ + … = 1/(1 − ½) = 2. When |r| ≥ 1 the terms do not shrink and the infinite sum diverges.

What is the difference between an arithmetic and a geometric sequence?
An arithmetic sequence adds a fixed common difference d between terms (2, 5, 8, …), while a geometric sequence multiplies by a fixed common ratio r (2, 6, 18, …). One grows linearly, the other exponentially.
What does the nth term mean?
The nth term aₙ is the value at position n in the sequence. It lets you jump straight to any term without listing all the ones before it — for example the 5th term of 2, 5, 8, … is a₅ = 2 + 4·3 = 14.
How do I find the sum of the first n terms?
For an arithmetic sequence use Sₙ = n(a₁ + aₙ)/2; for a geometric one use Sₙ = a₁(rⁿ − 1)/(r − 1). With a₁ = 2, d = 3, n = 5 the arithmetic sum is S₅ = 5(2 + 14)/2 = 40.
Can a geometric series have an infinite sum?
Yes, when |r| &lt; 1 the terms shrink toward zero and the infinite sum converges to S = a₁/(1 − r). For instance 1 + ½ + ¼ + … = 1/(1 − ½) = 2. If |r| ≥ 1 the series diverges.
What happens to the geometric sum formula when r = 1?
The formula a₁(rⁿ − 1)/(r − 1) divides by zero when r = 1. But if r = 1 every term equals a₁, so the sum is simply Sₙ = a₁·n. The tool handles this case automatically.
How do I tell which type of sequence I have?
Check the gaps between consecutive terms. If you keep adding the same number it is arithmetic; if you keep multiplying by the same number it is geometric.