OFFSET
1,25
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
If p prime, a(p) = 1. - Bernard Schott, Nov 28 2021
Dirichlet g.f.: Sum_{p prime} p^s/((p^s-1)*(p^s+p-1)). - Sebastian Karlsson, May 05 2022
MATHEMATICA
f[p_, e_] := e/p; d[1] = 0; d[n_] := n * Plus @@ f @@@ FactorInteger[n]; f1[p_, e_] := p^(e-1); s1[1] = 1; s1[n_] := Times @@ f1 @@@ FactorInteger[n]; f2[p_, e_] := -p*(1 - p)^(e - 1); s2[1] = 1; s2[n_] := Times @@ f2 @@@ FactorInteger[n]; a[n_] := DivisorSum[n, d[#]*s2[n/#]/s1[#] &]; Array[a, 100] (* Amiram Eldar, Nov 23 2021 *)
PROG
(PARI)
A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
A003557(n) = (n/factorback(factorint(n)[, 1]));
memoA325126 = Map();
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Nov 23 2021
STATUS
approved