A recurrence relation defines later terms using earlier ones. It is useful when a process naturally develops in stages: a new arrangement is built from smaller arrangements, or a current total is updated by a fixed rule.
The recurrence and its initial conditions work together. The instruction “double the previous value and add one” does not specify a sequence until a starting value is supplied.
On this page
State the rule, starting values and index range
Consider
The first values are
The rule determines each next value uniquely from the preceding one. Changing would change the sequence, even though the update formula stayed the same.
A first-order recurrence uses the immediately preceding term. A second-order recurrence may use the preceding two, so two suitable starting values are normally required. The rule must also be defined wherever it is used: division by a previous term, for example, requires checking that the term is not zero.
Unfold a recurrence before guessing a formula
For the same example, substitute earlier updates into later ones:
Continuing this structure suggests
For , the finite geometric sum is . With ,
The formula also gives . At index four it gives , agreeing with .
Initial conditions are part of a recurrence
Diagram explanation and exact data
The successive calculations are 3×2+4=10, 3×10+4=34, 3×34+4=106 and 3×106+4=322. The explicit formula 4·3^n−2 matches both the starting value and the symbolic update.
| Index n | a_n | an + 2 |
|---|---|---|
| 0 | 2 | 4 |
| 1 | 10 | 12 |
| 2 | 34 | 36 |
| 3 | 106 | 108 |
| 4 | 322 | 324 |
Unfolding exposes a repeated structure, but the ellipsis is not the final justification. Verify the resulting formula against the initial condition and recurrence.
Remove a constant term by changing variables
There is a shorter route for this example. Add two to both sides of the recurrence:
Define . Then and , so . Subtract two to recover .
Why two? The constant solution of is . Subtracting this fixed value from turns the affine recurrence into a multiplicative one. This method applies to a rule when : the fixed value is .
When , do not divide by . The recurrence is instead , an arithmetic sequence.
Verify an explicit formula
Let . First, . Next,
The candidate has the required start and produces the required next value at every step. Because the forward rule determines each term uniquely, induction shows it is the defined sequence.
Checking only , and would not establish the general statement. The symbolic recurrence check supplies the missing link.
Count tilings using two earlier terms
Let count the ways to tile a row of length n using tiles of lengths one and two. Tiles of the same length are indistinguishable, and their left-to-right order determines an arrangement.
There is one empty tiling, so . There is one tiling of length one, so . For , split the tilings according to their final tile.
If the final tile has length one, the preceding part is a tiling of length . If it has length two, the preceding part has length . The two cases are disjoint and include every tiling. Therefore
The values are for indices zero through six. A length-four row has five tilings: , , , and , where each digit denotes a tile length.
Split arrangements by the last tile
Diagram explanation and exact data
Three arrangements end in a unit tile and correspond to tilings of length three. Two end in a double tile and correspond to tilings of length two. Thus T4=T3+T2=3+2=5.
| Arrangement | Last tile | Remaining length |
|---|---|---|
| 1111 | 1 | 3 |
| 112 | 2 | 2 |
| 121 | 1 | 3 |
| 211 | 1 | 3 |
| 22 | 2 | 2 |
The starting value counts a completed empty arrangement. It is not a claim that an empty row contains one physical tile. This convention allows a final length-two tile to follow the empty arrangement when calculating .
Solve a simple second-order linear recurrence
Consider
Try a non-zero exponential form . Substitution reduces the condition to
Both and satisfy the recurrence. Because the recurrence is linear and homogeneous, any expression also satisfies it. The starting values require
Subtract twice the first equation from the second to obtain , then . Thus
It gives and . Direct substitution verifies the rule for every , and the two initial conditions determine the sequence uniquely. We do not need to assume that trying exponentials solves every possible recurrence. Repeated characteristic roots and nonlinear recurrences require different treatment.
Distinguish modelling from calculation
A recurrence used in an application must define what its terms count or measure, and why the update rule applies. The tiling recurrence follows from an exhaustive split of arrangements. An update such as is a stipulated mathematical process unless a context independently justifies tripling and adding four.
For computation, store the previous two values when generating a second-order sequence in order. Recursively recalculating both branches of the tiling formula from scratch repeats the same subproblems many times. Reusing already calculated terms gives the same mathematical result with far less work.
An explicit formula is useful for distant terms and proof, but a recurrence is not an inferior answer. It may express the construction more clearly and avoid complicated formulas that are harder to interpret.
Practice questions
- With and , calculate by one update from and by the explicit formula.
- How many length-five tilings use tiles of lengths one and two under the lesson’s rules?
- For with , calculate in two ways.
Check your answers
- The update gives . The explicit rule gives .
- . The five cases ending in a unit tile and three ending in a length-two tile are disjoint.
- Using and , the recurrence gives . The formula gives .
Related topics
Mathematical Induction verifies recursively generated claims. Combinatorics explains how counting arguments produce recurrences, and Sequences and Sequence Limits studies their long-run behaviour where a limit is relevant.
