Artificial intelligent assistant

How to prove Gauss's Digamma Theorem? Here $\psi(z)$ is digamma function, $\Gamma(z)$ is gamma function. $$\psi(z)=\frac{{\Gamma}'(z)}{\Gamma(z)},$$ For positive integers $m$ and $k$ (with $m < k$), the digamma function may be expressed in terms of elementary functions as: $$\psi\left(\frac{m}{k}\right)=-\gamma-\ln(2k)-\frac{\pi}{2}\cot\left(\frac{m\pi}{k}\right)+2\sum^{[(k-1)/2]}_{n=1}\cos\left(\frac{2\pi nm}{k}\right)\ln\left(\sin \left(\frac{n\pi}{k}\right)\right). $$ How to prove it ?

You can look at this, and the references therein.

**Added** : In fact, a quick Google search gives several references for the proof. Also, if the math does not render well, the Planetmath team suggests to switch the view style to HTML with pictures (you can choose at the bottom of the page).

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy c048cdbde19ac63ec8a2cf58b77ed29d