The most confortable way starts with the Taylor expansion...

(1)

... where the are the so called 'Bernoulli numbers'. The first are ...

(2)

Except for all the with n odd are null. From (1) and (2) we derive that...

(3)

... so that the residue of in is ...

Kind regards