OFFSET
1,1
COMMENTS
The corresponding values of y of this Pell equation are in A202156.
REFERENCES
A. H. Beiler, Recreations in the Theory of Numbers: The Queen of Mathematics Entertains, Dover (New York), 1966, p. 264.
LINKS
Bruno Berselli, Table of n, a(n) for n = 1..200
Tanya Khovanova, Recursive Sequences.
A. M. S. Ramasamy, Polynomial solutions for the Pell's equation, Indian Journal of Pure and Applied Mathematics 25 (1994), p. 579 (Theorem 4, case t=1).
J. P. Robertson, Solving the generalized Pell equation x^2-D*y^2=N, pp. 9, 24.
Index entries for linear recurrences with constant coefficients, signature (1298,-1).
FORMULA
G.f.: 18*x*(1+x)/(1-1298*x+x^2).
a(n) = -a(-n+1) = (r^(2n-1)-1/r^(2n-1))/2, where r=18+5*sqrt(13).
MATHEMATICA
LinearRecurrence[{1298, -1}, {18, 23382}, 12]
PROG
(Magma) m:=13; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(18*x*(1+x)/(1-1298*x+x^2)));
(Maxima) makelist(expand(((18+5*sqrt(13))^(2*n-1)+(18-5*sqrt(13))^(2*n-1))/2), n, 1, 12);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bruno Berselli, Dec 15 2011
STATUS
approved