I'm trying to find an explicit formula for the following recurrence relation:
$a_0 = 1$, $\forall n \ge 1: a_n = n^3a_{n-1} + (n!)^3$
So far though, my attempts have been unsuccessful.
My Attempt
Let $A(x) = a_n\frac{x^n}{(n!)^3}$. Multiply by $\frac{x^n}{(n!)^3}$ and sum over $n$ to get:
$$\sum_{n=1}^{\infty}{a_n\frac{x^n}{(n!)^3}} = \sum_{n=1}^{\infty}{a_{n-1}\frac{x^n}{(n-1!)^3}} + \sum_{n=1}^{\infty}{x^n}$$
This can be simplified to:
$$ A(x) - a_0 = xA(x) + \frac{1}{1-x} \\ \implies A(x) = \frac{2-x}{(1-x)^2}$$
Using partial fraction decomposition you recover that $A(x) = \frac{1}{(1-x)} + \frac{1}{(1-x)^2}$, which means that $$A(x) = \sum_{n=0}^{\infty}{x^n} + \sum_{n=0}^{\infty}{(n+1)x^n} \\ \implies A(x) = \sum_{n=0}^{\infty}{(n+2)x^n}$$
Then, to put $A(x)$ back into the form that we defined it in in the beginning, we have: $$A(x) = \sum_{n=0}^{\infty}{(n+2)(n!)^3\frac{x^n}{(n!)^3}} \\ \implies a_n = (n+2)(n!)^3$$
I'm wonderring if anyone can provide some insight into where I could have gone wrong. Is the original definition of $A(x)$ valid, or must I stick to either an ordinary / exponential generating function? If so, how could I clear the variable terms in the recurrence?
Hint: Divide by $(n!)^3$ and define $\displaystyle b_n=\frac{a_n}{(n!)^3}$ to get $$ b_n =b_{n-1}+1. $$