Motivated by this question, My question pertains to closed form of the sum $$\sum_{d|n}\frac{\phi(d)}{d}$$
There are some formulae and expressions for $\sum_{n}\frac{\phi(n)}{n}$, but what about when we replace $n$ by divisors of $n$ By seeing this question, I think the sum is multiplicative. Any hints? Thanks beforehand.
After a little observation, the sum is similar to evaluating $\sum_{d|n}d\phi(d)$. Since the function $\sum_{d|n}\frac{\phi(d)}{d}$ is (weakly) multiplicative, therefore, it suffices to evaluate the sum for prime powers. We have, $$\sum_{d|p^k}\frac{\phi(d)}{d}=1+\frac{p-1}{p}+\frac{p^2(p-1)}{p^3}+\ldots+\frac{p^k(p-1)}{p^{k+1}}$$ $$=1+k\frac{p-1}{p}$$ Hence the form of the sum for any general $n=\prod_ip_i^{k_i}$ is: $$\sum_{d|n}\frac{\phi(d)}{d}=\prod_{i}\left(1+k_i\frac{p_i-1}{p_i}\right)$$ where $n$ is the product of $p_i$ distinct primes with multiplicity $k_i$