MethodMath
DA
May 16, 2026

How to solve recurrence relations using generating functions?

I'm trying to solve recurrences like:

an=5an16an2,a0=1,a1=2a_n = 5a_{n-1} - 6a_{n-2}, \quad a_0 = 1, a_1 = 2

I can solve this using the characteristic equation method, but I want to learn the generating functions approach.

Define G(x)=n=0anxnG(x) = \sum_{n=0}^{\infty} a_n x^n. Then:

n=2anxn=5n=2an1xn6n=2an2xn\sum_{n=2}^{\infty} a_n x^n = 5\sum_{n=2}^{\infty} a_{n-1}x^n - 6\sum_{n=2}^{\infty} a_{n-2}x^n

How do I manipulate these sums to get a closed form for G(x)G(x), and then extract an explicit formula for ana_n?

0 answers338 views
Loading comments...

0 Answers

No answers yet. Be the first to answer!
Login or Register to post an answer