OFFSET
1,2
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 1..10000
FORMULA
Dirichlet g.f.: zeta(s)^2 * Product_{primes p} (1 + 2/p^(2*s)).
Let f(s) = Product_{primes p} (1 + 2/p^(2*s)), then Sum_{k=1..n} a(k) ~ n*(f(1)*(log(n) + 2*gamma - 1) + f'(1)), where f(1) = Product_{primes p} (1 + 2/p^2) = 2.1908700855532557963501937947188223715671192999357721091330157224657649571..., f'(1) = f(1) * Sum_{primes p} (-4*log(p)/(p^2 + 2)) = -3.559220569509264750413960031425742000438433285978558703470289340806139902... and gamma is the Euler-Mascheroni constant A001620.
MATHEMATICA
a[n_] := Times @@ ((3*Last[#] - 1) & /@ FactorInteger[n]); a[1] = 1; Array[a, 100] (* Amiram Eldar, Feb 25 2023 *)
PROG
(PARI) for(n=1, 100, print1(direuler(p=2, n, (1+2*X^2)/(1-X)^2)[n], ", "))
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Vaclav Kotesovec, Feb 25 2023
STATUS
approved