The series for \(\displaystyle \frac{cot(z)}{z^{4}}\) is \(\displaystyle z^{-5}-\frac{1}{3}z^{-3}-\frac{1}{45}z^{-1}+...............\)
Looking at the coefficient of \(\displaystyle z^{-1}\), we can see the residue is -1/45.
Now, for the residues at k we can use a slightly different approach.
Suppose the power series for f(k+z) was \(\displaystyle a_{-1}z^{-1}+a_{0}+a_{1}z+a_{2}z^{2}+..............\)
\(\displaystyle zf(k+z)=a_{-1}+a_{0}z+a_{1}z^{2}+a_{2}z^{3}+..............\)
We have:
\(\displaystyle a_{-1}=\lim_{z\to 0}zf(k+z)=\lim_{z\to 0}z\cdot \frac{cot(k+z)}{(k+z)^{4}}=\frac{z}{sin(k+z)}\cdot \frac{cos(k+z)}{(k+z)^{4}}\)
Applying L'Hopital to the first factor and find that
\(\displaystyle a_{-1}=\lim_{z\to 0}\frac{1}{(k+z)^{4}}=\frac{1}{k^{4}}\)
This calculation appears knowing in advance that the power series for f(k+z) has only one term with a negative power of z.
Why were there no terms involving \(\displaystyle z_{-2}, \;\ z_{-3},\)?. Since zf(k+z) has a limit at 0, its power series can not have any terms with
negative powers of z. Therefore, every term with the series for f(k+z) must have an exponent of at least -1.