OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (23,-168,468,-432).
FORMULA
a(0)=1, a(1)=23, a(2)=361, a(3)=4907, a(n) = 23*a(n-1)-168*a(n-2)+468*a(n-3)-432*a(n-4). - Harvey P. Dale, Oct 20 2012
a(n) = 16*12^n/5-3*6^n-2^n/5+3^n.- R. J. Mathar, Jun 04 2013
a(n) = 3^(n+1)-2^(n+1)+18*a(n-1)-72*a(n-2). - Vincenzo Librandi, May 04 2026
MATHEMATICA
CoefficientList[Series[1/((1-2*x)*(1-3*x)*(1-6*x)*(1-12*x)), {x, 0, 30}], x] (* Harvey P. Dale, Oct 20 2012 *)
(* Alternative *)
LinearRecurrence[{23, -168, 468, -432}, {1, 23, 361, 4907}, 20] (* Harvey P. Dale, Oct 20 2012 *)
(* Alternative *)
a[0]=1; a[1]=23; a[n_]:=a[n]=3^(n+1)-2^(n+1)+18*a[n-1]-72*a[n-2]; Table[a[n], {n, 0, 25}] (* Vincenzo Librandi, May 04 2026 *)
PROG
(PARI) Vec(1/((1-2*x)*(1-3*x)*(1-6*x)*(1-12*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
(Magma) I:=[1, 23]; [n le 2 select I[n] else 3^n-2^n+18*Self(n-1)-72*Self(n-2): n in [1..25]]; // Vincenzo Librandi, May 04 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, May 04 2026
STATUS
approved
