Number Sequence Calculator

Identify and compute arithmetic, geometric, Fibonacci, triangular, and other number sequences. Find the nth term, sum, and pattern analysis for common sequences.

Number Sequence Calculator

Compute the nth term directly
Term a(100)
299.000000
a₁ + (n-1)d = 2 + 99×3
Sum of 15 Terms
345.0000
n/2 × (2a₁ + (n-1)d)
First Term
2.000000
a₁
Last Term Shown
44.000000
a(15)
First Difference
3.000000
a₂ - a₁
First Ratio
2.500000
a₂ / a₁

Sequence Terms

naₙCumulative SumRelative Size
12.0000002.0000
25.0000007.0000
38.00000015.0000
411.00000026.0000
514.00000040.0000
617.00000057.0000
720.00000077.0000
823.000000100.0000
926.000000126.0000
1029.000000155.0000
1132.000000187.0000
1235.000000222.0000
1338.000000260.0000
1441.000000301.0000
1544.000000345.0000

Sequence Reference

Typenth termSum formula
Arithmetica₁ + (n-1)dn/2 × (a₁ + aₙ)
Geometrica₁ × r^(n-1)a₁(1-rⁿ)/(1-r)
FibonacciBinet formulaF(n+2) - 1
Triangularn(n+1)/2n(n+1)(n+2)/6
Squaren(n+1)(2n+1)/6
Powers of 22^(n-1)2ⁿ - 1
Harmonic1/n≈ ln(n) + γ
Planning notes, formulas, and examples

About the Number Sequence Calculator

The Number Sequence Calculator generates terms, finds the nth term, and computes partial sums for common mathematical sequences. It supports arithmetic sequences, geometric sequences, Fibonacci-type recurrences, triangular numbers, square numbers, prime numbers, and other familiar patterns. It is a quick way to tell whether a sequence is linear, exponential, or recursive before you write the formula yourself. That makes it easier to spot the pattern behind a table of values. It is also a quick check before you commit a guessed rule to code or homework.

Sequences appear throughout mathematics, programming, and modeling. Arithmetic sequences describe steady step-by-step change, geometric sequences describe exponential growth or decay, and recursive sequences show how each term depends on what came before.

Choose a sequence type, enter the starting values or parameters, and the calculator will return the terms, direct formula, and cumulative sum behavior in one place. That makes it useful both for homework checks and for quickly testing pattern logic in code.

When This Page Helps

It saves time when you need to identify a pattern, verify an nth-term formula, or compare how different sequences grow. That is useful in coursework, coding problems, and quick exploratory math, including checks against common patterns you might look up in OEIS or derive from difference tables. It also helps when you want the first few terms and the closed form side by side.

How to Use the Inputs

  1. Select the sequence type: arithmetic, geometric, Fibonacci, etc.
  2. Enter the starting value(s) and common difference or ratio.
  3. Enter how many terms to generate.
  4. Enter a specific term number (n) to find that term directly.
  5. View the sequence terms, nth term, and cumulative sum.
  6. Use presets for famous sequences (Fibonacci, powers of 2, triangular).
  7. Compare formulas in the reference table.
Formula used
Arithmetic: aₙ = a₁ + (n-1)d, Sum = n/2 × (a₁ + aₙ). Geometric: aₙ = a₁ × r^(n-1), Sum = a₁(1-rⁿ)/(1-r). Fibonacci: Fₙ = Fₙ₋₁ + Fₙ₋₂. Triangular: Tₙ = n(n+1)/2. Square: Sₙ = n².

Example Calculation

Result: Terms: 3, 6, 12, 24, 48, 96, 192, 384, 768, 1536. Sum = 3,069

Geometric sequence with a₁ = 3, r = 2: each term is double the previous. The 10th term = 3 × 2⁹ = 1,536. Sum = 3 × (2¹⁰ - 1) / (2 - 1) = 3 × 1,023 = 3,069.

Tips & Best Practices

  • For very large n in geometric sequences, use logarithms to avoid overflow: log(aₙ) = log(a₁) + (n-1)log(r).
  • The sum of the first n odd numbers is always n² — a beautiful identity.
  • Any polynomial sequence of degree d has constant dth differences (e.g., squares have constant 2nd differences = 2).
  • The Fibonacci sequence modulo m is always periodic (Pisano period) — useful in modular arithmetic.
  • Partial sums of 1/n (harmonic series) grow as ln(n) — very slowly but without bound.
  • Real-world sequences (population, stock prices) often combine arithmetic and geometric patterns.

Sequence Types and Applications

Arithmetic sequences model any uniformly increasing or decreasing pattern: equal monthly payments, clock ticks, temperature scales, and linear depreciation. Their simplicity makes them the first sequences students learn, but they appear frequently in real-world modeling.

Geometric sequences model exponential growth and decay: compound interest, population growth, radioactive decay, and signal attenuation. The ability of geometric sums to converge (when |r| < 1) makes them fundamental to finance (present value calculations), digital signal processing (z-transforms), and probability theory.

The Fibonacci Sequence and Golden Ratio

The Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...) is arguably the most famous sequence in mathematics. The ratio of consecutive terms converges to φ = (1+√5)/2 ≈ 1.618, the golden ratio. This appears in art (golden rectangle), architecture (Parthenon proportions), nature (spiral shells, flower petals, pinecone scales), and algorithm analysis.

Fibonacci-type sequences (where aₙ = aₙ₋₁ + aₙ₋₂ with any starting values) all converge to the same ratio φ, regardless of starting values. This universality is why the golden ratio appears so ubiquitously.

Computational Considerations

For large n, direct computation of sequence terms can overflow standard number types. Techniques include: modular arithmetic (compute aₙ mod m without computing aₙ), matrix exponentiation (compute Fibonacci numbers in O(log n) time), and closed-form expressions (Binet's formula for Fibonacci, though it loses precision for large n due to floating-point issues).

Sources & Methodology

Last updated:

Frequently Asked Questions

  • A sequence where each term differs from the previous by a constant amount d (common difference). Example: 2, 5, 8, 11, 14... (d=3). The nth term is aₙ = a₁ + (n-1)d. The sum of n terms is n/2 × (first + last).