OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..10000
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). - Colin Barker, Aug 29 2014
G.f.: (1 - x + 7*x^2 - x^3)/(1-x)^4. - Colin Barker, Aug 29 2014
MAPLE
with(combinat): seq(fibonacci(3, n)+n^3, n=0..40); # Zerinvary Lajos, May 25 2008
MATHEMATICA
Table[n^3+n^2+1, {n, 0, 100}] (* Vladimir Joseph Stephan Orlovsky, Mar 09 2011 *)
PROG
(Magma) [(n^3+n^2+1): n in [1..60]]; // Vincenzo Librandi, Apr 06 2011
(PARI) Vec(-(x^3-7*x^2+x-1)/(x-1)^4 + O(x^100)) \\ Colin Barker, Aug 29 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Douglas Winston (douglas.winston(AT)srupc.com), Oct 26 2004
STATUS
approved