OFFSET
1,2
COMMENTS
The prime factorization of 1 is the empty set, so a(1) = 0 by convention (empty sum).
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
EXAMPLE
a(12) = 6 because 12 = 2^2*3^1, the set of these bases and exponents is {1, 2, 3} and 1 + 2 + 3 = 6.
a(31500) = 18 because 31500 = 2^2*3^2*5^3*7^1, the set of these bases and exponents is {1, 2, 3, 5, 7} and 1 + 2 + 3 + 5 + 7 = 18.
MATHEMATICA
PROG
(PARI) a(n) = my(f=factor(n)); vecsum(setunion(Set(f[, 1]), Set(f[, 2]))); \\ Michel Marcus, Feb 18 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo Xausa, Feb 16 2025
STATUS
approved