OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (25,-205,615,-594).
FORMULA
G.f.: 1/((1-2*x)*(1-3*x)*(1-9*x)*(1-11*x)).
a(n) = -8*2^n/63+9*3^n/16-243*9^n/28+1331*11^n/144. - R. J. Mathar, Jun 20 2013
a(n) = 3^(n+1)-2^(n+1)+20*a(n-1)-99*a(n-2). - Vincenzo Librandi, May 17 2026
MATHEMATICA
a[0]=1; a[1]=25; a[n_]:=a[n]=3^(n+1)-2^(n+1)+20*a[n-1]-99*a[n-2]; Table[a[n], {n, 0, 25}] (* Vincenzo Librandi, May 17 2026 *)
PROG
(Magma) I:=[1, 25]; [n le 2 select I[n] else 3^n-2^n+20*Self(n-1)-99*Self(n-2): n in [1..22]]; // Vincenzo Librandi, May 17 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, May 17 2026
STATUS
approved
