Discrete Mathematics / Counting and structure
Recurrence Relations
Sequences defined by their own earlier terms, from Fibonacci to the Tower of Hanoi, and how to solve them.
Contents 3 sections
By the end you can
- Write recurrences for counting problems
- Solve linear homogeneous recurrences with constant coefficients
- Recognise exponential growth from a characteristic root
Helps to know: Proof Techniques and Induction, Counting: Permutations and Combinations
§1Defining by recursion
The Tower of Hanoi moves disks by moving aside, moving the largest, then moving back on top: with . Unrolling gives .
§2The characteristic equation
For , guess . Dividing out gives . With distinct roots , the general solution is , and the initial values fix and .
Check yourself
- Q1If and , then
- Q2The characteristic equation of has roots…