OFFSET
1,6
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
MATHEMATICA
f1[p_, e_] := If[OddQ[e], p^e, 1]; f2[p_, e_] := If[OddQ[e], e/p, 0]; a[1] = 0; a[n_] := (Times @@ f1 @@@ (f = FactorInteger[n])) * (Plus @@ f2 @@@ f); Array[a, 100] (* Amiram Eldar, Feb 23 2022 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 23 2022
STATUS
approved