OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Max Alekseyev, PARI/GP Scripts for Miscellaneous Math Problems (invphi.gp).
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