OFFSET
1,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
a(7)=6 because d=6 is the smallest d giving integer solutions x=2, y=1 in (2*7+1) = x^2+d*y^2 = 3^2 + 6*1^2 = 15.
MATHEMATICA
Table[d = 1; While[! Resolve[Exists[{x, y}, And[2*n + 1 == x^2 + d*y^2, x > 0, y > 0]], Integers], d++]; d, {n, 120}] (* Michael De Vlieger, Mar 19 2026 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Wouter Meeussen, Jun 20 2003
EXTENSIONS
Data corrected by Sean A. Irvine, Mar 19 2026
STATUS
approved
