OFFSET
0,3
LINKS
FORMULA
a(n) = ( (10 + sqrt(10))^n - (10 - sqrt(10))^n )/(2 * sqrt(10)).
a(n) = Sum_{k=0..floor((n-1)/2)} 10^(n-1-k) * binomial(n,2*k+1).
G.f.: x/(1 - 20 * x + 90 * x^2).
E.g.f.: exp(10 * x) * sinh(sqrt(10) * x) / sqrt(10).
MATHEMATICA
LinearRecurrence[{20, -90}, {0, 1}, 20] (* Harvey P. Dale, Dec 16 2023 *)
PROG
(PARI) a(n) = polcoef(lift(Mod('x, ('x-10)^2-10)^n), 1);
(PARI) my(N=20, x='x+O('x^N)); concat (0, Vec(x/(1-20*x+90*x^2)))
(PARI) my(N=20, x='x+O('x^N)); concat (0, apply(round, Vec(serlaplace(exp(10*x)*sinh(sqrt(10)*x)/sqrt(10)))))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Mar 12 2023
STATUS
approved