OFFSET
1,4
COMMENTS
If the period length of the continued fraction of a quadratic surd sqrt(D) is odd, the negative Pell equation x^2 - D y^2 = -1 has (infinite) solutions.
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Map[Length@ Last@ ContinuedFraction@ Sqrt@ # &, Range[550]], OddQ] (* Michael De Vlieger, Dec 06 2017, after T. D. Noe at A003814 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Walter Gilbert
STATUS
approved