OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (20,-175,878,-2779,5744,-7737,6534,-3132,648).
FORMULA
a(n) = n + n*(n-1)*2^(n-2) + n*(n-1)*(n-2)*3^(n-3). - Ralf Stephan, Mar 24 2004
MATHEMATICA
With[{nn=30}, CoefficientList[Series[1+x Exp[x]+x^2 Exp[2x]+x^3 Exp[3x], {x, 0, nn}], x] Range[0, nn]!] (* or *) LinearRecurrence[{20, -175, 878, -2779, 5744, -7737, 6534, -3132, 648}, {1, 1, 4, 21, 124, 705, 3726, 18361, 85240, 376641}, 30] (* Harvey P. Dale, Mar 29 2016 *)
PROG
(Magma) [1], [(n+1) + n*(n+1)*2^(n-1) + n*(n+1)*(n-1)*3^(n-2) : n in [0..30]]; // Vincenzo Librandi, Oct 08 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Definition clarified by Harvey P. Dale, Mar 29 2016
STATUS
approved