Toolvito

Works on this device

Sequence Calculator

Work with number sequences: the nth term and the sum of arithmetic and geometric sequences, the sum to infinity, a sequence from two of its terms, the rule and next terms of a list you type, Fibonacci numbers and more. Answers are exact fractions when your numbers are exact, with the formula shown.

Enter your values

For a sequence that adds the same number each time, such as 3, 7, 11, 15, ...

Your values

You can type a whole number, a decimal or a fraction such as 1/2.

The amount added each time. Use a negative number for a falling sequence.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose what you want to work out, for example Arithmetic sequence: nth term and sum or Recognise a sequence and find the next terms.
  2. Enter the numbers you know. You can type whole numbers, decimals or fractions such as 1/2 or -3/4.
  3. Choose Calculate. The answer comes with the formula, the working and a table of terms. You can download the table as a CSV file.

The formulas

  • Arithmetic sequence (add d each time): aₙ = a₁ + (n − 1)d, and the sum of the first n terms is Sₙ = n(a₁ + aₙ) ÷ 2. Recursive form: aₙ = aₙ₋₁ + d.
  • Geometric sequence (multiply by r each time): aₙ = a₁ × r^(n − 1), and Sₙ = a₁(1 − rⁿ) ÷ (1 − r) when r is not 1. Recursive form: aₙ = r × aₙ₋₁.
  • Sum to infinity: when −1 < r < 1, a₁ + a₁r + a₁r² + ... = a₁ ÷ (1 − r). For any other r the sum has no limit.
  • Term number of a value: n = (aₙ − a₁) ÷ d + 1 for an arithmetic sequence. The value is a term only when n is a whole number from 1 up.
  • From two terms: d = (a_q − a_p) ÷ (q − p), or r^(q − p) = a_q ÷ a_p for a geometric sequence. An even number of steps gives two ratios, r and −r.
  • Quadratic sequence: the second differences are the same. Then aₙ = An² + Bn + C with A = half the second difference.
  • Fibonacci numbers: F₀ = 0, F₁ = 1 and Fₙ = Fₙ₋₁ + Fₙ₋₂. Triangular numbers: Tₙ = n(n + 1) ÷ 2. Harmonic numbers: Hₙ = 1 + 1/2 + ... + 1/n.

Worked examples

The arithmetic sequence 3, 7, 11, ... has a₁ = 3 and d = 4. Its 10th term is 3 + 9 × 4 = 39, the sum of the first 10 terms is 10 × (3 + 39) ÷ 2 = 210, and its formula is aₙ = 4n − 1.

The geometric sequence 3, 6, 12, ... has r = 2. Its 10th term is 3 × 2⁹ = 1,536 and the sum of the first 10 terms is 3 × (1 − 2¹⁰) ÷ (1 − 2) = 3,069.

The series 3 + 3/2 + 3/4 + ... has r = 1/2, so its sum to infinity is 3 ÷ (1 − 1/2) = 6.

If a₃ = 11 and a₇ = 27 in an arithmetic sequence, then d = 16 ÷ 4 = 4 and a₁ = 11 − 2 × 4 = 3.

The list 1, 4, 9, 16, 25 has the second difference 2, so it is quadratic with aₙ = n². The next terms are 36, 49 and 64.

F₁₀ = 55, and F₁ + F₂ + ... + F₁₀ = 143 = F₁₂ − 1.

Limits you should know

  • A list of numbers can always be continued in more than one way. The page checks only four rules (arithmetic, geometric, quadratic and Fibonacci-like) and says so when none of them fits.
  • Exact values may have up to about 6,000 digits. Tables list up to 500 terms. Fibonacci numbers go up to F₂₀₀₀₀, harmonic numbers up to H₂₀₀₀.
  • Terms written with letters, such as x, 2x + 1, 5x, are not read. To find x in such a sequence, set up an equation and use the Equation & Inequality Solver.
  • General recursive sequences, such as aₙ = 2aₙ₋₁ + n, belong to the Recurrence Relation Solver. Infinite series other than geometric ones belong to the Series Calculator.
  • Fibonacci retracement levels used in trading are percentages on a price chart. They are not the Fibonacci sequence and are not offered here.

Related tools