OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
Index entries for linear recurrences with constant coefficients, signature (26,-49,24).
FORMULA
a(1)=1, a(2)=26, a(3)=627, a(n) = 26*a(n-1) - 49*a(n-2) + 24*a(n-3). - Vincenzo Librandi, Oct 19 2012
From Elmo R. Oliveira, Mar 30 2025: (Start)
G.f.: x/((1-24*x)*(x-1)^2).
E.g.f.: exp(x)*(24*exp(23*x) - 23*x - 24)/529.
a(n) = (24^(n+1) - 23*n - 24)/529. (End)
MATHEMATICA
LinearRecurrence[{26, -49, 24}, {1, 26, 627}, 20] (* Vincenzo Librandi, Oct 19 2012 *)
nxt[{n_, a_}]:={n+1, 24a+n+1}; NestList[nxt, {1, 1}, 20][[;; , 2]] (* Harvey P. Dale, Jun 30 2025 *)
PROG
(Magma) I:=[1, 26, 627]; [n le 3 select I[n] else 26*Self(n-1) - 49*Self(n-2) + 24*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Oct 19 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
