Recurrence relations · Year 13

In Year 13 you learn: recurrence relations.

A recurrence relation defines each term of a sequence from the ones before it. Examples are “add interest, then add a deposit” or “each pair of rabbits produces another pair”. Solving one gives a formula for the nth term, so you can jump straight to the 100th term.

Key facts

  • First order uₙ₊₁ = auₙ + b (a ≠ 1): the fixed point is L = b/(1 − a) and the solution is uₙ = a^n(u₀ − L) + L.
  • It converges to L exactly when |a| < 1 (unless it starts at L).
  • Second order uₙ₊₂ = puₙ₊₁ + quₙ: the auxiliary equation is r^2 = pr + q.
  • Distinct roots α and β: uₙ = Aαⁿ + Bβⁿ. A repeated root α: uₙ = (A + Bn)αⁿ. Use the first two terms to find A and B.
  • Arithmetic (uₙ₊₁ = uₙ + d) and geometric (uₙ₊₁ = ruₙ) sequences are the simplest recurrences.
  • Counting problems give recurrences: climbing stairs 1 or 2 at a time gives the Fibonacci numbers.

Worked examples

Example 1

uₙ₊₁ = 3uₙ − 4 with u₀ = 5. Find u₁, u₂, u₃ and a formula for uₙ.

Answer: u₁ = 11, u₂ = 29, u₃ = 83, uₙ = 3ⁿ⁺¹ + 2

Example 2

A savings account starts with £1,000. Each year 5% interest is added and then £100 is withdrawn. Find a formula for the balance and the balance after 10 years.

Answer: Bₙ = 2,000 − 1,000 × 1.05ⁿ, about £371.11

Example 3

Solve uₙ₊₂ = uₙ₊₁ + 6uₙ with u₀ = 3 and u₁ = 4.

Answer: uₙ = 2 × 3ⁿ + (−2)ⁿ

Example 4

uₙ₊₁ = 2uₙ + 1 with u₀ = 1. Find u₃.

Answer: 15