OFFSET
1,1
COMMENTS
Infinite set (see reference).
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Eliot T. Jacobson and Alan E. Parks, Infinite branches of the phi-tree, Amer. Math. Monthly, Vol. 93, No. 7 (August-September 1986), pp. 552-554.
Keith Matthews, Solving phi(x)=n, where phi(x) is Euler's totient function.
EXAMPLE
11 is in the list because phi(phi(11)))) = phi(10) = 4.
MAPLE
filter:= proc(n) option remember;
if n < 4 then false
elif n = 4 then true
else procname(numtheory:-phi(n))
fi
end proc:
select(filter, [$4..100]); # Robert Israel, Dec 23 2021
MATHEMATICA
Select[Range[4, 72], FixedPointList[EulerPhi, #][[-4]] == 4 &] (* Amiram Eldar, Jan 27 2021 *)
PROG
(PARI) isok(k) = if (k>=4, while((k!=6) && (k!=4), k=eulerphi(k))); k == 4; \\ Michel Marcus, Feb 01 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Franz Vrabec, Jan 20 2021
STATUS
approved