OFFSET
1,2
COMMENTS
Numbers that are not multiples of 4 and for which all odd prime factors are congruent to +/- 1 mod 8. - Eric M. Schmidt, Apr 20 2013
Apparently the same as the list of numbers primitively represented by the indefinite quadratic form x^2 - 2y^2 (cf. A035251). - N. J. A. Sloane, Jun 11 2014
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
N. J. A. Sloane et al., Binary Quadratic Forms and OEIS (Index to related sequences, programs, references)
MAPLE
with(numtheory); [seq(mroot(2, 2, p), p=1..300)];
MATHEMATICA
ok[n_] := Reduce[ Mod[2 - k^2, n] == 0, k, Integers] =!= False; Prepend[ Select[ Range[400], ok], 1] (* Jean-François Alcover, Sep 20 2012 *)
PROG
(PARI) isok(n) = issquare(Mod(2, n)); \\ Michel Marcus, Feb 19 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Aug 10 2000
EXTENSIONS
Checked by T. D. Noe, Apr 19 2007
STATUS
approved