OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (24,-216,864,-1296).
FORMULA
G.f.: 144*x^2*(1+3*x)/(1-6*x)^4. - Vincenzo Librandi, Feb 12 2013
a(n) = 24*a(n-1)-216*a(n-2)+864*a(n-3)-1296*a(n-4). - Vincenzo Librandi, Feb 12 2013
MATHEMATICA
CoefficientList[Series[144 x (1 + 3 x)/(1 - 6 x)^4, {x, 0, 30}], x] (* Vincenzo Librandi, Feb 12 2013 *)
Table[(n^3-n^2)6^n, {n, 20}] (* or *) LinearRecurrence[{24, -216, 864, -1296}, {0, 144, 3888, 62208}, 20] (* Harvey P. Dale, Apr 29 2019 *)
PROG
(Magma) [(n^3-n^2)*6^n: n in [1..25]]; /* or */ I:=[0, 144, 3888, 62208]; [n le 4 select I[n] else 24*Self(n-1)-216*Self(n-2)+864*Self(n-3)-1296*Self(n-4): n in [1..25]]; // Vincenzo Librandi, Feb 12 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Apr 30 2007
EXTENSIONS
Offset corrected by Mohammad K. Azarian, Nov 20 2008
STATUS
approved