login
A378506
The number of solutions to the equation phi(phi(x)) = n, where phi is the Euler totient function.
4
5, 8, 0, 13, 0, 4, 0, 23, 0, 2, 0, 14, 0, 0, 0, 36, 0, 2, 0, 5, 0, 2, 0, 32, 0, 0, 0, 2, 0, 0, 0, 54, 0, 0, 0, 11, 0, 0, 0, 23, 0, 0, 0, 5, 0, 0, 0, 66, 0, 0, 0, 2, 0, 4, 0, 3, 0, 0, 0, 2, 0, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 38, 0, 0, 0, 0, 0, 0, 0, 41, 0, 2, 0, 6
OFFSET
1,1
LINKS
David M. Bressoud, A Course in Computational Number Theory (web page), CNT.m, Computational Number Theory Mathematica package.
FORMULA
a(n) > 0 if and only if n is in A378508.
MATHEMATICA
a[n_] := Sum[PhiMultiplicity[i], {i, PhiInverse[n]}]; Array[a, 100] (* using David M. Bressoud's CNT.m *)
PROG
(PARI) a(n) = vecsum(apply(x -> invphiNum(x), invphi(n))); \\ using Max Alekseyev's invphi.gp
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Nov 29 2024
STATUS
approved