A329095 Odd numbers k such that x^2 == 2 (mod k) has no solution.
3, 5, 9, 11, 13, 15, 19, 21, 25, 27, 29, 33, 35, 37, 39, 43, 45, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 75, 77, 81, 83, 85, 87, 91, 93, 95, 99, 101, 105, 107, 109, 111, 115, 117, 121, 123, 125, 129, 131, 133, 135, 139, 141, 143, 145, 147, 149, 153, 155, 157, 159, 163
Offset: 1
Examples
x^2 == 2 (mod 45) has no solution, so 45 is a term.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Maple
filter:= proc(t) (numtheory:-factorset(t) mod 8) intersect {3,5} <> {} end proc: select(filter, [seq(i,i=1..1000,2)]); # Robert Israel, Nov 05 2019
-
Mathematica
Reap[Do[If[AnyTrue[FactorInteger[k][[All, 1]], MatchQ[Mod[#, 8], 3|5]&], Sow[k]], {k, 1, 999, 2}]][[2, 1]] (* Jean-François Alcover, Aug 22 2020 *)
-
PARI
isA329095(k) = (k%2) && !issquare(Mod(2,k))
Comments