OFFSET
0,1
COMMENTS
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (10,-1).
FORMULA
EXAMPLE
59 = a(1) = sqrt(24*A077251(1)^2 + 25) = sqrt(24*12^2 + 25) = sqrt(3481) = 59.
MATHEMATICA
CoefficientList[Series[(7 - 11 z)/(z^2 - 10 z + 1), {z, 0, 200}], z] (* Vladimir Joseph Stephan Orlovsky, Jun 11 2011 *)
LinearRecurrence[{10, -1}, {7, 59}, 30] (* G. C. Greubel, Jan 18 2018 *)
PROG
(PARI) a(n)=if(n<0, 0, subst(poltchebi(n+1)+2*poltchebi(n), x, 5))
(PARI) Vec((7-11*x)/(1-10*x+x^2) + O(x^30)) \\ Colin Barker, Jun 15 2015
(PARI) a(n)=polchebyshev(n+1, , 5)+2*polchebyshev(n, , 5) \\ Charles R Greathouse IV, Jun 15 2015
(PARI) a(n)=([0, 1; -1, 10]^n*[7; 59])[1, 1] \\ Charles R Greathouse IV, Jun 15 2015
(Magma) I:=[7, 59]; [n le 2 select I[n] else 10*Self(n-1) - Self(n-2): n in [1..30]]; // G. C. Greubel, Jan 18 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Nov 08, 2002
STATUS
approved