OFFSET
1,4
LINKS
EXAMPLE
For n = 36 = 2^2 * 3^2, the only distinct exponent that occurs is 2, thus a(36) = 2.
For n = 144 = 2^4 * 3^2, the distinct exponents are 2 and 4, thus a(144) = 2*4 = 8.
For n = 4500 = 2^2 * 3^2 * 5^3, the distinct exponents are 2 and 3, thus a(4500) = 2*3 = 6.
MATHEMATICA
Table[If[n == 1, 1, Apply[Times, Union[FactorInteger[n][[All, -1]] ]]], {n, 120}] (* Michael De Vlieger, Aug 14 2017 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 13 2017
STATUS
approved