# Just another geometric series

Algebra Level pending

For $$w=e^{i(\pi/n)}$$, if the value of $$1+w+w^2+\ldots +w^{n-1}$$ equals to $1+i \cot \left( \frac\pi{kn} \right),$ find $$k$$.

×