OFFSET
1,1
COMMENTS
Composite numbers n such that 40^(n - 1) == 1 (mod n). - Michel Lagneau, Feb 18 2012
LINKS
MATHEMATICA
base = 40; pp40 = {}; n = 1; While[Length[pp40] < 100, n++; If[!PrimeQ[n] && PowerMod[base, n - 1, n] == 1, AppendTo[pp40, n]]]; pp40 (* T. D. Noe, Feb 21 2012 *)
searchMax = 10000; Complement[Select[Range[searchMax], PowerMod[40, # - 1, #] == 1 &], Prime[Range[PrimePi[searchMax]]]] (* Alonso del Arte, Feb 20 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved