Skip to content

Math

Number Sequence Calculator

Enter your values and the result updates as you type. The formula and a worked example are below the calculator.

Type of sequence

definition: aₙ = a₁ + f × (n − 1)
example: 1, 3, 5, 7, 9, 11, 13, …

Sequence: 2, 7, 12, 17, 22, 27, 32, 37, 42 ...

20th value

97

The sum of all numbers up through the 20th
990

How to use

  1. Choose the type of sequence: arithmetic (add the same amount each time), geometric (multiply by the same amount each time) or Fibonacci (add the two numbers before).
  2. Enter the first number and the common difference or ratio, then the position of the number you want to find (1 is the first number).
  3. Read the value at that position, the sum of all the numbers up to it and the first terms with a running total.
  4. For a geometric sequence with a ratio between -1 and 1, also read the sum if the sequence went on forever.

Formula

Arithmetic: a_n = a_1 + d × (n − 1) and the sum S_n = n × (a_1 + a_n) / 2. Geometric: a_n = a × r^(n−1) and S_n = a × (1 − r^n) / (1 − r), or n × a when r = 1; the endless sum is a / (1 − r) when |r| < 1. Fibonacci: each number is the sum of the two before it, starting 1, 1, and the sum of the first n is F(n+2) − 1.

Example

Starting at 2 and adding 5 each time gives 2, 7, 12, 17, ...; the 20th number is 2 + 5 × 19 = 97 and the first 20 add up to 990. Starting at 2 and multiplying by 5 gives 2, 10, 50, ...; the 12th number is 97,656,250. A savings plan that grows by a fixed ₹5,000 more each month is arithmetic; money earning a fixed 8% a year is geometric with r = 1.08.

Values are exact however large; numbers with more than 21 digits are also shown in scientific form with every digit one click away. Terms are counted from 1; the Fibonacci list starts 1, 1, 2, 3, 5 (a position of 0 is not used).