OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
From Chai Wah Wu, Apr 25 2017: (Start)
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n > 3.
G.f.: 2*x*(x^2 + 5*x + 3)/(x - 1)^4. (End)
MAPLE
a:=n->n+2*n^2+3*n^3: seq(a(n), n=0..36); # Zerinvary Lajos, Oct 05 2007
MATHEMATICA
Table[3*n^3+2*n^2+n, {n, 0, 80}] (* Vladimir Joseph Stephan Orlovsky, May 07 2011 *)
LinearRecurrence[{4, -6, 4, -1}, {0, 6, 34, 102}, 40] (* Harvey P. Dale, Oct 01 2019 *)
PROG
(Magma) [3*n^3 + 2*n^2 + n: n in [0..60]]; // Vincenzo Librandi, May 08 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
George E. Antoniou, Jan 21 2002
EXTENSIONS
More terms from Henry Bottomley, Jan 25 2002
STATUS
approved