If $n\in\mathbb{N}, n\geq2$ and $S=\big \{z\in\mathbb{C}| (z+i)^{n}=(z-i)^{n} \big \}$ then $S=?$ The right answer is $$ S=\left \{\operatorname{ctg}\frac{k\pi}{n} |1\leq k\leq n-1;k\in\mathbb{N}\right \} $$
I started like this $\left(\frac{z+i}{z-i}\right)^{n}=1$. How to continue? Some ideas?
Hint: Let be $\omega_k$, $k = 1,\dots,n$ the $n-$th roots of 1. Then, solve each equation $$\frac{z+i}{z-i} = \omega_k.$$