Find the explicit formula for the numbers $a_n$ if $a_0=0$ and $$a_{n+1}=(n+1)a_n+2(n+1)!. \quad n\gt 0$$
As it is suggested by @dxiv:
$\;\dfrac{a_{n+1}}{(n+1)!}=\dfrac{a_n}{n!}+2\,$
My attempt:
Let $$F(x)=\sum_{n\geq 0} \frac{a_nx^n}{n!}=a_1x+\frac{a_2x^2}{2!}+\cdots$$
Multiply both sides of the recurrence relation by $x^{n+1}$ and sum over all natural numbers $n$ to get
$$\sum_{n\geq 0}\frac{a_{n+1}x^{n+1}}{(n+1)!}=\sum_{n\geq 0}\frac{a_nx^{n+1}}{n!}+\sum_{n\geq 0}2x^{n+1} \tag{*}\\
\sum_{n\geq 0}\frac{a_{n+1}x^{n+1}}{(n+1)!}=a_1x+a_2x^2+\cdots=F(x) \\ \sum_{n\geq 0}\frac{a_nx^{n+1}}{n!}=xF(x) \\ \sum_{n\geq 0}2x^{n+1}=\frac {2x} {1-x}$$
Then $(*)$ becomes $$F(x)=xF(x)+\frac {2x} {1-x} \\ F(x)=\frac {2x}{(1-x)^2}$$