$$f(z)=\frac{1}{z+1}+\frac{1}{z-1}$$
$$\gamma_j:[0,2\pi]\rightarrow \mathbb{C} \ (j=1,2,3)$$
\begin{align} \gamma_j(t) & =(-1)^j+\frac{1}{2}\exp(it) \text{ for } j=1,2 \\[10pt] \gamma_3(t) & =4\exp(it) \end{align}
I need to compute
$$\int_{\gamma_1}f(z)\, \mathrm{d}z + \int_{\gamma_2}f(z) \,\mathrm{d}z \text{ and } \int_{\gamma_3}f(z) \,\mathrm{d}z.$$
Can I compute them using $$\int_\gamma{dz\over z-a}=2\pi i\> n(\gamma,a)$$
And if so, how is it done?
The curve $\gamma_1$ winds once counterclockwise around $-1.$ It's just a circle of radius $1/2.$ So you can apply the equality you state at the end of the question to $\displaystyle \int_{\gamma_1} \frac{dz}{z+1}.$ But you have the other term, $\displaystyle \int_{\gamma_1} \frac{dz}{z-1}.$ Here you need to note that $z\mapsto\dfrac 1 {z-1}$ is holomorphic everywhere in the interior and on the boundary of $\gamma_1.$ There is a theorem dealing with that situation.
As for $\gamma_3,$ have you drawn the circle and observed how it is related to the two points $1$ and $-1\text{?}$