Let be an integer. Evaluate
It can be done using complex variables...
First note that
Parameterize the unit circle in the comples plane with
So the integral becomes
expanding with the binomial theorem we get
each finite sume is its own larent series so the residues are coeffients on the terms so we get