OFFSET
1,2
COMMENTS
All n such that there exists at least one integer x with x^6 == 6 mod n.
n is in the sequence iff n is not divisible by 4 or 9 or any member of A243768.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
5 is in the sequence because 1^6 == 6 mod 5.
MAPLE
select(n -> nops([msolve(x^6-6, n)])>0, [$1..1000]);
MATHEMATICA
Select[Range[1000], # == 1 || Solve[x^6-6 == 0, x, Modulus -> #] != {}&] (* Jean-François Alcover, Apr 27 2019 *)
PROG
(PARI) isok(n) = ispower(Mod(6, n), 6) ; \\ fails with 2.11.1 but will work with 2.11.2; Michel Marcus, Apr 28 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Jun 10 2014
STATUS
approved