OFFSET
1,11
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..20000
N. Harland, The iterated Carmichael lambda function, arXiv:1111.3667 [math.NT], 2011.
G. Martin and C. Pomerance, The iterated Carmichael lambda-function and the number of cycles of the power generator, Acta Arith. 118:4 (2005), pp. 305-335.
MAPLE
a:= n-> (numtheory[lambda]@@3)(n):
seq(a(n), n=1..100); # Alois P. Heinz, Jan 19 2024
MATHEMATICA
a[n_]:=Nest[CarmichaelLambda, n, 3]; Array[a, 87] (* Stefano Spezia, Jan 20 2024 *)
PROG
(PARI) a(n) = lcm(znstar(lcm(znstar(lcm(znstar(11)[2]))[2]))[2])
(Python)
from sympy import reduced_totient
def A366779(n): return reduced_totient(reduced_totient(reduced_totient(n))) # Chai Wah Wu, Jan 29 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Miles Englezou, Dec 15 2023
STATUS
approved