OFFSET
0,2
COMMENTS
This sequence was chosen to illustrate a method of solution.
LINKS
Index entries for linear recurrences with constant coefficients, signature (28,-53,26).
FORMULA
a(n) = (26^(n+2) - 25*n - 51)/625.
In general, for the expansion of 1/((1-s*x)^2*(1-r*x)) with r>s>=1 we have the formula: a(n) = (r^(n+2)- s^(n+1)*((r-s)*n +(2*r-s)))/(r-s)^2.
From Elmo R. Oliveira, May 24 2025: (Start)
E.g.f.: exp(x)*(-51 - 25*x + 676*exp(25*x))/625.
a(n) = 28*a(n-1) - 53*a(n-2) + 26*a(n-3). (End)
EXAMPLE
a(3) = (26^5 - 25*3 - 51)/625 = 19010.
PROG
(PARI) my(x='x+O('x^18)); Vec(1/((1-26*x)*(1-x)^2)) \\ Elmo R. Oliveira, May 24 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Yahia Kahloune, Sep 24 2013
STATUS
approved
