$$\sum_{n=1}^\infty \frac{i^n}{n}$$
I'm not sure how to approach this series to find if it converges/diverges because of the $i^n$. I tried using the comparison test comparing it with $\frac{1}{n}$ and the ratio test, but didn't get anywhere. How would you approach this and look at series of this form or how to look at $i^n$ in an infinite series?
$\sum_{n=1}^\infty\frac{i^n}n=\sum_{n=1}^\infty\frac{i^{2n}}{2n}+ \sum_{n=1}^\infty\frac{i^{2n-1}}{2n-1}=\sum_{n=1}^\infty\frac{(i^2)^{n}}{2n}+ i\sum_{n=1}^\infty\frac{(i^2)^{n-1}}{2n-1}$$=\sum_{n=1}^\infty\frac{(-1)^{n}}{2n}+ i\sum_{n=1}^\infty\frac{(-1)^{n-1}}{2n-1}$
Now, you have two alternating series. Use the Alternating Series Test to see if they converge.
A similar idea goes into how we derive the relation $e^{ix}=\cos x +i\sin x$.