📐 Math CalculatorsFree · No signup

Number Sequence Calculator

Identify arithmetic or geometric sequences, find the common difference or ratio, calculate the sum, and predict next terms. Solves any number pattern.

Arithmetic Sequence

d = 3

a(n) = 2 + (n-1) × 3

Next 5 Terms

17, 20, 23, 26, 29

Sum of Input Terms

40

About the Number Sequence Calculator

A number sequence calculator identifies whether a series of numbers follows an arithmetic or geometric pattern, calculates the defining parameter (common difference or common ratio), generates additional terms in the sequence, and computes the sum — providing a complete analysis of any regular numerical pattern. Number sequences are fundamental in mathematics: arithmetic sequences appear in evenly spaced measurements, interest calculations, and actuarial tables; geometric sequences describe exponential growth, compound interest, population models, and many natural phenomena. Recognizing the sequence type and applying the correct formula is essential for algebra, pre-calculus, financial mathematics, and computer science. Enter any series of numbers separated by commas — the calculator detects the pattern type, identifies d (arithmetic) or r (geometric), derives the nth term formula, and predicts additional terms. If neither arithmetic nor geometric pattern is detected, the calculator reports this along with the sum of the provided terms. This tool is widely used by students at the secondary and university level, teachers preparing lesson materials, and anyone working with regular numerical patterns in data analysis or mathematical modeling.

Formula

Arithmetic: a(n) = a₁ + (n-1)d | Geometric: a(n) = a₁ × r^(n-1) | Arithmetic sum: n/2 × (a₁ + aₙ)

How It Works

Arithmetic sequence detection: check if all consecutive differences are equal: d = a₂-a₁ = a₃-a₂ = ... If yes: arithmetic. Formula: a(n) = a₁ + (n-1)×d. Sum of n terms: Sn = n/2 × (a₁ + aₙ) = n/2 × (2a₁ + (n-1)d). Example: 3, 7, 11, 15. Differences: 4, 4, 4. Arithmetic with d = 4. a(n) = 3 + (n-1)×4. Next terms: 19, 23, 27, 31, 35. Sum = 4/2 × (3+15) = 36. Geometric sequence detection: check if all consecutive ratios are equal: r = a₂/a₁ = a₃/a₂ = ... If yes: geometric. Formula: a(n) = a₁ × r^(n-1). Sum: Sn = a₁ × (r^n - 1) / (r - 1). Example: 2, 6, 18, 54. Ratios: 3, 3, 3. Geometric with r = 3. a(n) = 2 × 3^(n-1). Next terms: 162, 486, 1458.

Tips & Best Practices

  • For decimal ratios/differences, enter at least 4-5 terms for reliable pattern detection — floating point precision can cause tiny discrepancies with only 2-3 terms. The calculator uses a tolerance of 1×10⁻⁹ for pattern matching.
  • Fibonacci and other sequences: the calculator identifies arithmetic and geometric patterns. Fibonacci (1, 1, 2, 3, 5, 8, 13...), quadratic sequences (1, 4, 9, 16, 25...), and other patterns will return "no standard pattern detected" — these require specialized analysis beyond basic arithmetic/geometric classification.
  • The sum formula for arithmetic sequences has a famous origin: the young Gauss reportedly found the sum of 1 to 100 instantly by pairing terms: (1+100) + (2+99) + ... = 50 × 101 = 5,050. This is the same as n/2 × (a₁ + aₙ) = 100/2 × (1+100) = 5,050.

Who Uses This Calculator

Students identifying sequence types and finding formulas for high school algebra and pre-calculus homework. Teachers generating additional terms and verifying student work on sequence problems. Financial analysts working with regular payment streams or growth rates that follow arithmetic or geometric progressions. Programmers generating regular number sequences for algorithm design and testing.

Optimised for: USA · UK · Canada · Australia · Calculations run in your browser · No data stored

Frequently Asked Questions

What is an arithmetic sequence?

An arithmetic sequence has a constant difference between consecutive terms. Formula: a(n) = a₁ + (n-1)d, where d is the common difference. Example: 3, 7, 11, 15, 19... (d = 4). Sum of n terms: n/2 × (a₁ + aₙ).

What is a geometric sequence?

A geometric sequence has a constant ratio between consecutive terms. Formula: a(n) = a₁ × r^(n-1), where r is the common ratio. Example: 2, 6, 18, 54, 162... (r = 3). Sum of n terms: a₁ × (r^n − 1) / (r − 1).

How do I find the pattern in a sequence?

Check for arithmetic: subtract consecutive terms — if constant, arithmetic. Check for geometric: divide consecutive terms — if constant, geometric. If neither, try second differences (quadratic), ratios of differences, or Fibonacci-type patterns.