OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (29,-278,976,-1056).
FORMULA
a(n) = -2*2^n/45+4*4^n/7-1331*11^n/63+108*12^n/5. - R. J. Mathar, Jun 20 2013
a(n) = 29*a(n-1)-278*a(n-2)+976*a(n-3)-1056*a(n-4), a(0)=1, a(1)=29, a(2)=563, a(3)=9241. - Harvey P. Dale, Nov 25 2013
a(n) = (4^(n+1)-2^(n+1))/2+23*a(n-1)-132*a(n-2). - Vincenzo Librandi, Jul 04 2026
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-4x)(1-11x)(1-12x)), {x, 0, 30}], x] (* Harvey P. Dale, Nov 25 2013 *)
(* Alternative: *)
LinearRecurrence[{29, -278, 976, -1056}, {1, 29, 563, 9241}, 30] (* Harvey P. Dale, Nov 25 2013 *)
PROG
(Magma) I:=[1, 29]; [n le 2 select I[n] else (4^n-2^n)/2+23*Self(n-1)-132*Self(n-2): n in [1..20]]; // Vincenzo Librandi, Jul 04 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, Jul 04 2026
STATUS
approved
