OFFSET
1,2
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Multiplicative with a(p^e) = 1 + p^2 * (p^(4*floor((e-1)/2)+4) - 1) / (p^4 - 1).
Dirichlet g.f.: zeta(s) * zeta(2*s-4) * Product_{p prime} (1 + 1/p^(s-2) - 1/p^(2*s-4)).
MATHEMATICA
f[p_, e_] := 1 + p^2 * (p^(4*Floor[(e-1)/2]+4) - 1) / (p^4 - 1); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = {my(f = factor(n), p = f[, 1], e = f[, 2]); prod(i = 1, #p, 1 + p[i]^2 * (p[i]^(4*((e[i]-1)\2)+4) - 1) / (p[i]^4 - 1)); }
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
Amiram Eldar, Jul 11 2024
STATUS
approved