OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
FORMULA
a(n) = 0 if n is 1 or not a power of a prime;
a(n) = n if n is a prime;
a(n) = n*(1 -1/p) if n = p^k, k>= 2, p=prime.
MATHEMATICA
f[n_] := Plus @@ Map[Power @@ #1 &, FactorInteger[n]]; mt[n_] := Block[{d = Divisors[n]}, Plus @@ (MoebiusMu /@ (n/d)*f /@ d)]; Table[ mt[n], {n, 93}] (* Robert G. Wilson v, Jan 12 2005 *)
PROG
(PARI)
A008475(n) = { my(f=factor(n)); vecsum(vector(#f~, i, f[i, 1]^f[i, 2])); };
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 31 2004
EXTENSIONS
More terms from Robert G. Wilson v, Jan 13 2005
STATUS
approved