In number theory, the gcd-sum function, also called Pillai's arithmetical function, is defined for every n by
P(n)=∑k=1ngcd(k,n) or equivalently
P(n)=∑d∣ndφ(n/d) where d is a divisor of n and φ is Euler's totient function. it also can be written as
P(n)=∑d∣ndτ(d)μ(n/d) where, τ is the divisor function, and μ is the Möbius function. This multiplicative arithmetical function was introduced by the Indian mathematician Subbayya Sivasankaranarayana Pillai in 1933.
References
(sequence A018804 in the OEIS)