Consider the contour integral in the complex plane: $$\oint \frac{1}{1+z^5} dz$$ Here the contour is a circle with radius $3$ with centre in the origin. If we look at the poles, they need to satisfy $z^5 = -1$. So the solutions of the poles are given by: \begin{align*} z_0 &= \cos(\frac{\pi}{5}) + i \sin(\frac{\pi}{5})\\ z_1 &= \cos(\frac{3\pi}{5}) + i \sin(\frac{3\pi}{5})\\ z_2 &= \cos(\pi) + i \sin(\pi) = -1\\ z_3 &= \cos(\frac{7\pi}{5}) + i \sin(\frac{7\pi}{5})\\ z_4 &= \cos(\frac{9\pi}{5}) + i \sin(\frac{9\pi}{5}) \end{align*} So one can use Cauchy's formula or the residue theorem to calculate for every solution the integral and then adding them up to get the full integral. But I have the feeling that there needs to be a more simple way of calculating the full contour integral. Can one just calculate the integral for one solution $z_i$ (like the simple solution $-1$) and then multiply by it $5$, suggesting that the others have the same value. This would make the calculation much efficienter.
EDIT: I now see that $4$ solutions are symmetric (the solutions except $z=-1$) in the complex plane. If one approximates the solutions of the poles in decimals, one finds: \begin{align*} z_0 &= 0.81 + 0.58i\\ z_1 &= -0.31 + 0.95i\\ z_2 &= -1\\ z_3 &= -0.31 -0.95i\\ z_4 &= 0.81 -0.58i \end{align*} So there are four symmetric solutions. For instance $z_0$ is symmetric with $z_4$, they are mirrored around the x-axis. Could this mean they cancell each other out so we only need to calculate the integral for $z_2 = -1$?
HINT:
All of the poles lie on the unit circle. Hence, for any values of $R_1>1$ and $R_2>1$, we have
$$\oint_{|z|=R_1}\frac1{1+z^5}\,dz=\oint_{|z|=R_2}\frac1{1+z^5}\,dz$$
Now, what happens for $R_1=3$ and $R_2\to\infty$? The answer is zero. This approach is tantamount to invoking the residue at infinity.
If one insists on summing the residues, then one may proceed in general as follows. First note that if $z^n+1=0$, then $z=z_k=e^{i(2k-1)\pi/n}$ for $k=1,2,\dots,n$.
Next, we calculate the residues of $\frac{1}{z^n+1}$ at $z_k$ using L'Hospital's Rule as follows:
$$\begin{align} \text{Res}\left(\frac1{z^n+1},z=z_k\right)&=\lim_{z\to z_k}\left(\frac{z-z_k}{z^n+1}\right)\\\\ &=\frac{1}{nz_k^{n-1}}\\\\ &=\frac1n e^{-i(2k-1)\pi(n-1)/n}\\\\ &=-\frac1n e^{-i\pi/n}\left(e^{i2\pi/n}\right)^k \end{align}$$
Summing all of the residues reveals for $n>1$
$$\begin{align} \sum_{k=1}^n \text{Res}\left(\frac1{1+z^n},z=z_k\right)&=-\frac1ne^{-i\pi/n}\sum_{k=1}^n\left(e^{i2\pi/n}\right)^k\\\\ &=-\frac1ne^{=i\pi/n} \left(\frac{e^{i2\pi/n}-\left(e^{i2\pi/n}\right)^{n+1}}{1-e^{i2\pi/n}}\right)\\\\ &=0 \end{align}$$
Hence, for $n>1$ the residues of $\frac1{1+z^n}$ add to zero. And we are done!