OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
O.g.f.: x*(1 + 52*x + 163*x^2) / (1 - x)^4.
a(n) = 46*n - 81*n^2 + 36*n^3.
a(n) = [x^n] (x + 52*x^2 + 163*x^3) / (1 - x)^4.
MAPLE
a := n -> 46*n - 81*n^2 + 36*n^3: seq(a(n), n=0..35);
MATHEMATICA
Table[46 n - 81 n^2 + 36 n^3, {n, 0, 40}] (* Bruno Berselli, Jun 06 2017 *)
LinearRecurrence[{4, -6, 4, -1}, {0, 1, 56, 381}, 40] (* Harvey P. Dale, Aug 20 2017 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Peter Luschny, Jun 01 2017
STATUS
approved