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 entered1,  8,  27,  64,  1251, \; 8, \; 27, \; 64, \; 125

an=n3\displaystyle a_n = n^{3}

Next term

216\displaystyle 216

10th term

1000\displaystyle 1000
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.

    an182764125Δ17193761Δ2121824Δ366\begin{array}{l|ccccc} a_n & 1 & 8 & 27 & 64 & 125 \\ \Delta_1 & 7 & 19 & 37 & 61 \\ \Delta_2 & 12 & 18 & 24 \\ \Delta_3 & 6 & 6 \end{array}
  2. Cubic sequence: third differences are constant

    The third differences are all 6. For An3+…An^3 + \dots the third difference is 6A6A. Subtract An3An^3 from every term; what is left is a quadratic sequence Bn2+Cn+DBn^2 + Cn + D, solved as before with 2B2B, 3B+C3B + C and B+C+DB + C + D.

    Using an=An3+Bn2+Cn+Da_n = An^3 + Bn^2 + Cn + D

    6A=6A=12B=0B=03(0)+C=0C=00+0+D=0D=0\begin{gathered} 6A = 6 \\ A = 1 \\ 2B = 0 \\ B = 0 \\ 3\left(0\right) + C = 0 \\ C = 0 \\ 0 + 0 + D = 0 \\ D = 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 5 terms correctly, so it fits the whole list.

    a1=1a2=8a3=27a4=64…\begin{gathered} a_{1} = 1 \\ a_{2} = 8 \\ a_{3} = 27 \\ a_{4} = 64 \\ \dots \end{gathered}
  4. Result

    So the rule for the nth term is an=n3a_n = n^{3}.

Worked examples