Number Sequence Calculator

Arithmetic: aₙ = a₁ + (n − 1)d. Geometric: aₙ = a₁ × rⁿ⁻¹. The arithmetic sequence 2, 5, 8, … has a₁₀ = 2 + 9 × 3 = 29 and a sum of 155 for 10 terms. The geometric sequence 3, 6, 12, … has a₅ = 48 and a sum of 93 for 5 terms.

Inputs

Result
–

Results are calculated in your browser for convenience. Double-check important figures before relying on them.

Arithmetic sequences

aₙ = a₁ + (n − 1) × d Sum of n terms = n × (a₁ + aₙ) ÷ 2

An arithmetic sequence changes by the same amount each step: 2, 5, 8, 11, 14, … has d = 3. The tenth term is 2 + 9 × 3 = 29, and the sum of the first ten is 10 × (2 + 29) ÷ 2 = 155. The story of Gauss adding 1 to 100 quickly is this formula: 100 × 101 ÷ 2 = 5,050.

Geometric sequences

aₙ = a₁ × rⁿ⁻¹ Sum of n terms = a₁ × (rⁿ − 1) ÷ (r − 1) Sum to infinity = a₁ ÷ (1 − r), when |r| < 1

A geometric sequence multiplies by the same ratio: 3, 6, 12, 24, 48 has r = 2. The fifth term is 3 × 2⁴ = 48 and the sum of five terms is 3 × (32 − 1) ÷ 1 = 93. If |r| < 1 the terms shrink and the infinite sum converges: 1 + ½ + ¼ + … = 2. Compound interest and population growth are geometric.

Fibonacci-type sequences

Each term is the sum of the two before it: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, … The tenth term is 55. Enter any two starting terms to get a related sequence (for example 2, 1, 3, 4, 7 for Lucas numbers). The ratio of consecutive terms approaches the golden ratio, about 1.618. Fibonacci numbers appear in spirals, plant growth and algorithms.

See also the exponent calculator, the compound interest calculator and the scientific calculator.

Complete guide to the Number Sequence Calculator

How to use the Number Sequence Calculator, step by step

  1. Choose the type of sequence.
  2. Enter the first term and the difference, ratio or second term.
  3. Enter n.
  4. Read the nth term and the sum.

Common mistakes to avoid

  • Using n instead of n − 1.
  • Using the infinite sum when |r| is 1 or more.
  • Confusing difference and ratio.

Key terms explained

Term
One number in the sequence.
Common difference
The constant added each step.
Common ratio
The constant multiplier.
Series
The sum of the terms.

Frequently asked questions

How do I find the nth term of an arithmetic sequence?

Use aₙ = a₁ + (n − 1)d. For 2, 5, 8, … the 20th term is 2 + 19 × 3 = 59.

How do I know whether a sequence is arithmetic or geometric?

Check the differences between terms (constant for arithmetic) and the ratios between terms (constant for geometric).

What is the sum of the first n whole numbers?

n(n + 1) ÷ 2. For n = 100 it is 5,050. This is the arithmetic sum formula with a₁ = 1 and d = 1.

When does an infinite geometric series have a sum?

When the absolute value of the ratio is below 1. Then the sum is the first term divided by (1 − r).

What is the Fibonacci sequence?

It starts 0, 1 (or 1, 1) and each next number is the sum of the previous two: 1, 1, 2, 3, 5, 8, 13, 21, …

What does the common ratio mean?

It is the constant factor between consecutive terms of a geometric sequence. In 3, 6, 12 the ratio is 2.

Can the difference or ratio be negative?

Yes. A negative difference gives a decreasing arithmetic sequence, and a negative ratio makes a geometric sequence alternate in sign.

Related calculators

Guides worth reading