Evaluate the sum
Lemma: It holds that
Proof: Consider the function and let us it integrate over the following contour
By the residue theorem it follows that
For the residues we have
The integrals along the sides vanish; hence:
the result follows.
Back to the problem. We have successively: