It is given that $a_{n+1}=(n+1)a_n+2(n+1)!$ where $n>0$ and and $a_0=0$ , so find the explicit formula for $a_n$.
I tried to use exponential generating functions such that , lets say $A(x)= \sum_{n=0}^{\infty}a_n\frac{x^n}{n!}=(e^x-1)$ ,because $a_0=0$ .Then:
$$a_{n+1}=\frac{n(A(x)-a_0)}{x}=\frac{nA(x)}{x}$$
$$(n+1)a_n=nA(x)+A(x)$$
$$2(n+1)!=2(n+1)\sum_{n=0}^{\infty}x^n=\frac{2n+2}{1-x}$$
As a result , i found that $$\frac{nA(x)}{x}=nA(x)+A(x)+\frac{2n+2}{1-x}$$
However , i could not take the $A(x)$ from the foregoing expression(i.e it does not provide an answer).I guess i am making a silly error but i stuck. So , can you help me to solve this recurrence relation using generating functions ?You do not have to follow my way , other methodds are also acceptable. Thanks in advance !!