OFFSET
0,1
COMMENTS
A Chebyshev T-sequence with Diophantine property.
a(n) gives the general (nonnegative integer) solution of the Pell equation a^2 - 21*(5*b)^2 =+4 with companion sequence b(n)=A097778(n-1), n>=1; b(0):=0.
REFERENCES
O. Perron, "Die Lehre von den Kettenbruechen, Bd.I", Teubner, 1954, 1957 (Sec. 30, Satz 3.35, p. 109 and table p. 108).
LINKS
FORMULA
a(n) = S(n, 23) - S(n-2, 23) = 2*T(n, 23/2) with S(n, x) := U(n, x/2), S(-1, x) := 0, S(-2, x) := -1. S(n, 23)=A097778(n). U-, resp. T-, are Chebyshev's polynomials of the second, resp. first, case. See A049310 and A053120.
a(n) = ap^n + am^n, with ap := (23+5*sqrt(21))/2 and am := (23-5*sqrt(21))/2.
G.f.: (2-23*x)/(1-23*x+x^2).
EXAMPLE
(x;y) = (0;2), (23;1), (527;23), (12098;528), ... give the
nonnegative integer solutions to x^2 - 21*(5*y)^2 = 4.
MATHEMATICA
a[0] = 2; a[1] = 23; a[n_] := 23a[n - 1] - a[n - 2]; Table[ a[n], {n, 0, 15}] (* Robert G. Wilson v, Jan 30 2004 *)
LinearRecurrence[{23, -1}, {2, 23}, 30] (* Harvey P. Dale, Feb 20 2012 *)
PROG
(Sage) [lucas_number2(n, 23, 1) for n in range(0, 20)] # Zerinvary Lajos, Jun 26 2008
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Nikolay V. Kosinov (kosinov(AT)unitron.com.ua), Jan 18 2004
EXTENSIONS
Chebyshev and Pell comments from Wolfdieter Lang, Sep 10 2004
STATUS
approved