OFFSET
1,3
LINKS
FORMULA
EXAMPLE
a(36) = 8 because 36 = 2^2*3^2 = prime(1)^2*prime(2)^2 and 1*2*2*2 = 8.
MATHEMATICA
a[n_] := Times @@ (PrimePi[#[[1]]] #[[2]] & /@ FactorInteger[n]); a[1] = 1; Table[a[n], {n, 1, 80}]
PROG
(PARI) a(n) = my(f=factor(n)); for (k=1, #f~, f[k, 1] = primepi(f[k, 1])*f[k, 2]; f[k, 2] = 1); factorback(f); \\ Michel Marcus, May 06 2018
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Ilya Gutkovskiy, May 06 2018
STATUS
approved