Recursive Formula

A recursive formula defines each term using the previous one, helping you find patterns and generate sequences step-by-step.

an=f(an1),a1 givena_n = f(a_{n-1}), \quad a_1 \text{ given}

Solve a problem with Recursive Formula

Type the problem. The solver will use Recursive Formula where Recursive Formula is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Recursive Formula takes
ana_n
a1a_1
ff
nn
Recursive Formula
SymbolMeaning
ana_nThe nn-th term of the sequence—the term you want to find at position nn.
a1a_1The first term, given as the starting point; without this, you would not know where the sequence begins.
ffThe function that defines the relationship, telling you how to calculate the next term from the current one.
nnThe position or index in the sequence, indicating which term you are looking for; nn must be a positive integer.

When to use it

When you know how each term relates to the one before it and want to build a sequence step by step.

Level

Usually taught in: Algebra II

Worked examples

1. Find the first four terms with a simple linear rule

Problem

Find the first 4 terms of the sequence defined by an=2an1+1a_n = 2a_{n-1} + 1 with a1=3a_1 = 3.
  1. a1=3a_1 = 3

    Start with the given initial term.

  2. a2=2a1+1=2(3)+1=7a_2 = 2a_1 + 1 = 2(3) + 1 = 7

    Apply the recursion formula with n=2n = 2: substitute a1=3a_1 = 3 into an=2an1+1a_n = 2a_{n-1} + 1.

  3. a3=2a2+1=2(7)+1=15a_3 = 2a_2 + 1 = 2(7) + 1 = 15

    Apply the formula with n=3n = 3: substitute a2=7a_2 = 7 into the recursion.

  4. a4=2a3+1=2(15)+1=31a_4 = 2a_3 + 1 = 2(15) + 1 = 31

    Apply the formula with n=4n = 4: substitute a3=15a_3 = 15 into the recursion.

Answer: a1=3,a2=7,a3=15,a4=31a_1 = 3, \quad a_2 = 7, \quad a_3 = 15, \quad a_4 = 31

A recursive formula works like a chain: each new term depends only on the previous one. We start with a1=3a_1 = 3 and apply the rule an=2an1+1a_n = 2a_{n-1} + 1 four times. This is the only way to find the sequence—you cannot jump to a4a_4 without computing a2a_2 and a3a_3 first.

2. Work with fractions and negative values

Problem

Find the first 4 terms of an=12an12a_n = \frac{1}{2}a_{n-1} - 2 with a1=8a_1 = 8.
  1. a1=8a_1 = 8

    Start with the given initial term.

  2. a2=12a12=12(8)2=42=2a_2 = \frac{1}{2}a_1 - 2 = \frac{1}{2}(8) - 2 = 4 - 2 = 2

    Substitute a1=8a_1 = 8 into an=12an12a_n = \frac{1}{2}a_{n-1} - 2.

  3. a3=12a22=12(2)2=12=1a_3 = \frac{1}{2}a_2 - 2 = \frac{1}{2}(2) - 2 = 1 - 2 = -1

    Substitute a2=2a_2 = 2 into the recursion; the result is negative because we subtracted more than we started with.

  4. a4=12a32=12(1)2=122=52a_4 = \frac{1}{2}a_3 - 2 = \frac{1}{2}(-1) - 2 = -\frac{1}{2} - 2 = -\frac{5}{2}

    Substitute a3=1a_3 = -1 into the recursion; negative values propagate through the sequence.

Answer: a1=8,a2=2,a3=1,a4=52a_1 = 8, \quad a_2 = 2, \quad a_3 = -1, \quad a_4 = -\frac{5}{2}

Recursive formulas work even when the sequence becomes negative or involves fractions. Each term is still calculated from the previous one, following the same rule. The key is to do each calculation carefully, especially when fractions and negative signs are involved.

3. Calculate compound growth in a savings account

Problem

You deposit $1000 in a savings account that earns 5% interest each year. Write a recursive formula for the balance ana_n after nn years, and find the balance after 3 years.
  1. an=an1+0.05an1=1.05an1a_n = a_{n-1} + 0.05 \cdot a_{n-1} = 1.05 \cdot a_{n-1}

    Each year, the new balance is the old balance plus 5% of the old balance, which simplifies to multiplying by 1.05.

  2. a0=1000a_0 = 1000

    The initial deposit (at year 0) is $1000. We use a0a_0 as the starting value because we measure time in years elapsed.

  3. a1=1.05a0=1.051000=1050a_1 = 1.05 \cdot a_0 = 1.05 \cdot 1000 = 1050

    After 1 year, the balance grows by 5%; you earn $50 in interest.

  4. a2=1.05a1=1.051050=1102.50a_2 = 1.05 \cdot a_1 = 1.05 \cdot 1050 = 1102.50

    After 2 years, apply the formula to a1a_1; you earn $52.50 in interest on the new balance.

  5. a3=1.05a2=1.051102.50=1157.625a_3 = 1.05 \cdot a_2 = 1.05 \cdot 1102.50 = 1157.625

    After 3 years, apply the formula to a2a_2; you earn $55.13 in interest.

Answer: an=1.05an1 with a0=1000;a3=$1157.63a_n = 1.05 \cdot a_{n-1} \text{ with } a_0 = 1000; \quad a_3 = \$1157.63

Recursive formulas shine in real-world situations like compound interest, where growth depends on the current amount. This recursive setup naturally captures the idea that interest is earned on interest. You must calculate each year in sequence because the interest earned in year 2 depends on the balance at the end of year 1.

Common mistakes

Where Recursive Formula usually goes wrong
Answer came out wrong
Writing an=f(an)a_n = f(a_n) instead of an=f(an1)a_n = f(a_{n-1})—using the same subscript on both sides.
Always use an1a_{n-1} on the right side of a recursive formula. The subscript should decrease by 1 to indicate the term before the one you are finding.
Forgetting to use or find a1a_1 before calculating the rest of the sequence.
Always identify and use the initial condition a1a_1 (or a0a_0 if the indexing starts there). This is the foundation of the entire sequence.
Treating the recursive formula as if you can jump directly to a100a_{100} without calculating a2,a3,,a99a_2, a_3, \ldots, a_{99} in between.
To find ana_n, calculate every term from a1a_1 up to ana_n in sequence. For large nn, use a calculator, computer, or look for a closed-form formula if one exists.
The mistakeWhy it is wrongThe fix
Writing an=f(an)a_n = f(a_n) instead of an=f(an1)a_n = f(a_{n-1})—using the same subscript on both sides.This is circular: ana_n cannot depend on itself; it must depend on the previous term an1a_{n-1}, otherwise you have no way to calculate new values.Always use an1a_{n-1} on the right side of a recursive formula. The subscript should decrease by 1 to indicate the term before the one you are finding.
Forgetting to use or find a1a_1 before calculating the rest of the sequence.The recursive formula an=f(an1)a_n = f(a_{n-1}) only tells you how to go from one term to the next; it does not tell you where to start. Without a1a_1, you cannot compute a2a_2.Always identify and use the initial condition a1a_1 (or a0a_0 if the indexing starts there). This is the foundation of the entire sequence.
Treating the recursive formula as if you can jump directly to a100a_{100} without calculating a2,a3,,a99a_2, a_3, \ldots, a_{99} in between.Recursive formulas are inherently sequential—each term builds on the previous one. There is no shortcut; you must do the steps in order.To find ana_n, calculate every term from a1a_1 up to ana_n in sequence. For large nn, use a calculator, computer, or look for a closed-form formula if one exists.

Tips and when to use something else

  • Always identify a1a_1 (or the given initial term) first—it is the seed of the entire sequence and the only place you start without using the formula.
  • Write out the first 2–3 terms by hand to verify your recursive formula is correct before calculating further.
  • If you need a shortcut for large nn, look for a closed-form (explicit) formula that does not depend on previous terms; many recursive sequences like arithmetic and geometric sequences have them.
  • Recursive formulas are perfect for modeling real-world growth, decay, and iteration—savings accounts, population dynamics, and computer algorithms often use them.

Frequently asked questions

Why do I need to know a1a_1 if the formula tells me how to find each term?
The recursive formula an=f(an1)a_n = f(a_{n-1}) only explains the relationship between consecutive terms; it is like a set of directions with no starting point. a1a_1 is the starting point. Without it, you would not know whether the sequence is 1,2,4,8,1, 2, 4, 8, \ldots or 5,10,20,40,5, 10, 20, 40, \ldots—both follow the same doubling rule but begin differently.
Can I use a recursive formula to find a1000a_{1000} without calculating all the terms in between?
Not directly. Recursive formulas require you to calculate each term in sequence because each one depends on the previous one. For large nn, you would need a computer to do the repeated calculations, or you would need to find a closed-form formula (an explicit formula for ana_n that does not use previous terms) if one exists.
What is the difference between a recursive formula and a closed-form formula?
A recursive formula defines each term using the previous term(s), like an=2an1+1a_n = 2a_{n-1} + 1. A closed-form formula gives you ana_n directly without referencing other terms, like an=32n1a_n = 3 \cdot 2^n - 1. Closed-form formulas are faster to use but harder to spot; recursive formulas are easier to set up from a real-world situation but require step-by-step calculation.
What if the problem gives me a1a_1 and a2a_2 as initial conditions?
Some sequences, especially those defined by more complex recursions, require two starting values to get going. For example, the Fibonacci sequence an=an1+an2a_n = a_{n-1} + a_{n-2} needs both a1a_1 and a2a_2 because each term depends on the two previous ones. Use both initial values and apply the formula starting from a3a_3.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18