I've got the following integral:
$$ \frac{1}{2\pi i}\oint_\limits{|z|\,=\,R} \frac{z^5}{z-1} e^\frac{2}{z} dz, $$
where $R$ - sufficiently large number.
I've tried to evaluate it with residues. The integrand has a simple pole at $z = 1$ and an essential singularity at $z=0$.
Evaluation of the residue about the pole is trivial: it equals to $e^2$. I tried to deal with the singularity:
$$ \frac{z^5}{z-1} e^\frac{2}{z} = z^4 \frac{1}{1-\frac{1}{z}} e^\frac{2}{z} = \left[z^4 + z^3 + z^2 + z + 1 + \frac{1}{z} + ... \right]\left[1 + \frac{2}{z} + \frac{2}{z^2} + \frac{4}{3z^3} + \frac{2}{3z^4} + \frac{4}{15z^5} + ... \right]. $$
After term-by-term multiplication and collecting terms with $\frac{1}{z}$ I got the residue $\frac{109}{15}$. Therefore, the integral equals to $e^2 + \frac{109}{15}$.
But I am told it's wrong, and I can't find a problem for a long time. Can someone tell, is that solution wrong? Very grateful in advance for your help and time. Thanks!
There are two errors. A minor one is that you forgot to divide the residue by $2\pi i$. And a major one is that, near $0$, you have$$\frac{z^5}{z-1}=-z^5 - z^6 - z^7 -\cdots$$instead of$$\frac{z^5}{z-1}=z^4+z^3+z^2+\cdots$$