Sequences & Series

Recursive Formulas: How to Write, Use and Convert Them

A recursive formula defines each term of a sequence from the term before it, plus a starting value: a1=ca_1 = c and an=f(an−1)a_n = f(a_{n-1}) for n≥2n \ge 2. For example, a1=3a_1 = 3 and an=an−1+4a_n = a_{n-1} + 4 produce 3,7,11,15,…3, 7, 11, 15, \dots

a1=c,an=f(an−1) for n≥2a_1 = c,\quad a_n = f(a_{n-1}) \text{ for } n \ge 2

Many sequences have two descriptions. The arithmetic sequence formula gives any term directly from its position, while the recursive version describes one step at a time. This page covers how to write recursive formulas, evaluate them with awkward numbers, convert them to direct formulas, and decide when each form is the better tool.

What is a recursive formula?

One recursive rule doubling the previous term gives two different sequences depending on the seed
The rule aₙ = 2aₙ₋₁ produces 1, 2, 4, 8 from a seed of 1 and 5, 10, 20, 40 from a seed of 5.

The word comes from the Latin for “running back”: each step looks back at what came before. A complete recursive formula has two parts, a seed and a rule. The seed is the first term, such as a1=3a_1 = 3. The rule builds ana_n from an−1a_{n-1}, such as an=an−1+4a_n = a_{n-1} + 4 for n≥2n \ge 2.

Drop the seed and the rule fits infinitely many sequences. The rule an=an−1+4a_n = a_{n-1} + 4 describes 3,7,11,…3, 7, 11, \dots and also 100,104,108,…100, 104, 108, \dots. The seed picks one of them. A rule with no starting value is an unfinished answer, and it is the most common way students lose points on this topic.

The rule may also use the position nn. The triangular numbers come from a1=1a_1 = 1 and an=an−1+na_n = a_{n-1} + n, giving 1,3,6,10,15,…1, 3, 6, 10, 15, \dots Each step adds a larger amount, which is why this sequence is not arithmetic. The price of recursion is that there are no shortcuts: to reach a50a_{50} you must pass through a49a_{49}, a48a_{48} and every term before them, unless the formula is converted to an explicit one (covered below).

Quick check

A sequence has a1=7a_1 = 7 and an=an−1+na_n = a_{n-1} + n for n≥2n \ge 2. Find a4a_4.

Recursive formula for arithmetic and geometric sequences

For an arithmetic sequence the rule is an=an−1+da_n = a_{n-1} + d. Rearranged, it reads an−an−1=da_n - a_{n-1} = d: the change over one step is constant. That is exactly the idea of slope, which is why plotted terms fall on a line, and why the slope-intercept form of a line feels so familiar here. The only difference is that nn takes whole-number values.

For a geometric sequence the rule is an=r an−1a_n = r\,a_{n-1}, so r=anan−1r = \dfrac{a_n}{a_{n-1}}. Adding the same amount each time draws a straight line, while multiplying by the same factor draws a curve that bends upward (or decays toward zero when ∣r∣<1|r| < 1). The geometric sequence formula page shows the explicit version, an=a1rn−1a_n = a_1 r^{n-1}, and the two forms describe the same terms.

Seed first, then rule

an=2an−1a_n = 2a_{n-1} alone fits 1,2,4,…1, 2, 4, \dots and 5,10,20,…5, 10, 20, \dots equally well. Always write the seed, such as a1=5a_1 = 5, and the range, such as n≥2n \ge 2.

How do you write a recursive formula from a list of terms?

Work through the tests in order, because each one rules out a simpler pattern:

  1. Subtract neighbouring terms. If the differences are equal, the rule is an=an−1+da_n = a_{n-1} + d.
  2. Divide neighbouring terms. If the ratios are equal, the rule is an=r an−1a_n = r\,a_{n-1}.
  3. If neither holds, check whether the differences themselves form a geometric pattern. If they do, try an=r an−1+ca_n = r\,a_{n-1} + c.
  4. Write the seed and the range of nn.

Here is the third case worked out for 5,11,23,47,…5, 11, 23, 47, \dots The differences are 6,12,246, 12, 24, which are not constant, and the ratios 115\frac{11}{5} and 2311\frac{23}{11} differ. But the differences double, so r=2r = 2. Doubling 55 gives 1010, and the actual next term is 1111, so c=1c = 1. Test it on the later terms:

2(11)+1=23,2(23)+1=472(11) + 1 = 23, \qquad 2(23) + 1 = 47

The recursive formula is a1=5a_1 = 5, an=2an−1+1a_n = 2a_{n-1} + 1 for n≥2n \ge 2.

Step 3 works because the constant cc cancels when you subtract: an+1−an=r(an−an−1)a_{n+1} - a_n = r(a_n - a_{n-1}). The differences follow the same multiplier as the terms. A list like 1,4,9,161, 4, 9, 16 has differences 3,5,73, 5, 7 that grow by a constant 22, so its rule needs nn in it: an=an−1+2n−1a_n = a_{n-1} + 2n - 1.

How do you use a recursive formula with negatives and fractions?

Substitute each previous term inside parentheses, every time. Most errors come from a dropped negative sign, and writing −12(−6)-\frac{1}{2}(-6) instead of −12⋅−6-\frac{1}{2}\cdot -6 keeps the signs visible. Multiplication happens before addition, as in the order of operations practice problems.

Find a2a_2 through a5a_5 for a1=−6a_1 = -6 and an=−12an−1+5a_n = -\frac{1}{2}a_{n-1} + 5:

nn Substitution ana_n
2 −12(−6)+5-\frac{1}{2}(-6) + 5 88
3 −12(8)+5-\frac{1}{2}(8) + 5 11
4 −12(1)+5-\frac{1}{2}(1) + 5 92\frac{9}{2}
5 −12(92)+5=−94+204-\frac{1}{2}\left(\frac{9}{2}\right) + 5 = -\frac{9}{4} + \frac{20}{4} 114\frac{11}{4}

Keep fractions exact. Converting 92\frac{9}{2} to 4.54.5 is harmless here, but repeated rounding in a long chain drifts. A free sanity check: a negative multiplier makes the terms jump from one side of a middle value to the other. The list −6,8,1,92,114-6, 8, 1, \frac{9}{2}, \frac{11}{4} does exactly that, and the jumps shrink because ∣r∣=12|r| = \frac{1}{2} is less than 11.

Quick check

A sequence has a1=−1a_1 = -1 and an=3−2an−1a_n = 3 - 2a_{n-1}. Find a3a_3.

Recursive formula vs explicit formula: how to convert

Fixed point shortcut turns the recursion 5, 11, 23, 47 into the gaps 6, 12, 24, 48 that double
Adding 1 to every term of 5, 11, 23, 47 leaves 6, 12, 24, 48, a pure doubling sequence that gives the explicit formula.

An explicit formula is the recursive one with the walking done in advance. For the arithmetic case, unroll the rule:

an=an−1+d=an−2+2d=⋯=a1+(n−1)da_n = a_{n-1} + d = a_{n-2} + 2d = \dots = a_1 + (n-1)d

Each step peels off one dd, and there are n−1n - 1 steps between a1a_1 and ana_n. Written as a sum, that is ∑k=2nd\sum_{k=2}^{n} d, which is the same sigma notation used for series. Multiplying instead of adding gives an=a1rn−1a_n = a_1 r^{n-1} in the same way. When the question asks “which term first exceeds 10001000?”, the explicit form is what lets you apply logarithm rules to solve for nn.

Fixed point shortcut

For an=r an−1+ca_n = r\,a_{n-1} + c with r≠1r \ne 1, solve L=rL+cL = rL + c. Then an−L=rn−1(a1−L)a_n - L = r^{n-1}(a_1 - L), a pure geometric sequence.

Apply the shortcut to a1=5a_1 = 5, an=2an−1+1a_n = 2a_{n-1} + 1 from earlier. Solving L=2L+1L = 2L + 1 gives L=−1L = -1, and a1−L=6a_1 - L = 6, so:

an=6⋅2n−1−1a_n = 6 \cdot 2^{n-1} - 1

Test it: n=2n = 2 gives 12−1=1112 - 1 = 11 and n=3n = 3 gives 24−1=2324 - 1 = 23, both matching. Then a10=6⋅512−1=3071a_{10} = 6 \cdot 512 - 1 = 3071 with no chain of nine multiplications. The shortcut works because subtracting LL from both sides of the rule removes the constant: an−L=r(an−1−L)a_n - L = r(a_{n-1} - L). The gap from the fixed point simply gets multiplied by rr each step.

Recursive formulas with two previous terms, like Fibonacci

A rule that reaches back two terms needs two seeds. The Fibonacci rule is F1=1F_1 = 1, F2=1F_2 = 1 and Fn=Fn−1+Fn−2F_n = F_{n-1} + F_{n-2}, giving 1,1,2,3,5,8,13,…1, 1, 2, 3, 5, 8, 13, \dots In general, a rule that looks back kk terms needs kk starting values. Supplying only one seed leaves the third term undetermined. The full story of this particular sequence, including the golden ratio, is on The Fibonacci Sequence page.

Some two-term rules are secretly simple. Take a1=3a_1 = 3, a2=5a_2 = 5 and an=2an−1−an−2a_n = 2a_{n-1} - a_{n-2}. The terms are 3,5,7,9,…3, 5, 7, 9, \dots because rearranging gives an−an−1=an−1−an−2a_n - a_{n-1} = a_{n-1} - a_{n-2}: the difference never changes, so the sequence is arithmetic in disguise. Spotting that turns a two-term rule into a one-line explicit formula.

Try this: Write the first six terms of a1=2a_1 = 2, a2=5a_2 = 5, an=3an−1−2an−2a_n = 3a_{n-1} - 2a_{n-2}. Subtract neighbouring terms and see which earlier pattern appears, then write a one-term rule that gives the same list.

There is also a link to matrices. Because (Fn+1Fn)=(1110)(FnFn−1)\begin{pmatrix} F_{n+1} \\ F_n \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}\begin{pmatrix} F_n \\ F_{n-1} \end{pmatrix}, the nnth power of that matrix holds consecutive Fibonacci numbers. Taking the determinant of a 2×2 matrix on both sides gives Fn+1Fn−1−Fn2=(−1)nF_{n+1}F_{n-1} - F_n^2 = (-1)^n. Check with n=3n = 3: F4F2−F32=3−4=−1F_4F_2 - F_3^2 = 3 - 4 = -1.

Where recursive formulas are used in real life

Anything that updates from its previous state is recursive. A savings account with a yearly deposit follows A0=1000A_0 = 1000 and An=1.04An−1+100A_n = 1.04A_{n-1} + 100: grow by 4%4\%, then add 100100. The fixed point is L=1001−1.04=−2500L = \dfrac{100}{1 - 1.04} = -2500, and because the seed is at n=0n = 0 the exponent is nn, not n−1n - 1:

An=3500(1.04)n−2500A_n = 3500(1.04)^n - 2500

Check: A1=3640−2500=1140A_1 = 3640 - 2500 = 1140, which equals 1.04(1000)+1001.04(1000) + 100. Seed position sets the exponent, so a seed at n=0n = 0 shifts everything by one. Loan balances work the same way with a negative payment, and unrolling any such rule produces a sum of powers, which the geometric series formula evaluates. When ∣r∣<1|r| < 1 the terms settle toward the fixed point, the same limiting idea behind the infinite geometric series formula.

Computers lean on recursion even more. Newton’s method for 2\sqrt{2} uses xn=12(xn−1+2xn−1)x_n = \frac{1}{2}\left(x_{n-1} + \frac{2}{x_{n-1}}\right). Starting at x0=1x_0 = 1 gives 1.51.5, then 1712≈1.41667\frac{17}{12} \approx 1.41667, already correct to three decimals. Recursion is also the only known description for some sequences. The Collatz rule (halve an even number, triple an odd number and add 11) has no known explicit formula, so the recursive rule is all there is.

Quick check

A balance follows B0=500B_0 = 500 and Bn=1.1Bn−1−50B_n = 1.1B_{n-1} - 50. Find B2B_2.

How to check a recursive formula answer

Run these checks before moving on:

  • Confirm the seed is stated and its index matches the first term you were given.
  • Generate the first three terms from your rule and compare them with the original list.
  • If you converted to an explicit formula, test n=1n = 1 and n=2n = 2 in it.
  • Look at the shape: ∣r∣>1|r| > 1 should blow up, ∣r∣<1|r| < 1 should shrink toward a limit, and a negative rr should alternate signs.

The index is the quiet trap. A rule an=an−1+da_n = a_{n-1} + d is only valid from n=2n = 2, since a0a_0 does not exist when the sequence starts at a1a_1. If the answer key says n≥3n \ge 3, the sequence started with two seeds. Writing the range explicitly makes your meaning unambiguous.

A strong final check is to compute one distant term two ways. If the recursion says a8=3071a_8 = 3071 at the end of a long chain and the explicit formula agrees, both are almost certainly right. For more drills on the pattern types above, use the arithmetic sequence practice problems.

Practice problems

0 of 5 solved

  1. A sequence has a1=4a_1 = 4 and an=an−1+6a_n = a_{n-1} + 6. Find a5a_5.

  2. Write a recursive formula for 81,27,9,3,…81, 27, 9, 3, \dots

  3. A sequence has a1=2a_1 = 2 and an=−3an−1+1a_n = -3a_{n-1} + 1. Find a4a_4.

  4. Given a1=7a_1 = 7 and an=an−1−5a_n = a_{n-1} - 5, write an explicit formula and find a30a_{30}.

  5. Given a1=3a_1 = 3 and an=2an−1−1a_n = 2a_{n-1} - 1, find an explicit formula for ana_n.

Common questions

What is the recursive formula for an arithmetic sequence?

It is a1=a_1 = first term and an=an−1+da_n = a_{n-1} + d for n≥2n \ge 2, where dd is the common difference. Each term is the previous term plus dd.

What is the recursive formula for a geometric sequence?

It is a1=a_1 = first term and an=r⋅an−1a_n = r \cdot a_{n-1} for n≥2n \ge 2, where rr is the common ratio. Each term is the previous term times rr.

What is the difference between a recursive and an explicit formula?

A recursive formula builds each term from earlier terms and needs a starting value. An explicit formula uses only the position nn, so it jumps straight to any term, such as a100a_{100}.

Why does a recursive formula need a first term?

The rule only says how to step from one term to the next. Without a seed such as a1=3a_1 = 3, many different sequences fit the same rule, so the answer is not unique.

What does an−1a_{n-1} mean?

It is the term immediately before ana_n. If n=6n = 6, then an−1a_{n-1} is a5a_5, the fifth term.

Can every sequence be written with a recursive formula?

Any sequence built step by step can be, but some have no simple explicit formula. The Collatz sequence is a famous case where only the recursive rule is known.

Up next