OFFSET
0,2
REFERENCES
A. H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., 1964, pp. 122-125, 194-196.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
I. Adler, Three Diophantine equations - Part II, Fib. Quart., 7 (1969), pp. 181-193.
E. I. Emerson, Recurrent Sequences in the Equation DQ^2=R^2+N, Fib. Quart., 7 (1969), pp. 231-242.
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (5,-1).
FORMULA
a(n) = (7*(((5+sqrt(21))/2)^n - ((5-sqrt(21))/2)^n) - (((5+sqrt(21))/2)^(n-1) - ((5-sqrt(21))/2)^(n-1)))/sqrt(21).
G.f.: (1+2*x)/(1-5*x+x^2).
a(n) = (-1)^n*Sum_{k = 0..n} A238731(n,k)*(-8)^k. - Philippe Deléham, Mar 05 2014
a(n) = ChebyshevT(n, 5/2) + (9/2)*ChebyshevU(n-1,5/2) = ChebyshevU(n, 5/2) + 2*ChebyshevU(n-1, 5/2). - G. C. Greubel, Mar 16 2020
MAPLE
A055271:= n-> simplify(ChebyshevU(n, 5/2) + 2*ChebyshevU(n-1, 5/2)); seq(A055271(n), n=0..30); # G. C. Greubel, Mar 16 2020
MATHEMATICA
LinearRecurrence[{5, -1}, {1, 7}, 30] (* G. C. Greubel, Mar 16 2020 *)
PROG
(Magma) I:=[1, 7]; [n le 2 select I[n] else 5*Self(n-1) - Self(n-2): n in [1..30]]; // G. C. Greubel, Mar 16 2020
(Sage) [chebyshev_U(n, 5/2) + 2*chebyshev_U(n-1, 5/2) for n in (0..30)] # G. C. Greubel, Mar 16 2020
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Barry E. Williams, May 10 2000
EXTENSIONS
Terms a(22) onward added by G. C. Greubel, Mar 16 2020
STATUS
approved