# Inhomogenous recurrence relations

Would someone be able to point me to a good resource explaining step by step the process for solving inhomogenous recurrence relations? (ie something of the form $a_n = \sum{{b_i}{a_{n-i}}} + f(n)$ )

-

One standard method is generating functions. Set $A(t)=\sum_{n=0}^\infty a_n t^n$ and $B(t)=\sum_{i=1}^\infty b_i t^i$. Then $$A(t)=a_0+B(t)A(t)+\sum_n f(n)t^n$$ so that $$A(t)=(1-B(t))^{-1}\left(a_0+\sum_n f(n)t^n\right).$$ For an excellent text on generating functions, see Herb Wilf's generatingfunctionology: http://www.math.upenn.edu/~wilf/DownldGF.html .