OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (21,-154,456,-448).
FORMULA
a(n) = (5*8^(n+2)-7^(n+3)+10*4^(n+1)-2^(n+1))/15. - Yahia Kahloune, May 23 2013
a(n) = 21*a(n-1)-154*a(n-2)+456*a(n-3)-448*a(n-4), for n >= 4. - Giovanni Resta, May 23 2013
a(n) = (4^(n+1)-2^(n+1))/2+15*a(n-1)-56*a(n-2). - Vincenzo Librandi, Jun 20 2026
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-4x)(1-7x)(1-8x)), {x, 0, 30}], x] (* Harvey P. Dale, Jun 23 2020 *)
PROG
(Magma) I:=[1, 21]; [n le 2 select I[n] else (4^n-2^n)/2+15*Self(n-1)-56*Self(n-2): n in [1..22]]; // Vincenzo Librandi, Jun 20 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
a(20) from Vincenzo Librandi, Jun 20 2026
STATUS
approved
