OFFSET
1,1
EXAMPLE
For D = 2, the least y for which x^2 - D*y^2 = 2 has a solution is 1.
The next primes, D, for which x^2 - D*y^2 = 2 has a solution are 7 and 23, but the smallest y in each of these cases is also 1, which is equal to the previous record y. So neither 7 nor 23 is a term.
The next prime, D, after 23 for which x^2 - D*y^2 = 2 has a solution is 31 and the least y for which it has a solution there is y = 7, which is larger than 1, so it is a new record y value. So 31 is a term here, and 7 is the corresponding term of A336789.
CROSSREFS
KEYWORD
nonn
AUTHOR
Christine Patterson, Aug 05 2020
EXTENSIONS
a(1) corrected and Example section edited by Jon E. Schoenfield, Feb 24 2021
STATUS
approved