OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5, -10, 10, -5, 1).
FORMULA
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5); a(0)=0, a(1)=3, a(2)=26, a(3)=111, a(4)=324. - Harvey P. Dale, Apr 25 2015
MATHEMATICA
Table[n^4+n^3+n, {n, 0, 40}] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {0, 3, 26, 111, 324}, 40] (* Harvey P. Dale, Apr 25 2015 *)
PROG
(Magma) [n^4+n^3+n: n in [0..50]]; // Vincenzo Librandi, Jun 09 2011
(PARI) a(n)=n^4+n^3+n \\ Charles R Greathouse IV, Oct 21 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Douglas Winston (douglas.winston(AT)srupc.com), Nov 30 2004
STATUS
approved