Prove that $$\frac{\sigma(n)}{n}=\sum_{d\mid n}\frac{1}{d} ,\forall n\in \mathbb N^*$$
It’s from a number theory textbook , i’ve tried to use to formula of $\sigma(n)$, which is :
$$\prod_{i=1}^{n} \frac{p_i^{a_i+1}-1}{p_i-1} \text{ Where } n=\prod_{i=1}^{n}p_i^{a_i}$$
But it failed.
The definition of $\sigma(n)$ is, that it is defined as the sum over all divisors of $n$
$$\sigma(n)=\sum_{d\mid n} d$$ But thats the same as saying
$$\sigma(n)=\sum_{d\mid n}\frac{n}{d}$$
Dividing by $n$ we get
$$\frac{\sigma(n)}{n}=\sum_{d\mid n}\frac{1}{d} $$
Edit: The equation $$\sigma(n)=\sum_{d\mid n}\frac{n}{d}$$ does hold, because for every divisor $k$ of $n$, there is another divisor $d$ such that $k\cdot d = n$
Therefore, if we sum over the divisors $k$ we can instead sum over $\frac{n}{d}$