OFFSET
1,1
COMMENTS
These unCarmichael numbers fail the Fermat primality test as often as possible.
All such numbers are even: for odd n, (-1)^(n-1) = 1.
The even numbers not in this sequence are 2 and A039772.
If c is a Carmichael number, then 2c is in the sequence. Also, the sequence is A209211 without the first two terms. - Emmanuel Vantieghem, Jul 03 2013
LINKS
Romeo Meštrović, Generalizations of Carmichael numbers I, arXiv:1305.1867v1 [math.NT], May 04 2013.
EXAMPLE
10 is a term because 3^9 == 3 (mod 10), 7^9 == 7 (mod 10), 9^9 == 9 (mod 10).
MATHEMATICA
Select[Range[4, 144], Count[Table[PowerMod[b, # - 1, #], {b, 1, # - 1}], 1] == 1 &] (* Geoffrey Critzer, Apr 11 2015 *)
PROG
(PARI) is(n)=for(a=2, n-1, if(Mod(a, n)^(n-1)==1, return(0))); !isprime(n) \\ Charles R Greathouse IV, Dec 22 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Karsten Meyer, Nov 02 2005
EXTENSIONS
Edited by Don Reble, May 16 2006
STATUS
approved