reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
Multiplicative with a(2) = -5, a(2^e) = -3*2^(2*(e-1)), for e > 1, and a(p^e) = (p^2-1)*p^(2*(e-1)) for p > 2. - Amiram Eldar, Nov 15 2022
Amiram Eldar, <a href="/A338547/b338547.txt">Table of n, a(n) for n = 1..10000</a>
Multiplicative with a(2) = -5, a(2^e) = -3*2^(2*(e-1)), and a(p^e) = (p^2-1)*p^(2*(e-1)) for p > 2. - Amiram Eldar, Nov 15 2022
f[p_, e_] := (p^2 - 1)*p^(2*(e - 1)); f[2, 1] = -5; f[2, e_] := -3*2^(2*(e - 1)); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Nov 15 2022 *)
approved
editing
proposed
approved
editing
proposed
(PARI) a(n) = n^2 * sumdiv(n, d, (-1)^(n/d+1)*moebius(d)/d^2); \\ Michel Marcus, Nov 02 2020
proposed
editing
editing
proposed