I’m given a problem for homework and I want to as how to solve it:
does the following sum converge? $$\sum_{n=1}^{\infty} \frac{{i}^{3^n}}{n}$$
It converges since ${i}^{3^n} $ is $-i, \space i, \space -i, \space i, \space -i, \space ...$ and it is $i (-1)^n$. So our given sum is equivalent to the sum $$i \sum_{n=1}^{\infty} \frac{ (-1)^n}{n} $$. But how can I prove without using wolfram alpha that ${i}^{3^n} \equiv i (-1)^n$ ?
Proof by induction. The base case $n=1$ is clear. Now suppose that the claim holds for all positive integers less than or equal to $n$. Then $$ i^{3^{n+1}}=(i^{3^{n}})^3\stackrel{\text{IH}}{=}(i(-1)^n)^3=-i(-1)^{3n}=i(-1)^{3n+1}=i(-1)^{n+1} $$ since $3n+1\equiv n+1$ modulo $2$, where $\text{IH}$ refers to induction hypothesis.