Recurrences and arithmetic · Definition
Homogeneous linear recurrence
Before you start you need to know
This is the family of recurrences that a polynomial equation solves completely, and the Fibonacci sequence is its best-known example.
Definition
A homogeneous linear recurrence of order \(k\) expresses each term \(a_n\) as a combination of the previous \(k\) terms with constant coefficients \(c_1,\dots,c_k\), with no independent term.
Trying the solution \(a_n=r^n\) turns the recurrence into an algebraic equation: dividing by \(r^{n-k}\) leaves the characteristic equation \(r^k=c_1r^{k-1}+\cdots+c_k\). For \(a_n=5a_{n-1}-6a_{n-2}\) it gives \(r^2-5r+6=0\), with roots 2 and 3, so \(2^n\) and \(3^n\) are solutions.
Because the equation is linear, every combination of solutions is again a solution. If the roots are distinct, the general solution is \(a_n=\alpha_1r_1^n+\cdots+\alpha_kr_k^n\); a root \(r\) repeated \(m\) times contributes \((\alpha_0+\alpha_1n+\cdots+\alpha_{m-1}n^{m-1})r^n\); and complex roots give oscillating sequences, like those of \(a_n=-a_{n-2}\). The \(k\) coefficients are fixed by the \(k\) initial values by solving a linear system.
With \(a_0=1\) and \(a_1=5\) the recurrence above gives \(a_n=3^{n+1}-2^{n+1}\), so \(a_{10}\) is obtained without computing the nine previous terms. For Fibonacci the roots are \(\tfrac{1\pm\sqrt5}{2}\), which leads to Binet's formula. A common mistake is to forget the double root: \(2^n\) and \(n2^n\) are independent solutions, and using only \(2^n\) cannot meet two initial values.
Think about it
Why does the recurrence \(a_n=a_{n-1}+2\) not fit this method?
Because it has an independent term (it is not homogeneous): the sum of two solutions is no longer a solution. It is solved by adding a particular solution to the homogeneous one.
A recurrence of order 3 has characteristic equation \((r-1)^2(r+2)=0\). What is its general solution?
\(a_n=\alpha+\beta n+\gamma(-2)^n\): the double root 1 contributes two terms and the simple root −2 one, three constants in all.
Exercises 10
- Which of these is a homogeneous linear recurrence with constant coefficients?
- What is the order of \(a_n=5a_{n-1}-6a_{n-3}\)?
- What are the roots of the characteristic equation of \(a_n=5a_{n-1}-6a_{n-2}\)?
- What is the characteristic equation of the Fibonacci sequence \(a_n=a_{n-1}+a_{n-2}\)?
- If \(a_n=2a_{n-1}+3a_{n-2}\), \(a_0=1\) and \(a_1=2\), what is \(a_5\)?
- If \(a_n=-a_{n-2}\), \(a_0=1\) and \(a_1=0\), what is \(a_{10}\)?
- How many initial values determine a unique solution of a homogeneous linear recurrence of order 4?
- Solve \(a_n=5a_{n-1}-6a_{n-2}\) with \(a_0=1\) and \(a_1=5\).
- Solve \(a_n=4a_{n-1}-4a_{n-2}\) with \(a_0=1\) and \(a_1=0\).
- Which statement about solutions of a homogeneous linear recurrence is true?
References
- Kenneth H. Rosen, Discrete Mathematics and Its Applications, 8th edition, McGraw-Hill, 2019. §8.2
- Ralph P. Grimaldi, Discrete and Combinatorial Mathematics: An Applied Introduction, 5th edition, Pearson, 2003. §10.3