OFFSET
1,1
COMMENTS
Composite numbers n such that 39^(n-1) == 1 (mod n).
LINKS
EXAMPLE
Since 39^n = 1 mod 38 as long as n is a nonzero integer, 38 is in the sequence trivially.
Obviously 39 = 39 mod 95. But 39^2 = 1521 = 16 * 95 + 1, which means that 39^n = 1 mod 95 whenever n is even, and since 95 - 1 is even, 95 is in the sequence.
MAPLE
select(n -> 39 &^ (n-1) mod n = 1 and not isprime(n), [$2..10^5]); # Robert Israel, Mar 24 2017
MATHEMATICA
max = 3000; Select[Complement[Range[max], Prime[Range[PrimePi[max]]]], PowerMod[39, # - 1, #] == 1 &] (* Alonso del Arte, Mar 12 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved