A138327 Nonsquares not representable as p+g, where p is a prime and g is a primitive root of p.
2, 6, 11, 14, 26, 35, 41, 45, 51
Offset: 1
Programs
-
Mathematica
seq[m_] := Module[{p = Select[Range[m], PrimeQ], s}, s = Complement[Range[m], p + PrimitiveRootList[p] // Flatten]; Select[s, !IntegerQ @ Sqrt[#] &]]; seq[100] (* Amiram Eldar, Oct 09 2021 *)
Comments