OFFSET
1,2
COMMENTS
F(F(k)) mod n = F(F(k mod pi(pi(n))) mod pi(n)) mod n (where pi = A001175), so F(F(k)) mod n is periodic and the sequence is well defined.
LINKS
Rémy Sigrist, PARI program
EXAMPLE
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Aug 11 2022
STATUS
approved