OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-9).
FORMULA
G.f.: x/(1 - 5*x + 9*x^2). - Philippe Deléham, Oct 12 2011
a(n) = 3^(n-1) * ChebyshevU(n-1, 5/6). - G. C. Greubel, Jun 09 2022
MAPLE
A190970 := proc(n)
option remember ;
if n <= 1 then
n;
else
5*procname(n-1)-9*procname(n-2) ;
end if;
end proc: # R. J. Mathar, Mar 23 2023
MATHEMATICA
LinearRecurrence[{5, -9}, {0, 1}, 50]
PROG
(Magma) [n le 2 select n-1 else 5*Self(n-1) - 9*Self(n-2): n in [1..51]]; // G. C. Greubel, Jun 09 2022
(Sage) [3^(n-1)*chebyshev_U(n-1, 5/6) for n in (0..50)] # G. C. Greubel, Jun 09 2022
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 24 2011
STATUS
approved