Number Sequence Calculator

Choose arithmetic, geometric or Fibonacci, enter the starting values and how many terms you want. You get the nth term, the sum of the first n terms and a table of the terms.

Sequence type
Whole numbers, decimals and fractions such as 1/2 work.
The calculator finds the nth term and the sum of the first n terms.

Result

10th term
29
  • Sum of the first 10 terms155
  • Formulaaₙ = 2 + (n − 1) × 3
  • a₁₀ = 2 + (10 − 1) × 3 = 29
  • S₁₀ = n × (a₁ + aₙ) ÷ 2 = 10 × (2 + 29) ÷ 2 = 155
All 10 terms
nTermRunning sum
122
257
3815
41126
51440
61757
72077
823100
926126
1029155

How to use the number sequence calculator

  1. Pick the type of sequence.
    • Arithmetic: add the same amount each time. Enter the first term a₁ and the common difference d.
    • Geometric: multiply by the same amount each time. Enter a₁ and the common ratio r.
    • Fibonacci: each term is the sum of the two before it. Enter the first two terms.
  2. Enter n, the number of terms. The calculator gives the nth term, the sum of the first n terms and a table of the terms with a running total. The table lists up to 100 terms.

The nth term and the table show whole numbers of up to 40 digits exactly. Bigger values switch to scientific notation, and the exact nth term is then listed digit by digit in a separate table.

The formulas

Sequence nth term Sum of first n terms
Arithmetic aₙ = a₁ + (n − 1)d Sₙ = n(a₁ + aₙ) ÷ 2
Geometric aₙ = a₁ × rⁿ⁻¹ Sₙ = a₁(1 − rⁿ) ÷ (1 − r), or n × a₁ when r = 1
Fibonacci Fₙ = Fₙ₋₁ + Fₙ₋₂ Add the terms; for 1, 1, … the sum is Fₙ₊₂ − 1

The arithmetic sum formula is the classic pairing trick. Write the terms forwards and backwards, and each pair adds up to a₁ + aₙ. There are n terms, so there are n/2 such pairs.

Worked example: 2, 5, 8, …

The page opens with an arithmetic sequence that starts at 2 and goes up by 3.

  1. 10th term: a₁₀ = 2 + (10 − 1) × 3 = 2 + 27 = 29.
  2. Sum of the first 10 terms: S₁₀ = 10 × (2 + 29) ÷ 2 = 10 × 31 ÷ 2 = 155.
  3. Check with the table: 2, 5, 8, 11, 14, 17, 20, 23, 26, 29. The running total in the last row is 155.

Switch to geometric with a₁ = 3 and r = 2. The 10th term is 3 × 2⁹ = 1,536, and the sum is 3 × (2¹⁰ − 1) = 3,069. With Fibonacci starting 1, 1, the 10th term is 55 and the first ten terms add up to 143, which is F₁₂ − 1 = 144 − 1.

Where sequences come up

  • Arithmetic: a fixed rise each period, such as a salary that grows by the same amount each year, or seats per row in a theatre.
  • Geometric: growth or decay by a fixed percentage. Money growing at 5% a year forms a geometric sequence with r = 1.05, which is the idea behind the compound interest calculator. For one power on its own, use the exponent calculator.
  • Fibonacci: branching patterns in plants, rabbit-population puzzles, and the golden ratio. The ratio of neighbouring terms approaches 1.6180339887…

Limitations

  • Arithmetic sequences allow n up to one trillion. Geometric and Fibonacci sequences allow n up to 1,000, because their terms can run to thousands of digits.
  • Each input can have up to 15 digits in its numerator and denominator.
  • The calculator generates sequences from a rule. It does not guess the rule from a list of numbers.

Frequently asked questions

How do I tell whether a sequence is arithmetic or geometric?

Subtract each term from the next. If the difference is always the same, the sequence is arithmetic. If not, divide each term by the one before it. If that ratio is always the same, the sequence is geometric. 3, 7, 11, 15 adds 4 each time; 3, 6, 12, 24 doubles.

When does a geometric series have a sum to infinity?

Only when the common ratio is between −1 and 1. Then the terms shrink toward zero and the sum settles on a₁ ÷ (1 − r). For 1 + 1/2 + 1/4 + … that is 1 ÷ (1/2) = 2. With |r| ≥ 1 the terms do not shrink and the sum grows without limit.

Can the Fibonacci sequence start with other numbers?

Yes. Any two starting values give a Fibonacci-type sequence, where each term is the sum of the two before it. Starting with 2 and 1 gives the Lucas numbers: 2, 1, 3, 4, 7, 11, 18. Some books start the classic sequence at 0, 1, which shifts the numbering by one.

Are decimal inputs exact?

Yes. Inputs are read as exact fractions, so 0.1 + 0.2 really equals 0.3 and no rounding builds up over many terms. Fractions such as 1/3 can be typed directly. Only the final display is rounded, to 12 significant figures, when a result does not come out as a short decimal.

Last reviewed: