I was reading Apostle's Analytic Number Theory book and I saw this formula being used in many cases. Why is this true?
$$ \sum_{n=1}^{\infty} \sum_{d|n} f(d,n) = \sum_{d=1}^{\infty} \sum_{n=1}^{\infty} f(d,nd) $$
I don't see the intuition behind it.
Also, will this hold for finite sums, i.e,
$$ \sum_{n=1}^{m} \sum_{d|n} f(d,n) =^{?} \sum_{d=1}^{m} \sum_{n=1}^{m} f(d,nd) $$