OFFSET
1,1
COMMENTS
REFERENCES
Harvey Cohn, "Advanced Number Theory".
LINKS
Jean-François Alcover, Table of n, a(n) for n = 1..1000
Janis Kuzmanis, A simple solvability criterion for the negative Pell equation, hal-02502164, Mathematics [math] / Number Theory [math.NT], (2020).
K. Lakshmi and R. Someshwari, On The Negative Pell Equation y^2 = 72x^2 - 23, International Journal of Emerging Technologies in Engineering Research (IJETER), Volume 4, Issue 7, July (2016).
J. P. Robertson and K. R. Matthews, A continued fraction approach to a result of Feit, Amer. Math. Monthly, 115 (No. 4, 2008), 346-349.
R. Suganya and D. Maheswari, On the Negative Pellian Equation y^2 = 110 * x^2 - 29, Journal of Mathematics and Informatics, Vol. 11 (2017), pp. 63-71.
S. Vidhyalakshmi, V. Krithika, and K. Agalya, On The Negative Pell Equation y^2 = 72x^2 - 8, International Journal of Emerging Technologies in Engineering Research (IJETER) 4:2 (2016).
MATHEMATICA
sel = Select[Range[2000], SquareFreeQ[#] && FreeQ[Mod[FactorInteger[#][[All, 1]], 4], 3]&]; r[n_] := Reduce[x^2-n*y^2 == -1, {x, y}, Integers]; Reap[For[n=1, n <= Length[sel], n++, an = sel[[n]]; If[r[an] === False, Print[an]; Sow[an]]]][[2, 1]] (* Jean-François Alcover, Feb 04 2014 *)
PROG
(Python)
from itertools import count, islice
from sympy import factorint
from sympy.solvers.diophantine.diophantine import diop_DN
def A031398_gen(startvalue=1): # generator of terms >= startvalue
return filter(lambda n: max((f:=factorint(n)).values(), default=0)<2 and not (any(p&3==3 for p in f) or len(diop_DN(n, -1))), count(max(startvalue, 1)))
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Edited by N. J. A. Sloane, Apr 28 2008, at the suggestion of Artur Jasinski
STATUS
approved
