login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Primes p such that x^8 = -2 has no solution mod p.
2

%I #10 Mar 19 2023 13:35:42

%S 5,7,13,17,23,29,31,37,41,47,53,61,71,73,79,89,97,101,103,109,113,127,

%T 137,149,151,157,167,173,181,191,193,197,199,223,229,233,239,241,263,

%U 269,271,277,293,311,313,317,349,353,359,367,373,383,389,397,401,409,421,431

%N Primes p such that x^8 = -2 has no solution mod p.

%C Complement of A051073 relative to A000040.

%H Vincenzo Librandi, <a href="/A216735/b216735.txt">Table of n, a(n) for n = 1..1000</a>

%t ok[p_] := Reduce[Mod[x^8 + 2, p] == 0, x, Integers] == False; Select[Prime[Range[100]], ok]

%o (Magma) [p: p in PrimesUpTo(500) | forall{x: x in ResidueClassRing(p) | x^8 ne -2}]; // _Bruno Berselli_, Sep 20 2012

%o (PARI) select(x->!ispower(Mod(-2, x), 8), primes(100)) \\ _Michel Marcus_, Mar 19 2023

%Y Cf. A000040, A051073.

%K nonn,easy

%O 1,1

%A _Vincenzo Librandi_, Sep 15 2012