Nth Term Calculator
Test cases replayed : 6 of 6 match · Methodology · No outside source listed
Enter the first four terms of a sequence and the position n you want. The calculator tests whether the terms follow an arithmetic, geometric or quadratic rule, writes the formula and gives the nth term.
Result
General term (explicit formula)
Value of the nth term aₙ
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- First term a₁: enter a number.
- Second term a₂: enter a number.
- Third term a₃: enter a number.
- Fourth term a₄: enter a number.
- Position n: enter 1 or more.
- Read the result: General term (explicit formula); the panel also shows Value of the nth term aₙ.
How this calculator works
Arithmetic: constant first differences d = a₂ − a₁, so aₙ = a₁ + (n − 1)d. Geometric: constant ratio r = a₂ ÷ a₁, so aₙ = a₁ × r^(n − 1). Quadratic: constant second differences, so aₙ = an² + bn + c with a = half the second difference, b = (a₂ − a₁) − 3a and c = a₁ − a − b.
The rules are tested in that order on all four terms (a constant sequence counts as arithmetic). The fourth term confirms the rule found from the first three; equality is tested to a tolerance of one billionth, relative to the size of the numbers compared when they exceed 1.
Four terms cannot prove a pattern: other rules can fit the same terms. The formula shown is the simplest of the three families that fits them.
Worked example
| First term a₁ | 3 |
|---|---|
| Second term a₂ | 7 |
| Third term a₃ | 11 |
| Fourth term a₄ | 15 |
| Position n | 10 |
| General term (explicit formula) | Arithmetic: aₙ = 3 + (n − 1) × 4 |
|---|---|
| Value of the nth term aₙ | 39 |
Frequently asked questions
What is the nth term of 3, 7, 11, 15?
The difference is always 4, so aₙ = 3 + (n − 1) × 4 = 4n − 1, and the 10th term is 39.
How do I find the nth term of a quadratic sequence?
Halve the constant second difference to get a, then b = (a₂ − a₁) − 3a and c = a₁ − a − b. For 2, 5, 10, 17 the second difference is 2, so a = 1, b = 0, c = 1 and aₙ = n² + 1.
Why does it say no rule fits?
The four terms are not arithmetic, geometric or quadratic, for example a cubic sequence like 1, 8, 27, 64.