OFFSET
1,1
COMMENTS
LINKS
Claude Goutier, Compressed text file carm10e22.gz containing all the Carmichael numbers up to 10^22.
Thomas Ordowski and Amiram Eldar, A new look at the Lehmer's totient problem, SeqFan, February 10 2019.
MATHEMATICA
carmichaels = Cases[Import["https://oeis.org/A002997/b002997.txt", "Table"], {_, _}][[;; , 2]]; q[n_] := Module[{p = FactorInteger[n - 1][[;; , 1]], phi = EulerPhi[n]}, AnyTrue[(n - 1)*p, Divisible[#, phi] &]]; Select[carmichaels, q] (* Amiram Eldar, Dec 26 2020 *)
CROSSREFS
KEYWORD
nonn,more
AUTHOR
EXTENSIONS
a(10) from Amiram Eldar, Dec 26 2020
a(11) calculated using data from Claude Goutier and added by Amiram Eldar, Apr 21 2024
STATUS
approved