OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (20,-143,424,-420).
FORMULA
a(n) = -2*2^n/15+125*5^n/6-54*6^n/1+343*7^n/10. - R. J. Mathar, Jun 20 2013
a(n) = (5^(n+1)-2^(n+1))/3+13*a(n-1)-42*a(n-2). - Vincenzo Librandi, Jul 05 2026
E.g.f.: exp(2*x)*(1029*exp(5*x)-1620*exp(4*x)+625*exp(3*x)-4)/30. - Stefano Spezia, Sep 29 2022
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-5x)(1-6x)(1-7x)), {x, 0, 20}], x] (* Harvey P. Dale, Oct 10 2017 *)
(* Alternative: *)
LinearRecurrence[{20, -143, 424, -420}, {1, 20, 257, 2704}, 20] (* Harvey P. Dale, Oct 10 2017 *)
PROG
(Magma) I:=[1, 20]; [n le 2 select I[n] else (5^n-2^n)/3+13*Self(n-1)-42*Self(n-2): n in [1..21]]; // Vincenzo Librandi, Jul 05 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, Jul 05 2026
STATUS
approved
