Study and Productivity

How to Find the Next Term and the nth Term of Any Number Sequence

Spot arithmetic, geometric, quadratic and Fibonacci-type sequences, find the nth term with the method of differences and crack reasoning-test puzzles.

Saizul Amin
Saizul Amin3 Nov 2026 · 4 min read
How to Find the Next Term and the nth Term of Any Number Sequence

How to Find the Next Term and the nth Term of Any Number Sequence

"What comes next: 2, 5, 10, 17, …?" Sequence questions are a staple of maths lessons and of aptitude and reasoning tests. They feel like riddles, but almost all of them use a small set of patterns, and a systematic routine finds the rule quickly. This guide gives you that routine. The sequence detector and next-term finder follows the same steps automatically and shows its reasoning.

The routine

Work through these checks in order and stop at the first that fits.

  1. Differences. Subtract each term from the next.
  2. Ratios. Divide each term by the one before.
  3. Second differences. Take the differences of the differences.
  4. Two-term rules. Does each term depend on the previous two?
  5. Split it. Look at odd and even positions separately, or ignore the signs.
  6. Known lists. Squares, cubes, primes, factorials.

Arithmetic sequences: constant difference

3, 7, 11, 15, … adds 4 each time. With first term a₁ and difference d:

aₙ = a₁ + (n − 1)d = 3 + 4(n − 1) = 4n − 1.

A quick way to remember it: the nth term is "difference × n, then adjust". 4n gives 4, 8, 12, so subtract 1.

The sum of the first n terms is Sₙ = n/2 × (2a₁ + (n − 1)d). The first 10 terms here add up to 5 × (6 + 36) = 210.

Geometric sequences: constant ratio

2, 6, 18, 54, … multiplies by 3 each time. With ratio r:

aₙ = a₁ × r^(n − 1) = 2 × 3^(n − 1).

Sum: Sₙ = a₁(1 − rⁿ)/(1 − r). If the ratio is a fraction, such as 64, 32, 16, 8 (r = 1/2), the sum approaches a₁/(1 − r) = 128 however many terms you add.

Quadratic sequences: constant second differences

2, 5, 10, 17, 26: first differences 3, 5, 7, 9; second differences 2, 2, 2.

Constant second differences mean aₙ = an² + bn + c. Three facts give the coefficients:

  • 2a = second difference → a = 1
  • 3a + b = first difference → b = 3 − 3 = 0
  • a + b + c = first term → c = 2 − 1 = 1

So aₙ = n² + 1, and the next terms are 37, 50 and 65. The same method extends to cubics (constant third differences) and beyond; the detector's difference table shows every row.

Fibonacci-type sequences

1, 1, 2, 3, 5, 8, … adds the two previous terms. Any starting pair works: 2, 5, 7, 12, 19, 31. Differences will not help here, because the differences are the sequence shifted along. If you suspect this pattern, check whether each term equals the sum of the two before.

Mixed and disguised patterns

  • Differences that multiply: 2, 3, 5, 9, 17 has differences 1, 2, 4, 8, which double. So the next difference is 16 and the next term is 33.
  • Two interleaved sequences: 1, 20, 3, 18, 5, 16 is 1, 3, 5, … in the odd positions and 20, 18, 16, … in the even positions. Next comes 7.
  • Alternating signs: 1, −4, 7, −10, 13 has sizes 1, 4, 7, 10, 13 (adding 3) with signs that alternate. Next is −16.
  • Special lists: 11, 13, 17, 19, 23 are consecutive primes; 1, 2, 6, 24, 120 are factorials.

A word of caution

A finite list of numbers fits infinitely many rules. The sequence 1, 2, 4, 8 could double forever, or continue 1, 2, 4, 8, 16, 31 (regions of a circle cut by chords). Tests expect the simplest standard rule, and that is what the detector reports first, but it also lists other rules that fit so you can judge. Giving four or five terms rather than three makes the answer much more certain.

Practise with hidden rules

The puzzle mode generates sequences at three levels, hides the rule and checks your next term, keeping a streak. Easy puzzles use arithmetic and geometric rules; hard ones mix cubics, interleaved sequences and Fibonacci-type rules. Revealing the rule shows the same step-by-step explanation as the main tool.

Limits

The patterns in this guide cover school and reasoning-test sequences. They do not include rules based on digits (such as reversing or adding digits), letters, calendar dates or higher-order recurrences, and the detector will report that no standard pattern fits rather than guess. Very long or very fast-growing sequences may also lose precision in the last digits.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages