OFFSET
1,1
COMMENTS
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
G. P. Michon, Artin's Constant.
EXAMPLE
-3 and -12 are not in the set because their squarefree parts are equal to -3, which is congruent to 1 modulo 4. -32 is not in the set because it is the fifth power of -2. -1 is excluded because it is an odd power of -1.
MATHEMATICA
SquareFreePart[n_] := Times @@ Apply[ Power, ({#[[1]], Mod[#[[2]], 2]} & ) /@ FactorInteger[n], {1}]; perfectPowerQ[n_] := (r = False; For[k = 2, k <= Abs[n] + 2, k++, If[Reduce[n == x^k, {x}, Integers] =!= False, r = True; Break[]]]; r); ok[n_] := ! perfectPowerQ[-n] && Mod[SquareFreePart[-n], 4] != 1; Select[Range[106], ok](* Jean-François Alcover, Feb 14 2012 *)
CROSSREFS
KEYWORD
easy,nice,nonn
AUTHOR
Gerard P. Michon, Jun 20 2006
STATUS
approved