Account

What new tool do you want?

Math & Education

Number Sequence Calculator (Arithmetic, Geometric, Fibonacci)

Find the next numbers and the rule of a sequence, or work out the nth term and sum of arithmetic and geometric sequences and exact Fibonacci numbers.

How to use

  1. 1To continue a pattern, choose 'Find the rule' and enter at least 3 terms separated by commas or spaces.
  2. 2For a known sequence, choose arithmetic, geometric or Fibonacci and enter the first term, difference or ratio and n.
  3. 3Read the nth term, the sum, the rule and a table of the first terms.

How it's calculated

Arithmetic: aₙ = a₁ + (n − 1)d, Sₙ = n(2a₁ + (n − 1)d) ÷ 2. Geometric: aₙ = a₁rⁿ⁻¹, Sₙ = a₁(1 − rⁿ) ÷ (1 − r), S∞ = a₁ ÷ (1 − r) when |r| < 1. Fibonacci: F(n) = F(n − 1) + F(n − 2), computed exactly by fast doubling.

Frequently asked questions

What patterns can 'Find the rule' detect?

Constant differences (arithmetic), constant ratios (geometric), each term being the sum of the two before (Fibonacci-like), and constant second or third differences (quadratic and cubic, such as square and cube numbers). It tries the simplest first.

Is the answer always the 'right' next number?

Any finite list can be continued in infinitely many ways, so puzzles sometimes intend a different rule. This gives the simplest rule of these types that fits every term you entered.

When does a geometric series have a sum to infinity?

Only when the ratio is between −1 and 1. Then the terms shrink toward zero and the sum approaches a₁ ÷ (1 − r): 1 + ½ + ¼ + … = 2.

Example: 2, 6, 12, 20, 30

The differences are 4, 6, 8, 10, which go up by 2 each time, so the sequence is quadratic. Solving for aₙ = an² + bn + c through the first three terms gives aₙ = n² + n, so the next terms are 42, 56, 72, 90 and 110. These are the 'pronic' numbers, n × (n + 1).

Arithmetic vs geometric

An arithmetic sequence adds the same amount each time (3, 7, 11, 15…), so it grows in a straight line; a geometric one multiplies by the same ratio (3, 6, 12, 24…), so it grows exponentially. The 10th term of 3, 7, 11… is 3 + 9 × 4 = 39, and the first 10 terms add up to 10 × (3 + 39) ÷ 2 = 210.

Fibonacci numbers, exactly

F(100) is 354,224,848,179,261,915,075: 21 digits, more than ordinary floating-point can hold exactly. The calculator uses whole-number arithmetic with the 'fast doubling' identities, so even F(50,000), with 10,450 digits, is exact.

Related tools

More: Math & Education