OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (18,-115,306,-280).
FORMULA
a(n) = -4*2^n/15+32*4^n/3-125*5^n/6+343*7^n/30. - R. J. Mathar, Jun 20 2013
a(n) = (4^n-2^n)/2+12*a(n-1)-35*a(n-2). - Vincenzo Librandi, Jun 01 2026
MATHEMATICA
CoefficientList[Series[1/((1-2*x)*(1-4*x)*(1-5*x)*(1-7*x)), {x, 0, 20}], x] (* Harvey P. Dale, Jan 11 2026 *)
(* Alternative: *)
LinearRecurrence[{18, -115, 306, -280}, {1, 18, 209, 1998}, 20] (* Harvey P. Dale, Jan 11 2026 *)
(* Alternative: *)
a[0]=1; a[1]=18; Do[a[n]=(4^(n+1)-2^(n+1))/2+12*a[n-1]-35*a[n-2], {n, 2, 22}]; Table[a[n], {n, 0, 22}] (* Vincenzo Librandi, Jun 01 2026 *)
PROG
(Magma) I:=[1, 18]; [n le 2 select I[n] else (4^n-2^n)/2+12*Self(n-1)-35*Self(n-2): n in [1..22]]; // Vincenzo Librandi, Jun 01 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, Jun 01 2026
STATUS
approved
