Nth Term Calculator

Enter the terms of a sequence and find the rule for the nth term.

4 to 20 numbers or fractions, separated by commas.

Try

Result

You entered2,  6,  12,  202, \; 6, \; 12, \; 20

an=n2+n\displaystyle a_n = n^{2} + n

Next term

30\displaystyle 30

10th term

110\displaystyle 110
Show the work
  1. Differences between terms

    Subtract each term from the one after it to get the first differences, and repeat on those if they are not constant. The row where the differences stop changing tells you what kind of rule the sequence follows.

    an261220Δ1468Δ222\begin{array}{l|cccc} a_n & 2 & 6 & 12 & 20 \\ \Delta_1 & 4 & 6 & 8 \\ \Delta_2 & 2 & 2 \end{array}
  2. Quadratic sequence: second differences are constant

    The second differences are all 2. For An2+Bn+CAn^2 + Bn + C the second difference is 2A2A, the first difference from term 1 to term 2 is 3A+B3A + B, and the first term is A+B+CA + B + C. Solve those three in turn.

    Using an=An2+Bn+Ca_n = An^2 + Bn + C

    2A=2A=13(1)+B=4B=11+1+C=2C=0\begin{gathered} 2A = 2 \\ A = 1 \\ 3\left(1\right) + B = 4 \\ B = 1 \\ 1 + 1 + C = 2 \\ C = 0 \end{gathered}
  3. Check against the terms

    Put n=1,2,3,…n = 1, 2, 3, \dots into the rule and compare with the given terms. The rule gives every one of the 4 terms correctly, so it fits the whole list.

    a1=2a2=6a3=12a4=20\begin{gathered} a_{1} = 2 \\ a_{2} = 6 \\ a_{3} = 12 \\ a_{4} = 20 \end{gathered}
  4. Result

    So the rule for the nth term is an=n2+na_n = n^{2} + n.

Worked examples