OFFSET
1,2
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Multiplicative with a(p^e) = 1 + p + Sum_{primes q <= e} p^q.
Sum_{k=1..n} a(k) ~ c * n^2, where c = (1/2) * Product_{p prime} f(1/p) = 0.77864544487983775708..., where f(x) = (1-x) * (1 + Sum_{k>=1} (1 + 1/x + Sum_{primes q <= k} 1/x^q) * x^(2*k)).
MATHEMATICA
f[p_, e_] := 1 + p + Total[p^Select[Range[e], PrimeQ]]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = {my(f = factor(n)); prod(i = 1, #f~, 1 + f[i, 1] + sum(j = 1, f[i, 2], if(isprime(j), f[i, 1]^j))); }
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
Amiram Eldar, Oct 31 2023
STATUS
approved