The question is to solve the following recurrence:

With
. I am trying to use generating functions to solve this recurrence. I am aware that there are other ways to solve it (one way is to simply expand it and get the answer), but I want to practice using generating functions.
I provided my work in the spoiler tags below. The images are huge so my apologies for that. I suppose my writing is pretty small, so at least it's clear to read.
The idea is to set up the generating function by multiplying both sides by x^n and summing that from n = 1 to infinity. Let f(x) be defined as this generating function and rewrite the recursion in terms of f(x). Then I tried to rewrite f(x) as a generating function and then equate the coefficients.
In the process of rewriting the generating function, I used partial fraction decomposition and the generalised binomial theorem. I relied on the fact that
^k%20=%20\binom{p+k-1}{k})
And then obtained a solution that does not agree with the initial conditions. Where did I go wrong? Please and thank you (:
EDIT: I know that the correct answer is:
With
I provided my work in the spoiler tags below. The images are huge so my apologies for that. I suppose my writing is pretty small, so at least it's clear to read.
The idea is to set up the generating function by multiplying both sides by x^n and summing that from n = 1 to infinity. Let f(x) be defined as this generating function and rewrite the recursion in terms of f(x). Then I tried to rewrite f(x) as a generating function and then equate the coefficients.
In the process of rewriting the generating function, I used partial fraction decomposition and the generalised binomial theorem. I relied on the fact that
And then obtained a solution that does not agree with the initial conditions. Where did I go wrong? Please and thank you (:
EDIT: I know that the correct answer is:




Comment