I have trouble to change this recurrence sequence $a_{n+1} = 2na_n + n(n-1)a_{n-1}$
into explicit form of sequence.
See number 25 for its problem and 26 for the similar problem
I have an attempt to divide each side of the equation by $n$, $n-1$, $n+1$, or other combinations of them, but seems no avail. Please at least help me change the sequence form into explicit one. The main question actually is not that, I need to find the generating function of that sequence :) but it's okay for me to solve it by myself later.
Note that the linked problem does not ask for an explicit generating function, but rather a differential equation that the g.f. satisfies.
If we set $A(x)=\sum a_n x^n$, then we can differentiate term-by-term to get $A'(x)=\sum a_n n x^{n-1}$. Doing it again, we get $A''(x)=\sum a_n n(n-1) x^{n-2}$. We could then compute $$2xA'(x)+x^2A''(x)=\sum (2na_n+n(n-1)a_n)x^n$$
Unfortunately, the RHS isn't $A(x)$, as we have $n(n-1)a_n$ rather than $n(n-1)a_{n-1}$, so we need a different LHS instead. Fortunately, this question is multiple choice, so you don't need to look far.