Sequence Calculator

This sequence calculator finds the rule behind a list of numbers, continues it and gives the formula for the nth term. It also adds up the first n terms – or builds an arithmetic or geometric sequence from a first term and a step.

Source: Wikipedia – Arithmetic progression (formula and sum). Updated: .

Separate numbers with commas, spaces or line breaks. At least 3 numbers.
for the nth term and the sum of the first n terms (1 to 200)
My ToolboxYour inputs are saved in this browser only.

Result

Type of sequence
Arithmetic sequence with common difference d = 4
Formula
aₙ = 3 + (n − 1) · 4 = 4n − 1
The next 5 terms
23, 27, 31, 35, 39
nth term
a10 = 39
Sum of the first n terms
S10 = 210
Terms and sums
nTerm aₙSum Sₙ
133
2710
31121
41536
51955
62378
727105
831136
935171
1039210
A rule inferred from a few terms is only a suggestion: infinitely many formulas fit any finite list. The calculator reports the simplest rule it recognizes.

How it is calculated

A sequence is an ordered list of numbers a₁, a₂, a₃ … that follows a fixed rule. The calculator checks whether the terms have a constant difference, a constant ratio, the Fibonacci rule or a constant second difference.

The four sequences it recognizes

Where this is used

Arithmetic sequences appear in steady instalment plans, geometric ones in growth and interest – see the compound interest calculator and the exponent calculator. For the mean of a list of values, use the average calculator.

Frequently asked questions

How do I find the rule of a sequence?

Take the differences of neighbouring terms. If they are all equal, the sequence is arithmetic. If the ratios of neighbouring terms are equal, it is geometric. If only the differences of the differences are equal, it is quadratic.

How do I find the nth term?

For an arithmetic sequence aₙ = a₁ + (n − 1)·d, for a geometric one aₙ = a₁·rⁿ⁻¹. For 3, 7, 11 with d = 4 the tenth term is 3 + 9·4 = 39.

How do I sum the first n terms?

Arithmetic: Sₙ = n·(a₁ + aₙ) ÷ 2, the classic Gauss formula. Geometric: Sₙ = a₁·(rⁿ − 1) ÷ (r − 1). For 3, 7, 11 … the first ten terms add up to 210.

What is the Fibonacci sequence?

A sequence in which every term is the sum of the previous two: 1, 1, 2, 3, 5, 8, 13 … The ratio of neighbouring terms approaches the golden ratio of about 1.618.

Why does the calculator sometimes find no rule?

Only the four sequence types above are checked. Others, such as the primes, follow different rules. With more terms the detection becomes more reliable.

Sources and legal basis

As of: · Editorial policy

Related tools