OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16383
FORMULA
Sum_{k=1..n} a(k) ~ c * n^2, where c = (1/2) * Product_{p prime} (1 - 3/p^2 + 2/p^4) / Product_{p prime} (1 - 2/p^2 - 1/p^3) = 0.4313799748... . - Amiram Eldar, Nov 12 2022
MATHEMATICA
f[p_, e_] := (p - 1)*(p + 1)^(e - 1); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Nov 12 2022 *)
PROG
(PARI) A340368(n) = if(1==n, n, my(f=factor(n)); prod(i=1, #f~, (f[i, 1]-1)*((f[i, 1]+1)^(f[i, 2]-1))));
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Antti Karttunen, Jan 06 2021
STATUS
approved