Suppose $w=\exp(2i\pi/3)$. How would I go about integrating
$$\int\frac{3dx}{e^x+e^{wx}+e^{w^2x}}$$
Is there a transformation i can use? This is an entire function; there is no $x$ that will produce poles. If I said that
$$\frac{3}{e^x+e^{wx}+e^{w^2x}}=\sum_{n=0}^\infty A_{3n}\frac{x^{3n}}{(3n)!}$$
Then can't I say that
$$\int\frac{3dx}{e^x+e^{wx}+e^{w^2x}}=\int \sum_{n=0}^\infty A_{3n}\frac{x^{3n}}{(3n)!}=\sum_{n=0}^\infty A_{3n}\int\frac{x^{3n}}{(3n)!}=\sum_{n=0}^\infty A_{3n}\frac{x^{3n+1}}{(3n+1)!}$$
But this wont give me information regarding the generating function I need. Any suggestions?