OFFSET
0,2
COMMENTS
Row sums of triangle A155156.
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
G.f.: -2*x*(1+x)*(x-4)/(x-1)^4.
a(n) = 4*a(n-1) -6*a(n-2) +4*a(n-3) -a(n-4).
a(n) = -n*A168244(n+2). - Bruno Berselli, Feb 02 2012
E.g.f.: x*(8 + 11*x + 2*x^2)*exp(x). - G. C. Greubel, Aug 05 2017
MATHEMATICA
Table[n(2n^2+5n+1), {n, 0, 40}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {0, 8, 38, 102}, 40] (* Harvey P. Dale, Feb 02 2012 *)
PROG
(PARI) for(n=0, 40, print1(n*(2*n^2+5*n+1)", ")); \\ Vincenzo Librandi, Feb 22 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Aug 05 2009
EXTENSIONS
Edited by R. J. Mathar, Aug 05 2009
STATUS
approved