Let $m, n \in \mathbb{N}$. Moreover let's find $a, b$ such that both are inside a contour $C$.
I am asked to prove that $$\int_C\frac1{(z-a)^m}\frac1{(z-b)^n}\,\mathrm{d}z=0.$$
Cauchy's theorem doesn't work here unfortunately because partial fraction decomposition seems pretty impossible.
How can it be done?
Since all singularities of the integrand $$f(z)=\frac1{(z-a)^m(z-b)^n}$$ are inside the integration contour the simplest way to evaluate the integral is to use:
$$\oint_C f(z)dz=-2\pi i\operatorname{Res}(f(z),\infty) =2\pi i \operatorname{Res}\left[\frac1{w^2}f\left(\frac1w\right),0\right]\\ =2\pi i \operatorname{Res}\left[\frac1{w^2}\frac{w^{m+n}}{(1-aw)^m(1-bw)^n},0\right] =2\pi i\delta_{m+n,1}. $$
Thus the integral is zero provided that $m+n\ne1$. If $m,n$ are both positive this is the case.