OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (2,49).
FORMULA
From Colin Barker, Oct 19 2012: (Start)
a(n) = 2*a(n-1) + 49*a(n-2) for n>2.
G.f.: x*(1 +5*x)/(1 -2*x -49*x^2). (End)
a(n) = (7*i)^(n-2)*(5*ChebyshevU(n-2, -i/7) + 7*i*ChebyshevU(n-1, -i/7)). - G. C. Greubel, Jul 13 2021
MATHEMATICA
M:= {{0, 7}, {7, 2}}; v[1]= {1, 1}; v[n_]:= v[n]= M.v[n-1];
Table[v[n][[1]], {n, 30}]
PROG
(Magma) [n le 2 select 7^(n-1) else 2*Self(n-1) + 25*Self(n-2): n in [1..31]]; // G. C. Greubel, Jul 13 2021
(Sage) [(7*i)^(n-2)*(5*chebyshev_U(n-2, -i/7) + 7*i*chebyshev_U(n-1, -i/7)) for n in (1..30)] # G. C. Greubel, Jul 13 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula and Gary W. Adamson, Sep 23 2006
EXTENSIONS
Sequence edited by Joerg Arndt and Colin Barker, Oct 19 2012
STATUS
approved