OFFSET
1,2
COMMENTS
All the squares are in this sequence.
Differs from A001481 \ {0} and A248151 from a(17) = 36 on. The number 0 is in the sequence according to its definition. - M. F. Hasler, Oct 22 2019
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
5 is in the sequence because x^2-5*y^2=5 has integer solutions, including (x,y) = (5,2) and (85,38).
MATHEMATICA
Select[Range[1, 200], Solve[x^2==#*(1+y^2), {x, y}, Integers]!={}&] (* Vaclav Kotesovec, Jul 15 2014 *)
PROG
(PARI) isok(m) = if (issquare(4*m), 1, #qfbsolve(Qfb(1, 0, -m), m, 2)); \\ Michel Marcus, May 17 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Colin Barker, Jul 14 2014
STATUS
approved
