I'm trying to proof this equality which I found on this website:
Euler-Mascheroni constant expression, further simplification
$$\ln(n)=\lim_{M\rightarrow\infty}\sum\limits _{k=1}^{M}\sum\limits _{a=1}^{n-1}\frac{1}{kn-a}-\sum\limits _{k=1}^{M}\frac{n-1}{kn}.$$
My wolfram Mathematica code:
Limit[sum(k=1)^M sum(a=1)^(n-1) 1/(kn-a) - sum(k=1)^M (n-1)/(kn), M -> infinity]
And it gives me this answer:
(1/kn)infinity (1-n+kn Polygamma[0,1-nk]-kn Polygamma [o,n-nk])
And that is not what I expected, so I tried to write the last sum $$\sum\limits _{k=1}^{M}\frac{n-1}{kn}$$ as the harmonic series: $$\frac{(n-1)*Hm}{n}$$ were $$Hm=\sum\limits _{k=1}^{M}\frac{1}{k}$$
So we got:
$$\ln(n)=\lim_{M\rightarrow\infty}\sum\limits _{k=1}^{M}\sum\limits _{a=1}^{n-1}\frac{1}{kn-a}-\frac{(n-1)*Hm}{n}$$
And now I've no idea to complete the equality that it gives me the answer that I was looking for, so does anyone know how to complete this proof?