Computing $f,g$ such that $f(n)=\sum_{d|n}d\varphi(d)$ and $g(n)=\sum_{d|n}\frac{\varphi(d)}{d}$?

99 Views Asked by At

Let that $n$ be a natural number and $\varphi(n)$ be the Euler totient function. Is there any formula or estimation for computing functions $f,g$ such that: $$ f(n)=\sum_{d\mid n}d\varphi(d) $$ and $$ g(n)=\sum_{d\mid n}\frac{\varphi(d)}{d} $$ For $n=p$ as the prime number it is clear that $f(p)=p^2-p+1$ and $g(p)=\frac{2p-1}{p}$.