This is LaTeX code:
[latex]
\mathop{\mathrm{Res}}(f,\frac{(2k+1)\pi i}{2})=\frac{(-1)^k\, i}{4\pi^2 k(k+1)}
[/latex]