My task is to find formula for generating function of sequence $a_0, a_1...$ defined with following recurence $a_0=1$ and $a_n=\sum_{i=0}^{n-1} (n-i)a_i$.
I rewrote the expression $a_n=\sum_{i=0}^{n-1} (n-i)a_i=n+(n-1)a_1+(n-2)a_2+...+a_{n-1}$ and I counted few members of sequence $a_1=1,a_2=3,a_3=8,a_4=21$ etc.
There are two answears below-wchich one i correct? Is there any way how to do some backward examination to show that it gives correct solution?