Consider the sequence:
$0,1,5,12,22,35,51,70,92,117,145,176,\ldots$
Find both a recurrence and a closed form for this sequence.
I've done some research and found out that the majority of these (except 0) are "pentagonal numbers." We haven't learned about these yet, but further research did allow me to find a formula:
$A_n = ((3n^2)-n)/2$
That is the closed form for this sequence, correct? Could someone possibly lead me as to how to get to that equation?
In terms of a recurrence, I'm somewhat lost.
Let $Sa_n=a_{n+1}$, then we can compute from the table that $(S-1)^3a_n=0$. The solution for this Linear Recurrence Relation is of the form $$ a_n=bn^2+cn+d\tag{1} $$ Using the known values for $n=0,1,2$, we get $$ \begin{align} 0&=d\\ 1&=b+c+d\\ 5&=4b+2c+d \end{align}\tag{2} $$ Solving $(2)$ and substituting into $(1)$ gives $$ \begin{align} a_n &=\frac32n^2-\frac12n\\ &=\frac{(3n-1)n}2\tag{3} \end{align} $$