OFFSET
1,9
LINKS
FORMULA
EXAMPLE
For n = 21 = 3*7 = prime(2)^1 * prime(4)^1, a(n) = 2^0 * 4^0 = 1*1 = 1.
For n = 360 = 2^3 * 3^2 * 5^1 = prime(1)^3 * prime(2)^2 * prime(3)^1, a(n) = 1^2 * 2^1 * 3^0 = 1*2*1 = 2.
MATHEMATICA
Table[If[n == 1, 1, Apply[Times, Map[PrimePi[#1]^#2 & @@ # &, #]] / Apply[Times, PrimePi[#[[All, 1]] ]]] &@ FactorInteger@ n, {n, 120}] (* Michael De Vlieger, Aug 14 2017 *)
PROG
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Antti Karttunen, Aug 13 2017
STATUS
approved