OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (19,-126,344,-320).
FORMULA
a(n) = (8^(n+3)-8*5^(n+3)+9*4^(n+3)-2^(n+4))/72. [Yahia Kahloune, May 25 2013]
a(n) = (4^(n+1)-2^(n+1))/2+13*a(n-1)-40*a(n-2). - Vincenzo Librandi, Jun 01 2026
MATHEMATICA
CoefficientList[Series[1/((1-2*x)*(1-4*x)*(1-5*x)*(1-8*x)), {x, 0, 30}], x] (* Harvey P. Dale, Apr 02 2020 *)
(* Alternative: *)
a[0]=1; a[1]=19; Do[a[n]=(4^(n+1)-2^(n+1))/2+13*a[n-1]-40*a[n-2], {n, 2, 22}]; Table[a[n], {n, 0, 22}] (* Vincenzo Librandi, Jun 01 2026 *)
PROG
(Magma) I:=[1, 19]; [n le 2 select I[n] else (4^n-2^n)/2+13*Self(n-1)-40*Self(n-2): n in [1..22]]; // Vincenzo Librandi, Jun 01 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
