OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Multiplicative with a(p) = p^3 + 1, a(p^e) = p^e + 1 for an odd e >= 3, and a(p^e) = p^(e+1) + 1 for an even e.
Dirichlet g.f.: zeta(s) * zeta(2*s-2) * Product_{p prime} (1 + 1/p^(s-3) - 1/p^(2*s-2) - 1/p^(3*s-5) + 1/p^(4*s-5) - 1/p^(4*s-3)).
Sum_{k=1..n} a(k) ~ c * n^4 / 4, where c = (zeta(4)*zeta(6)/zeta(2)) * Product_{p prime} (1 - 1/p^6 + 1/p^11 - 1/p^12) = 0.65813930591740259189... .
MATHEMATICA
f[p_, e_] := p^If[OddQ[e], Max[e, 3], e+1] + 1; 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]^if(f[i, 2]%2, max(f[i, 2], 3), f[i, 2] + 1)); }
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
Amiram Eldar, Jan 31 2024
STATUS
approved