I am stuck on a question, I'm not sure if I'm going about it correctly. The question: Suppose $a_0, a_1, a_2, \ldots$ is a sequence such that $a_0 = a_1 = 1$ and, for $n \ge 2$, $a_{n+1} = n(a_n + a_{n-1})$.
For the sequence I determined that: $a_0 = 1, a_1 = 1, a_2 = 2, a_3 = 6, a_4 = 24$ and $a_5 = 120$.
I am trying to guess the non-recursive formula for this problem, but I am lost. I know it should be easy, but is there a method or strategy that I should use to narrow down my formula or is it complete guesswork?
Similar to larry01's answer, but I prove $$a_n=n\cdot a_{n-1}$$ by induction
For $n=1$ and $n=2$, the claim is true.
Suppose, the claim is true for $n$ and $n+1$
We have $$a_{n+2}=(n+1)(a_{n+1}+a_n)=(n+1)((n+1)a_n+a_n)=(n+2)(n+1)a_n=(n+2)a_{n+1}$$
Using the recurrence relation $a_1=1$ , $a_n=n\cdot a_{n-1}$ it is easy to guess that $a_n=n!$