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: .
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
- Arithmetic sequence: each term differs from the previous one by the same d. Formula aₙ = a₁ + (n − 1)·d, sum of the first n terms Sₙ = n·(a₁ + aₙ) ÷ 2. Example 3, 7, 11, 15: d = 4.
- Geometric sequence: each term is r times the previous one. Formula aₙ = a₁·rⁿ⁻¹, sum Sₙ = a₁·(rⁿ − 1) ÷ (r − 1). Example 2, 6, 18, 54: r = 3. If |r| < 1, the infinite series approaches a₁ ÷ (1 − r).
- Fibonacci-type sequence: each term is the sum of the previous two, such as 1, 1, 2, 3, 5, 8.
- Quadratic sequence: the differences between terms form an arithmetic sequence, so the second difference is constant. Example 1, 4, 9, 16 with aₙ = n².
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
- Wikipedia – Arithmetic progression (formula and sum)
- Wikipedia – Geometric progression (formula, sum and infinite series)
As of: · Editorial policy
Related tools
- Exponent calculator with stepsCalculate powers, nth roots and logarithms with any base – step-by-step, with negative and fractional exponents, ln, log and scientific notation.
- Compound interest calculatorCompound interest calculator with monthly contributions: final balance, interest earned, inflation-adjusted value, time to reach a goal, chart and yearly table.
- Average CalculatorAverage calculator: mean, median, mode and weighted average of your numbers with working and frequency table – plus the value needed for a target average.
- Prime Factorization CalculatorPrime factorization calculator with steps: factor any number up to one trillion into primes, see the factor tree, test for primality and count divisors.
- Online CalculatorCalculator online, free and instant: type or tap and see the answer as you go – order of operations, brackets, percent, square root, steps and a history list.
- Spearman Rank Correlation CalculatorSpearman rank correlation calculator for two data lists: ranks, tied values with average ranks, Σd², the coefficient ρ and the full working shown step by step.
- Normal Force CalculatorNormal force calculator from mass, slope angle and gravity, optionally with extra force and friction: normal force, force down the slope, friction.
- Dependency ratio calculatorDependency ratio calculator: young and older people per 100 people of working age – total, youth and old-age dependency ratio with formulas and examples.
- Henderson Hasselbalch calculator: buffer pH and mixing ratioHenderson Hasselbalch calculator for buffer pH: pKa plus log of base over acid, or the base-to-acid ratio for a target pH, with Ka values of common acids.