OFFSET
1,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
MATHEMATICA
seq[kmax_] := Module[{s = {}, lam}, Do[If[CompositeQ[k], lam = CarmichaelLambda[k]; If[Mod[k, lam] == 1, AppendTo[s, lam]]], {k, 9, kmax, 2}]; s]; seq[10^6] (* Amiram Eldar, Nov 14 2023 *)
PROG
(PARI) forstep(n=3, 1e6, 2, my(m=lcm(znstar(n)[2])); if((n-1)%m==0 && !isprime(n), print1(m, ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Feb 13 2019
STATUS
approved