OFFSET
1,2
LINKS
FORMULA
Multiplicative with a(p^e) = (p^e) * (q^(e+1)-1)/(q-1), where q = 1 for p = 2, and for odd primes p, q = A151799(p), i.e., the previous prime.
Sum_{k=1..n} a(k) ~ c * n^3, where c = (2/9) * Product_{p prime > 2} (p^3/((p+1)*(p^2-prevprime(p)))) = 0.1815217..., where prevprime is A151799. - Amiram Eldar, Dec 24 2022
MATHEMATICA
f[p_, e_] := If[p == 2, 2^e, Module[{q = NextPrime[p, -1]}, p^e*(q^(e + 1) - 1)/(q - 1)]]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Dec 24 2022 *)
PROG
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Antti Karttunen, Mar 23 2021
STATUS
approved