A057126 Numbers k such that 2 is a square mod k.
1, 2, 7, 14, 17, 23, 31, 34, 41, 46, 47, 49, 62, 71, 73, 79, 82, 89, 94, 97, 98, 103, 113, 119, 127, 137, 142, 146, 151, 158, 161, 167, 178, 191, 193, 194, 199, 206, 217, 223, 226, 233, 238, 239, 241, 254, 257, 263, 271, 274, 281, 287, 289, 302, 311, 313, 322
Offset: 1
Keywords
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)
Crossrefs
Programs
-
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 *)
-
PARI
isok(n) = issquare(Mod(2,n)); \\ Michel Marcus, Feb 19 2016
Extensions
Checked by T. D. Noe, Apr 19 2007
Comments