OFFSET
1,1
FORMULA
a(1) = 2, a(n) = A018804(a(n-1)) for n >= 2.
EXAMPLE
a(5) = f(f(f(f(a(1))))) = 21. Here f represents A018804.
MATHEMATICA
f[p_, e_] := (e*(p - 1)/p + 1) * p^e; pil[n_] := Times @@ f @@@ FactorInteger[n]; NestList[pil, 2, 20] (* Amiram Eldar, Nov 24 2021 *)
PROG
(PARI) f(n) = sumdiv(n, d, n*eulerphi(d)/d); \\ A018804
lista(nn) = my(a = 2); for (n=1, nn, print1(a, ", "); a = f(a); ); \\ Michel Marcus, Nov 24 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Nov 24 2021
EXTENSIONS
More terms from Michel Marcus, Nov 24 2021
STATUS
approved