Number Sequence Calculator
Pick a sequence type — arithmetic, geometric, or Fibonacci — and get the nth term, the sum of the first n terms, and the sequence itself. Fibonacci values are computed exactly, even past the usual calculator limits.
Sequence
Three classic sequences
An arithmetic sequence adds the same difference each step (2, 7, 12, 17, …), so its nth term is a₁ + (n − 1)d and its sum is n(a₁ + aₙ) ÷ 2 — the average of the first and last terms times how many there are. A geometric sequence multiplies by the same ratio each step (3, 6, 12, 24, …); it grows or decays exponentially, which is why the same math prices compound interest. The Fibonacci sequence adds the two previous terms (1, 1, 2, 3, 5, 8, …) and its ratio of consecutive terms approaches the golden ratio φ ≈ 1.618.
How it’s calculated
Arithmetic: aₙ = a₁ + (n − 1)d; Sₙ = n(a₁ + aₙ) ÷ 2. Geometric: aₙ = a₁rⁿ⁻¹; Sₙ = a₁(1 − rⁿ) ÷ (1 − r) for r ≠ 1. Fibonacci: F₁ = F₂ = 1, Fₙ = Fₙ₋₁ + Fₙ₋₂, computed with exact integer arithmetic (BigInt); the sum of the first n terms equals Fₙ₊₂ − 1.
Results update as you type and are for education, not professional advice — double-check any number that matters.
Worked example
Arithmetic with a₁ = 2, d = 5, n = 20: the 20th term is 2 + 19 × 5 = 97 and the sum is 20 × (2 + 97) ÷ 2 = 990. Geometric with a₁ = 3, r = 2, n = 10: the 10th term is 3 × 2⁹ = 1,536 and the sum is 3(2¹⁰ − 1) = 3,069. Fibonacci: the 15th term is 610 and the first 15 terms add to F₁₇ − 1 = 1,596.
Common mistakes
- Using n instead of n − 1 in the nth-term formulas — the first term already "uses up" one position.
- Applying the geometric sum formula with r = 1 — the sum is simply n × a₁ in that case.
- Assuming Fibonacci starts at 0 everywhere — conventions differ; this tool uses F₁ = F₂ = 1 and says so.
Where it is used
- Algebra homework on arithmetic and geometric progressions.
- Projecting anything that grows by a fixed amount or fixed percent per period.
- Exploring Fibonacci numbers and the golden ratio.
Frequently asked questions
What is the difference between arithmetic and geometric growth?
Arithmetic adds a fixed amount each step, so the plot is a straight line. Geometric multiplies by a fixed ratio, so it curves — doubling, halving, compounding. The same $100 growing by $10/year is arithmetic; growing 10%/year is geometric.
What happens to a geometric series when |r| < 1?
Terms shrink toward zero and the running sum approaches a₁ ÷ (1 − r). With a₁ = 3 and r = 0.5 the infinite sum is 6 — the calculator shows the finite sum for your n.
How large a Fibonacci number can this compute?
Up to n = 1000 exactly, using arbitrary-precision integers. F₁₀₀ is already 354,224,848,179,261,915,075 — 21 digits — far past ordinary floating-point precision.
Does the Fibonacci sequence here start with 0 or 1?
With 1, 1, 2, 3, … (F₁ = F₂ = 1). Some texts define F₀ = 0 first; that just shifts the index by one, so their F(n) is our term n.
Can the common difference or ratio be negative?
Yes. A negative d makes an arithmetic sequence decrease; a negative r makes a geometric sequence alternate signs (3, −6, 12, −24, …). The formulas handle both.