OFFSET
1,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
FORMULA
If n = p^w, a power of prime, then a(n) = p-1; if n = 2p, then a(n) = p = n/2.
Additive with a(p^e) = p-1: a(10) = a(2*5) = a(2)+a(5) = (2-1)+(5-1) = 5; a(28) = a(2^2*7) = a(2^2)+a(7) = 1+6 = 7. - Vladeta Jovovic, Oct 23 2001
G.f.: Sum_{k>=1} (prime(k) - 1) * x^prime(k) / (1 - x^prime(k)). - Ilya Gutkovskiy, Aug 18 2021
MAPLE
with(numtheory); a := n -> add(f, f = map(phi, factorset(n)));
seq(a(n), n = 1..81); # Peter Luschny, Mar 30 2014
MATHEMATICA
Join[{0}, Table[Total[EulerPhi[Transpose[FactorInteger[n]][[1]]]], {n, 2, 90}]] (* Harvey P. Dale, Oct 29 2012 *)
PROG
(PARI) A055631(n)=sum(i=1, #n=factor(n)~, n[1, i]-1) \\ M. F. Hasler, Nov 10 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 06 2000
EXTENSIONS
Edited by M. F. Hasler, Nov 10 2016
STATUS
approved