Sequence Calculator

Inputs

At least three numbers, separated by commas or spaces (four for Fibonacci-like and quadratic).

Results

Type
—
Rule
—
Term {n}
—
Sum of the first {n} terms
—
Next terms
—

Many sequences follow a simple rule: add the same number each time, multiply by the same number, add the two previous terms, or have differences that grow steadily. Give the first terms and this calculator finds which rule fits, writes it as a formula and works out any term or sum without listing them all.

How to use it

  1. Type the first terms, for example 2, 5, 8.
  2. Choose n, the term you want.
  3. Read the rule, the nth term, the sum and the next numbers.

Examples: 2, 5, 8 is arithmetic (add 3): the 10th term is 29 and the first 10 add up to 155. 3, 6, 12 is geometric (×2): the 10th term is 1,536, the sum 3,069. 1, 1, 2, 3 is Fibonacci: the 10th term is 55, the sum 143. 1, 4, 9, 16 is quadratic (n²): the 10th term is 100, the sum 385.

Questions and answers

What's the formula for an arithmetic sequence?

aₙ = a₁ + (n − 1) × d, where d is the common difference. The sum of the first n terms is n × (a₁ + aₙ) ÷ 2.

When does a geometric series have a finite total?

When the ratio is between −1 and 1. Then the terms shrink and the sum of all of them is a₁ ÷ (1 − r): 1 + 0.5 + 0.25 + … = 2.

Why does it say no pattern fits?

The terms aren’t arithmetic, geometric, Fibonacci-like or quadratic. Check for a typo, or add more terms: three numbers can fit several rules, and the calculator tries the simplest first.

Link with pre-filled values

Add # and these parameters to the end of this page's address to open the tool with values already filled in.

ParameterWhat it sets
termsThe first terms, comma-separated.
nWhich term to compute (1–10,000).

Example: https://toolabelle.com/sequence-calculator/#terms=3%2C6%2C12&n=20

Related tools