I have the following recurrence relation that I am trying to solve: $a_0 = 1$
$$ a_n = \sum_{i = 0}^{n-1} (i+1)a_i$$
for $ n \geq 1$. Let's define $A(x) = \sum_{n= 0}^\infty a_nx^n$, so multiplying the recurrence above by $x^n$ and summing over $n \geq 1$ we get the following $$ A(x) - a_0= \sum_{n \geq 1} \left(\sum_{i = 0}^{n-1} (i+1)a_i\right) x^n$$ and I am quite stuck on how to continue from here, now I know that $$ \frac{xA(x)}{1-x} = \sum_{n \geq 1} \left(\sum_{i = 0}^{n-1} a_i\right) x^n $$ but I'm stuck on how to evaluate the expression with the $i+1$, may anyone point me in the right direction?
Continuing this approach yields \begin{align} A(x)-a_0&=\sum_{n=1}^\infty \left(\sum_{i = 0}^{n-1} (i+1)a_i\right) x^n\\ &= \sum_{i=0}^\infty (i+1)a_i \sum_{n=i+1}^\infty x^n \\ &= \sum_{i=0}^\infty (i+1)a_i \frac{x^{i+1}}{1-x} \\ &= \frac{x}{1-x} \sum_{i=0}^\infty (i+1)a_i x^i \\ &= \frac{x}{1-x}\cdot \frac{d}{dx} \sum_{i=0}^\infty a_i x^{i+1} \\ &= \frac{x}{1-x}\cdot \frac{d}{dx} (x A(x)) \\ &= \frac{x}{1-x} (x A'(x)+A(x)). \end{align} So $$A(x)= \frac{1-x+x^2 A'(x)}{1-2x}.$$ But solving this differential equation doesn't look straightforward.
Let's instead obtain a simpler recurrence. We have $a_0=1$ and $a_1=(0+1)a_0=1$. For $n \ge 2$, $$a_n=\sum_{i=0}^{n-1} (i+1)a_i=\sum_{i=0}^{n-2} (i+1)a_i+n a_{n-1}= a_{n-1}+n a_{n-1}=(n+1) a_{n-1}.$$ Iterating yields $$a_n = (n+1) a_{n-1} = (n+1)n a_{n-2}=(n+1)n(n-1)\cdots 3 a_1 = \frac{(n+1)!}{2}$$ for $n \ge 2$, and this formula also works for $n=1$.