# Residue Theorem, Find the sum of residues when z is an integer

We have the function $$f(z)=\frac{\pi \cot(\pi z)}{(u + z)^2}$$ I already found the residue at the pole when $z = -u$. However there are more poles when z is an integer. How do I go about finding the sum of these poles? I don't think it's too difficult but I'm probably overlooking something simple. Just a kick in the right direction should do it. Thanks

As you found, poles exist at integer $z$. Assuming $u$ is not an integer (to avoid double poles), and let $n \in \mathrm Z$:
$$\operatorname*{Res}_{z = n}\, f(z) = \lim_{z \to n}\, (z-n)f(z) = \lim_{z \to n}\, \pi \frac{(z-n)}{\sin(\pi z)}\frac{\cos(\pi z)}{(u+z)^2} = \frac{1}{(n+z)^2}$$
{"ft_lang_label":"__label__en","ft_lang_prob":0.8702892,"math_prob":0.9999268,"size":667,"snap":"2020-10-2020-16","text_gpt3_token_len":221,"char_repetition_ratio":0.11010558,"word_repetition_ratio":0.0,"special_character_ratio":0.35832083,"punctuation_ratio":0.088435374,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000002,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-17T06:44:33Z\",\"WARC-Record-ID\":\"<urn:uuid:b8a32bb3-0841-4cea-bdd0-70e0a9b0dcaf>\",\"Content-Length\":\"136285\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:177960a2-0b3a-4720-8f3d-68238b9bddab>\",\"WARC-Concurrent-To\":\"<urn:uuid:93c826d1-2fdc-4da0-9591-7eb1c3a70383>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://math.stackexchange.com/questions/335046/residue-theorem-find-the-sum-of-residues-when-z-is-an-integer\",\"WARC-Payload-Digest\":\"sha1:SBH2KE75M5C2MPTVNZJ3I5FA4M35JQLB\",\"WARC-Block-Digest\":\"sha1:UTP6VIRVPVXA43PBWME5VQ4ZIVKKGPIC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875141749.3_warc_CC-MAIN-20200217055517-20200217085517-00032.warc.gz\"}"}