OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (28,-260,896,-960).
FORMULA
a(n) = -2^n/20+2*4^n/3-125*10^n/12+54*12^n/5. - R. J. Mathar, Jun 20 2013
a(n) = (4^(n+1)-2^(n+1))/2+22*a(n-1)-120*a(n-2). - Vincenzo Librandi, Jul 03 2026
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-4x)(1-10x)(1-12x)), {x, 0, 20}], x] (* Harvey P. Dale, Apr 03 2017 *)
(* Alternative: *)
LinearRecurrence[{28, -260, 896, -960}, {1, 28, 524, 8288}, 20] (* Harvey P. Dale, Apr 03 2017 *)
PROG
(Magma) I:=[1, 28]; [n le 2 select I[n] else (4^n-2^n)/2+22*Self(n-1)-120*Self(n-2): n in [1..19]]; // Vincenzo Librandi, Jul 03 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, Jul 03 2026
STATUS
approved
