For any positive integer $n$, show that $\sum_{d|n}\sigma(d) = \sum_{d|n}(n/d)\tau(d)$
My try :
Left hand side :
$\begin{align} \sum_{d|p^k}\sigma (d) &= \sigma(p^0) + \sigma(p^1) + \sigma(p^2) + \cdots + \sigma(p^k) \\ &= \dfrac{p^{0+1}-1}{p-1} + \dfrac{p^{1+1}-1}{p-1} + \cdots + \dfrac{p^{k+1}-1}{p-1} \\&= \dfrac{1}{p-1}\left( (p + p^2 + \cdots + p^{k+1}) - (k+1)\right) \\&= \dfrac{1}{p-1}\left(\dfrac{p(p^{k+1}-1)}{p-1}- (k+1)\right) \\
\end{align}$
I'm not sure if I am in right path; this doesn't look simple. Any help ?
You can reduce to prime powers to get the job done, but that doesn't get at the heart of the equality.
$$\sum_{d\mid n}\sigma(d)=\sum_{d\mid n}\sum_{r\mid d}r=\sum_{r\mid d\mid n}r=\cdots$$
Can you continue? For each $r\mid n$, how many times is $r$ a summand of the above sum?