INAIO Guide Stage 1 4Sequences and Recurrences
4.3 Recurrence relations
Model a step-by-step problem with starting values and a rule that builds each new value from earlier ones.
Many problems happen in steps. A balance changes each month; a population changes each year; the number of ways to solve a size- problem may depend on the answers for smaller sizes. A recurrence relation is an equation that describes a value using one or more earlier values. It gives us a way to model such a process or solve a problem by building its answer step by step.
Recurrences appear throughout mathematics, from sequences and counting to algorithms, probability, and growth models. This is foundational to intermediate work built on sequences and equations. OpenStax's sequence lesson is a place to practise both recurrence rules and direct formulas.
A basic idea: start, update, repeat
Suppose a collection starts with objects and gains after every round. Let mean its size after rounds. The starting value is . The rule for the next round is
Here is the current value and is the next one. The rule says to take the current size and add . Starting from , it produces , , and . Those values form a sequence: .
A recurrence needs both a starting value and an update rule. The rule by itself could also produce if it started at . The starting value is called an initial condition. If the rule uses two earlier values, it may need two initial conditions. The index tells us which value is the start and when each update applies.
To set up a recurrence in a new problem, ask three questions: What quantity am I tracking? What is known at the start? How does one step change it? For a counting problem, the last question can become: how can an answer for a larger case be assembled from answers for smaller cases?
A quick tour of recurrences
The example above uses one previous value. In general, we can write
Here stands for the operation that turns the current value into the next one. To unroll the recurrence, apply that operation repeatedly: , , and so on. Write each step in order, using the new value only after it has been calculated.
Two familiar cases are , which gives , and , which gives . The formula for is an explicit rule: it finds a term directly from its index. The recurrence is a recursive rule: it finds that term from earlier terms. For the opening example, the explicit rule is . Both describe the same sequence, but a recurrence can be easier to write when the process itself is step by step.
The update can be more varied than adding or multiplying. For example, combines both operations; also depends on the round number. Neither is covered by the simple arithmetic or geometric formula without further work.
For two previous terms, a rule can look like
Compute in increasing index order so that both inputs already exist. In applied models, check whether the update could give an impossible value, such as a negative item count, and stop or revise the model when its assumptions fail.
Application 1: a balance after interest and payment
A balance starts at units. At the end of each period, it first grows by and then a payment of units is made. What are the next three balances?
- Write the order of operations. Interest multiplies the old balance by , then payment subtracts : .
- Update three times. ; ; .
- Check the interpretation. The rule applies while the payment is possible. If a later update would make the balance negative, a real payment plan would instead finish at zero; the simple recurrence would no longer describe it.
Adding after subtracting would be a different model.
Application 2: climbing a short staircase
You may climb either one or two steps at a time. How many different step sequences reach the top of a four-step staircase?
- Name the count. Let be the number of ways to reach step . There is one way to stand at step (do nothing), so ; .
- Split by the last move. A path to step ends with a one-step move from or a two-step move from . These cases are separate, so .
- Calculate. , , and . The five sequences are , , , , and , where each digit is a move length.
The recurrence counts a large staircase without listing every path.
Resources
| Source | Title | Why read it |
|---|---|---|
| OpenStax | Sequences and their notations | Compare recursive and explicit formulas. |
Finished this module? Mark it done.
Comments
Stuck on something, spotted a mistake, or found a resource that helped you? Tell us below.
Loading comments