Sequence Calculator
Integer arithmetic and geometric sequences, Fibonacci (F₀=0), and linear recurrences. Exact BigInt. Not Pascal’s triangle. Runs locally.
Trust summary Engine tested · Specification checked · 12/12 tests · Production surface contract 4/4 · v1.0.0
- Input interpretation
- Enter values to calculate.
- Result
- —
- Model
- a_n / F_n / u_n for integer sequences, plus S_n for AP/GP/Fibonacci.
- Scope
- Integers
- Verification
- Engine tested · 12/12 tests · Production surface contract 4/4 · Specification checked · v1.0.0
- Named expert review
- Optional · Not performed
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- Evidence
- 4 golden · 2 boundary · 6 property · Production surface contract 4/4 · Artifact integrity PASS
- Production
- Embedded snapshot: unpublished · Build schema 1.0.0 ready · Semantic contract ✓ · Attestation report not published on origin · Live production status STALE (1 capability; 163 remain CURRENT) @ 2026-09-19T00:00:17.039Z
- Semantic contract
- PASS
Formulas
Core equations used by this calculator.
How to use
Choose a mode
Arithmetic, geometric, Fibonacci, or linear recurrence. Locked discovery URLs exist for the first three.
Enter n and the parameters
Fibonacci allows n=0. Arithmetic/geometric need n≥1.
Read a_n (and S_n)
Sums are exact integers.
Example calculations
Common configurations with formula and result.
AP
a=2 d=3 n=5
GP
a=3 r=2 n=4
F_10
F_0=0
Sequence calculator specification
Version 1.0.0 · Engine tested
- Engine tested 12/12 tests · Production surface contract 4/4
- Named expert review Not performed
- Calculation version 1.0.0
- Definition
- Closed forms for arithmetic and geometric sequences, iterative Fibonacci F₀=0 F₁=1, and uₙ = p uₙ₋₁ + q uₙ₋₂. Discovery pages share this capability. Not combinatorics.
- What it calculates
- a_n / F_n / u_n for integer sequences, plus S_n for AP/GP/Fibonacci.
- Inputs
- mode
- n
- a
- d
- r
- p
- q
- a0
- a1
- Outputs
- term
- sum
- exact
- Formula
a_n = a+(n−1)d or a r^{n−1}; F_n recurrence- Assumptions
- Integers
- n ≤ 1000
- Not Pascal / partition / n!
- Units
- dimensionless
- Boundary conditions
- unknown mode (including pascal) → INVALID_MODE
- n=0 on AP/GP → VALUE_MUST_BE_POSITIVE
- n>1000 → VALUE_ABOVE_MAX
- Example
- mode=arithmetic a=2 d=3 n=5 → 14
- Validation cases
2 published on this page · 12/12 tests · Production surface contract 4/4 · View evidence
- mode=arithmetic a=2 d=3 n=5 → term=14 sum=40
- mode=fibonacci n=10 → 55
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- Calculation version
- 1.0.0
Related tools
Other calculators in this family: Arithmetic Sequence Calculator, Factorial Calculator, Fibonacci Calculator, GCF Calculator, Geometric Sequence Calculator, LCM Calculator, Modular Inverse Calculator, Modulo Calculator . Explore all Number Theory & Discrete Math.
Frequently asked questions
Key distinctions behind the calculation.
Is this Pascal’s triangle?
No. Binomial coefficients stay /calc/math/permutation-combination. Integer partition is out of scope.
Which Fibonacci indexing?
F_0=0, F_1=1. Linear recurrence with p=q=1, a0=0, a1=1 is the same sequence.
Where does this run?
Locally in the browser by default. REST and MCP call the same sequence engine.