I want to find the first terms of the Laurent's series in $z=-1$
$$f(z)=\frac{e^{\frac{1}{z}}}{z^{3}+1}$$ $$f(z)=\frac{e^{\frac{1}{z}}}{(z+1)(z^{2}-z+1)}$$ $$e^{\frac{1}{z}}=\frac{1}{e}-\frac{z+1}{e}-\frac{(z+1)^{2}}{2e}-\frac{(z+1)^{3}}{6e}+O(z+1)^{4}$$ That's ok. I have some problems with the following espression: $$f(z)=\frac 1 {(z+1)(z^{2}-z+1)}=\frac{1}{z+1}\, \, \, \, \frac{1}{z^{2}-z+1}= $$$$\frac{1}{z+1} \left ( \frac{1}{3}+\frac{z+1}{3}+\frac{2}{9}(z+1)^{2}+\frac{1}{9}(z+1)^{3}+O(z+1)^{4} \right )$$ From Mathematica I know that the first terms of the series are the ones I have written above but I don't know how to get them.Someone can show me and explain the steps? Thank you so much!