OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (12,-54,108,-81).
FORMULA
G.f.: 54*x^2/(1-3*x)^4. - Vincenzo Librandi, Feb 12 2013
a(n) = 12*a(n-1) - 54*a(n-2) + 108*a(n-3) - 81*a(n-4). - Vincenzo Librandi, Feb 12 2013
From Amiram Eldar, Oct 02 2022: (Start)
Sum_{n>=2} 1/a(n) = (2/3)*log(3/2) - 1/4.
Sum_{n>=2} (-1)^n/a(n) = (8/3)*log(4/3) - 3/4. (End)
MATHEMATICA
LinearRecurrence[{12, -54, 108, -81}, {0, 54, 648, 4860}, 30] (* or *) CoefficientList[Series[54 x/(1 - 3 x)^4, {x, 0, 30}], x] (* Vincenzo Librandi, Feb 12 2013 *)
PROG
(Magma) [(n^3-n)*3^n: n in [1..25]]; /* or */ I:=[0, 54, 648, 4860]; [n le 4 select I[n] else 12*Self(n-1)-54*Self(n-2)+108*Self(n-3)-81*Self(n-4): n in [1..25]]; // Vincenzo Librandi, Feb 12 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Apr 28 2007
EXTENSIONS
Offset corrected by Mohammad K. Azarian, Nov 20 2008
STATUS
approved