This Exercise is in analytic number theory textbook(Apostol)
Is there any arithmetical function $g$ which is a multiplicative function such that
$\sum_{k\leq n} f(gcd(n,k)) = \sum_{d|n} f(d)g(\frac{n}{d})$ for every arithmetical function $f$ ??(in deed, Textbook says me to prove existence, so it certainly exists.)
Let's think about it simply. That is,Consider that $n=p$ which $p$ is prime Then,
$\sum_{k\leq p} f(gcd(p,k)) = (p-1)f(1) + f(p)$ And $ \sum_{d|p} f(d)g(\frac{p}{d}) = f(1)g(p) + f(p)$
So, $g(p)=p-1$ where $f(1)$ is nonzero. Hence we can guess g(n) to be Euler totient function $\phi$. (Is my thinking reasonable?)
Next, Let $n=p^2$ Then, in the same way,
$\sum_{k\leq p^2} f(gcd(p^2,k)) = (p^2-2)f(1) +f(p)+ f(p^2)$ And $ \sum_{d|p^2} f(d)g(\frac{p^2}{d}) = f(1)g(p^2) +f(p)g(p)+ f(p^2)$
In this case, i can not think of $g $. as a Euler totient function. How should i do ?