OFFSET
1,2
COMMENTS
Sum of the greatest prime divisor of all the divisors of n.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000 (first 1000 terms from Aloe Poliszuk)
FORMULA
a(n) = Sum_{d|n} A006530(d).
Order the prime divisors of n as p_{1} > p_{2} > ... > p_{m}, and let e_{j} be the greatest exponent such that p_{j}^e_{j} divides n. Then, a(n) = 1 + Sum_{i=1..m} p_{i} * e_{i} * Product_{j=1..i} (e_{j} + 1).
MAPLE
a:= proc(n) uses numtheory;
add(max(factorset(d)[], 1), d=divisors(n))
end:
seq(a(n), n=1..70); # Alois P. Heinz, Sep 24 2025
PROG
(PARI)
Gpf(n) = if(n==1, 1, vecmax(factorint(n)[, 1]));
a(n) = sumdiv(n, d, Gpf(d));
(PARI) a(n) = my(fac = factorint(n)); 1 + sum(X=1, #fac[, 1], fac[X, 1] * fac[X, 2] * prod(Y=1, X-1, fac[Y, 2]+1));
CROSSREFS
KEYWORD
nonn
AUTHOR
Aloe Poliszuk, Sep 24 2025
STATUS
approved
