OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (22,-164,488,-480).
FORMULA
a(n) = -2^n/8 +8*4^n/3-27*6^n/4+125*10^n/24. - R. J. Mathar, Jun 20 2013
a(n) = (4^(n+1)-2^(n+1))/2 + 16*a(n-1) - 60*a(n-2). - Vincenzo Librandi, Jun 11 2026
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-4x)(1-6x)(1-10x)), {x, 0, 30}], x] (* Harvey P. Dale, Dec 30 2014 *)
(* Alternative: *)
LinearRecurrence[{22, -164, 488, -480}, {1, 22, 320, 3920}, 30] (* Harvey P. Dale, Dec 30 2014 *)
PROG
(Magma) I:=[1, 22]; [n le 2 select I[n] else (4^n-2^n)/2+16*Self(n-1)-60*Self(n-2): n in [1..22]]; // Vincenzo Librandi, Jun 11 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, Jun 11 2026
STATUS
approved
