Consider the sequence:
$$A_n= \frac{\psi(-1/2+n i )- \psi(-1/2-n i)}{2i}- \frac{n}{n^2+1/4} $$
How would you prove that:
$$\lim_{n \to \infty} A_n= \frac{\pi}{2}$$
This sequence converges extremely fast, in fact for $n=10$ we have:
$$\left( \frac{\psi(-1/2+10 i )- \psi(-1/2-10 i)}{2i}- \frac{10}{100+1/4} \right)= \\ = 1.57079632679489661923132169 \ldots$$
Where all the digits shown are the same as for $\pi/2$.
I have found this limit by considering the usual integral $\int_0^1 \frac{dx}{1+x^2}$, using the midpoint rule to derive a Riemann sum, then finding its explicit hypergeometric form, which simplified to the difference of digammas.
I was quite surprised by the accuracy of this method, because it only takes $10$ points to get $25$ correct digits, so my questions are:
What other proofs can you offer for the limit?
Why does it converge so fast? Is it because the midpoint rule is very accurate and the integrated function is very nice?
The motivation for this question is of course, generalization of this result, because any integral of the form:
$$\int_a^b \frac{P(x)}{Q(x)} c^x dx$$
where $P,Q$ are polynomials, can be approximated by a hypergeometric Riemann sum.
$$\begin{align} \frac{\psi(-1/2+n i )- \psi(-1/2-n i)}{2i} &=\frac{\psi(-1/2+n i )- \left(\psi(1/2-n i)-\frac1{-1/2-ni}\right)}{2i}\\ &=\frac{\psi(-1/2+n i )- \psi(1/2-n i)}{2i}+\frac{2n+i}{4n^2+1}\\ &=\frac{\psi(-1/2+n i )- \left(\psi(3/2-n i)-\frac1{1/2-ni}\right)}{2i}+\frac{2n+i}{4n^2+1}\\ &=\frac{\psi(-1/2+n i )- \psi(3/2-n i)}{2i}+\frac{4n}{4n^2+1}\\ &=\frac{\pi\cot{(\pi(3/2-ni))}}{2i}+\frac{4n}{4n^2+1}\\ &=\frac{\pi\cot{(3\pi/2-\pi ni)}}{2i}+\frac{4n}{4n^2+1}\\ &=\frac{\pi\tan{(\pi ni)}}{2i}+\frac{4n}{4n^2+1}\\ &=\frac{\pi i\tanh{(\pi n)}}{2i}+\frac{4n}{4n^2+1}\\ &=\frac{\pi \tanh{(\pi n)}}{2}+\frac{4n}{4n^2+1}\\ \end{align}$$ where I have used the recurrence formula and reflection formula for the digamma function shown here. Then our limit is simply $$\lim_{n\to\infty}\frac{\pi \tanh{(\pi n)}}{2}=\frac{\pi}2$$ as we have $$\lim_{n\to\infty}\tanh{(\pi n)}=1$$