OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (19,-121,309,-270).
FORMULA
a(n) = (9^(n+3)-7*5^(n+3)+14*3^(n+3)-8*2^(n+3))/168. - Yahia Kahloune, May 08 2013
a(n) = 3^(n+1)-2^(n+1)+14*a(n-1)-45*a(n-2). - Vincenzo Librandi, Apr 20 2026
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-3x)(1-5x)(1-9x)), {x, 0, 25}], x] (* or *) LinearRecurrence[{19, -121, 309, -270}, {1, 19, 240, 2570}, 25] (* Harvey P. Dale, Dec 26 2021 *)
a[0]=1; a[1]=19; a[n_]:=a[n]=3^(n+1)-2^(n+1)+14*a[n-1]-45*a[n-2]; Table[a[n], {n, 0, 25}] (* Vincenzo Librandi, Apr 20 2026 *)
PROG
(PARI) my(x='x+O('x^25)); Vec(1/((1-2*x)*(1-3*x)*(1-5*x)*(1-9*x))) \\ Joerg Arndt, May 08 2013
(Magma) I:=[1, 19]; [n le 2 select I[n] else 3^n-2^n+14*Self(n-1)-45*Self(n-2): n in [1..25]]; // Vincenzo Librandi, Apr 20 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, Apr 20 2026
STATUS
approved
