OFFSET
1,1
COMMENTS
Some of these are Carmichael numbers, A002997: 561, 1105, 1729, ....
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[ Range[115000], !PrimeQ[ # ] && OddQ[ # ] && PowerMod[2, # - 1, # ] == 1 && Union[ PowerMod[2, Drop[Divisors[ # ], 1], # ]] != {2} && MoebiusMu[ # ] != 1 &]
PROG
(PARI) is(n)=if(isprime(n) || Mod(2, n)^(n-1)!=1 || moebius(n)>=0, return(0)); fordiv(n, d, if(Mod(2, d)^d!=2, return(1))); 0 \\ Charles R Greathouse IV, Sep 01 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Jani Melik, Sep 24 2002
EXTENSIONS
Edited and extended by Robert G. Wilson v, Oct 03 2002
STATUS
approved