OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n)= +4*a(n-1) -6*a(n-2) +4*a(n-3) -a(n-4). G.f.: x*(6-2*x+x^2)/(x-1)^4. - R. J. Mathar, Jun 21 2010
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {0, 6, 22, 53}, 50] (* Harvey P. Dale, May 27 2012 *)
PROG
(PARI) a(n)=(5/6)*n^3+(5/2)*n^2+(8/3)*n \\ Charles R Greathouse IV, Oct 18 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 02 2004
STATUS
approved