Free, with every step shown

Number Sequence Calculator: Find the Next Number

Type the terms and get the pattern, the nth-term rule and the next numbers. 2, 6, 18, 54 multiplies by 3, so the next term is 162. 93, 64, 35 subtracts 29, so the next is 6, and 3, 7, 13, 21, 31 follows n² + n + 1, so the next is 43.

It checks arithmetic, geometric, quadratic, cubic, Fibonacci-type and alternating patterns with exact fractions, and shows the differences or ratios it used.

Type the terms you know

Separate terms with commas or spaces. Whole numbers, decimals and fractions (1/2) work. Results update as you type.

Geometric sequence

Next: 162, 486, 1458, 4374, 13122

Multiply by 3 each time (common ratio r = 3).

aₙ = 2 · 3ⁿ⁻¹

  1. Terms: 2, 6, 18, 54
  2. Differences 4, 12, 36 are not constant, so it is not arithmetic.
  3. Ratios between neighbours: 3, 3, 3 — all the same, so it is geometric.
  4. Next term = last term × r = 54 × 3 = 162
  5. nth term: aₙ = a₁ · rⁿ⁻¹ = 2 · 3ⁿ⁻¹
Explain the steps with AI

Worked examples

Example 1: Find the next term of 93, 64, 35

An arithmetic sequence that goes down.

  1. Differences: 64 − 93 = −29, 35 − 64 = −29 (constant)
  2. Next term: 35 − 29 = 6
  3. nth term: aₙ = 93 − 29(n − 1) = 122 − 29n

Next term 6, then −23, −52. Rule aₙ = 122 − 29n.

Example 2: Find the rule for 3, 7, 13, 21, 31

The gaps get bigger, so check the second differences.

  1. First differences: 4, 6, 8, 10
  2. Second differences: 2, 2, 2 (constant), so aₙ = an² + bn + c with a = 1
  3. Using a₁ = 3 and a₂ = 7: b = 1, c = 1

aₙ = n² + n + 1; the next term is 6² + 6 + 1 = 43.

Example 3: Find the next term of 81, 27, 9, 3

A geometric sequence with a fractional ratio.

  1. Ratios: 27 ÷ 81 = 1/3, 9 ÷ 27 = 1/3, 3 ÷ 9 = 1/3 (constant)
  2. Next term: 3 × 1/3 = 1

Next term 1, then 1/3 and 1/9. Rule aₙ = 81 · (1/3)ⁿ⁻¹.

How to spot the pattern in any sequence

  1. Differences. Subtract each term from the next. A constant difference means arithmetic.
  2. Ratios. Divide each term by the one before. A constant ratio means geometric.
  3. Differences of differences. Constant second differences mean a quadratic rule; constant third differences mean cubic.
  4. Look back two terms. If each term is the sum of the two before, it is Fibonacci-type.
  5. Split odd and even positions. Puzzle sequences often interleave two simple patterns.

Stuck on a step, or have a word problem?

Press Explain the steps with AI under any answer and the MathAI GPT math solver opens with your numbers already filled in, then explains the method line by line and answers follow-up questions. You can also type or photograph the whole question. On your phone, use MathAI GPT for iPhone or MathAI GPT for Android.

Number sequence FAQ

How do I find the next number in a sequence?

Check the differences between neighbouring terms first. If they are all the same, add that difference again (93, 64, 35 → subtract 29 → 6). If not, check the ratios: 2, 6, 18, 54 multiplies by 3 each time, so the next term is 162. If the differences themselves grow by a constant amount, the sequence is quadratic.

What is the formula for the nth term of an arithmetic sequence?

aₙ = a₁ + (n − 1)d, where a₁ is the first term and d is the common difference. For 5, 8, 11, 14, d = 3, so aₙ = 5 + 3(n − 1) = 3n + 2 and the 20th term is 62.

What is the formula for the nth term of a geometric sequence?

aₙ = a₁ · rⁿ⁻¹, where r is the common ratio. For 81, 27, 9, 3, r = 1/3, so aₙ = 81 · (1/3)ⁿ⁻¹ and the next term is 1.

How do I find the rule for a quadratic sequence?

If the second differences are constant, the rule is an² + bn + c with 2a equal to the second difference. For 3, 7, 13, 21, 31 the first differences are 4, 6, 8, 10 and the second differences are 2, so a = 1; solving with the first terms gives aₙ = n² + n + 1, and the next term is 43.

Which patterns does this calculator recognise?

Arithmetic (constant difference), geometric (constant ratio), quadratic and cubic (constant second or third differences), Fibonacci-type (each term is the sum of the two before) and two alternating arithmetic sequences. If none fits, it says so instead of guessing, and the AI solver can look for other rules such as primes or digit patterns.

Why does it need at least four terms for some patterns?

Any three numbers fit a quadratic rule, so three terms cannot prove a pattern is quadratic. With four or more terms the calculator can confirm that the second differences really are constant. Arithmetic and geometric rules are checked from three terms.

Related calculators