OFFSET
0,2
LINKS
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); a(0)=0, a(1)=6, a(2)=30, a(3)=90. - Harvey P. Dale, Mar 19 2013
From Elmo R. Oliveira, May 22 2026: (Start)
G.f.: 6*x*(1 + x + x^2)/(1 - x)^4.
E.g.f.: 3*x*(x + 1)*(x + 2)*exp(x).
a(n) = A008530(n)/2 for n > 0. (End)
MAPLE
[seq (3*n^3+3*n, n=0..60)];
MATHEMATICA
Table[3n^3+3n, {n, 0, 40}] (* Harvey P. Dale, Mar 19 2013 *)
(* Alternative: *)
LinearRecurrence[{4, -6, 4, -1}, {0, 6, 30, 90}, 40] (* Harvey P. Dale, Mar 19 2013 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Zerinvary Lajos, May 28 2006
EXTENSIONS
More terms from Elmo R. Oliveira, May 22 2026
STATUS
approved
