What this calculator does
The Complete the Sequence Pattern Calculator looks at the list of numbers you enter and figures out the rule behind them. It checks two of the most common patterns in math: an arithmetic sequence, where each term grows by adding the same number (the common difference d), and a geometric sequence, where each term is multiplied by the same number (the common ratio r). Once it identifies the pattern, it extends the list and tells you the next term — or as many next terms as you ask for.
How to use it
Type your numbers separated by commas, for example 3, 7, 11, 15. Choose how many additional terms you want (1 to 20), then submit. The calculator reports the pattern type, the common difference or ratio, the very next term, and the full list of new terms it generated.
The formula explained
For an arithmetic sequence the nth term is \(a_n = a_1 + (n-1)d\), where d is the constant difference between consecutive terms. For a geometric sequence the nth term is \(a_n = a_1 \cdot r^{n-1}\), where r is the constant ratio. The calculator computes the difference and ratio between each pair of consecutive numbers; if every difference matches, the sequence is arithmetic, and if every ratio matches, it is geometric.
Worked example
Given 2, 4, 6, 8, the difference is always 2, so it is arithmetic with \(d = 2\). Adding 2 repeatedly gives the next terms 10, 12, 14. For 3, 6, 12, 24, each term doubles, so it is geometric with \(r = 2\), and the next terms are 48, 96, 192.
Common Sequence Types and How to Recognize Them
To identify a sequence by hand, work out the differences between consecutive terms. If those differences are not constant, work out the differences of the differences, and so on. Also check the ratios between consecutive terms. The last column shows whether this calculator detects the type automatically. It only tests for a constant difference or a constant ratio.
| Sequence type | Example terms | How to recognize it | nth-term rule | Detected by this calculator? |
|---|---|---|---|---|
| Arithmetic | 2, 5, 8, 11, … | Constant first difference (here +3) | \(a_n = a_1 + (n-1)d\) | Yes |
| Geometric | 3, 6, 12, 24, … | Constant ratio between consecutive terms (here ×2) | \(a_n = a_1 \cdot r^{n-1}\) | Yes |
| Quadratic | 1, 4, 9, 16, … or 2, 5, 10, 17, … | First differences change (3, 5, 7), but the second difference is constant (2) | \(a_n = an^2 + bn + c\) (e.g. \(n^2\) and \(n^2 + 1\)) | No |
| Cubic | 1, 8, 27, 64, … | Constant third difference (6) | \(a_n = n^3\) (general form \(an^3 + bn^2 + cn + d\)) | No |
| Fibonacci-type | 1, 1, 2, 3, 5, … | Each term is the sum of the previous two | \(a_n = a_{n-1} + a_{n-2}\) | No |
| Triangular numbers | 1, 3, 6, 10, … | Differences are 2, 3, 4, …, so the second difference is a constant 1 (a special quadratic) | \(a_n = \dfrac{n(n+1)}{2}\) | No |
| Alternating | 1, −1, 1, −1, … | The sign flips each term while the size stays the same | \(a_n = (-1)^{n-1}\), i.e. geometric with \(r = -1\) | Yes (as geometric, \(r = -1\)) |
Worked check for the quadratic example 2, 5, 10, 17: the first differences are \(5-2=3\), \(10-5=5\) and \(17-10=7\). The second differences are \(5-3=2\) and \(7-5=2\), which are constant. So the rule is quadratic: \(a_n = n^2 + 1\), and the next term is \(5^2 + 1 = 26\). This calculator would report no simple pattern for that sequence, because neither the differences nor the ratios are constant.
FAQ
What if my sequence is neither arithmetic nor geometric? The calculator reports "No simple pattern." Many sequences (like Fibonacci or quadratic series) follow more complex rules that this tool does not detect.
How many numbers do I need? At least two, but three or more gives a far more reliable pattern detection.
Can it handle decimals and negatives? Yes — both differences and ratios work with negative numbers and decimals.