OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
10^6 - 2 = 999998, which is divisible by 16129 = 127^2, so 10 is in the sequence.
11^6 - 2 = 1771559, which is prime, and 12^6 - 2 = 2985982 = 2 * 17 * 31 * 2833 (all prime), so neither of these numbers is in the sequence.
MAPLE
remove(t -> numtheory:-issqrfree(t^6-2), [$1..3000]); # Robert Israel, Aug 25 2014
MATHEMATICA
Select[Range[2000], MoebiusMu[#^6 - 2] == 0 &] (* Alonso del Arte, Aug 25 2014 *)
PROG
(Python)
from sympy import factorint
[i for i in range(1, 500) if any(v>1 for v in factorint(i**6-2).values())]
(PARI) isok(n) = ! issquarefree(n^6-2); \\ Michel Marcus, Oct 11 2014
(Magma) [n: n in [0..3000] | not IsSquarefree(n^6-2)]; // Vincenzo Librandi, Oct 16 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Mark E. Shoulson, Aug 25 2014
STATUS
approved