What is the value of the greatest integer less than or equal to the value of integral
$$\int_C\frac{e^{i\pi z}}{2z^2-5z+2}dz$$
where $C$ be the curve $\cos t+i\sin t, t\in[0,2\pi]$.
I think the value is $4$.I used the residue theorem to evaluate the integral. The answer key shows the answer as $2$. The value exactly I obtained was $\frac{4\pi}{3}$. Is there any mistake that I committed? Any hints? Thanks beforehand.
On where the mistake is: $$\frac{1}{2z^2-5z+2}=\frac{-\frac23}{2z-1}+\frac{\frac13}{z-2}$$ The catch? For the residue at $\frac12$, we'll need to divide numerator and denominator by $2$ to get $\frac{-1/3}{z-\frac12}$. After all, we're comparing to $\frac1{z-r}$; we need $z-\frac12$ instead of $2z-1$ in the denominator.
This is not the full story, of course; the actual problem also has that $e^{i\pi z}$ factor multiplying the residue by $i$. It does look like where the doubling to $\frac{4\pi}{3}$ instead of $\frac{2\pi}{3}$ came from.