I have to use residue theorem to find the partial fraction expansion of
$$f(z) = \frac{(z+1)(z+2)(z+5)}{(z-1)(z-2)(z-5)}$$
I can see that the function has singularities at $z=1, 2, 5$
I know what the residue theorem is, but it contains a contour integration of $f$ on a closed path containing some singularities. How shall I get the partial fractions from it?