For $n\in\mathbb{N}$, determine real and imaginary part of $\left(\frac{i+1}{|i+1|}\right)^n$.
Attempt: $$\left(\frac{i+1}{|i+1|}\right)^n = \frac{(i+1)^n}{|i+1|^n} = (i+1)^n~\cdot~|i+1|^{-n}=\left(\sum_{k=0}^{n}\binom{n}{k}i^{n-k}\right)~\cdot~\left(\sum_{k=0}^{n}\left|\binom{n}{k}i^{n-k}\right|\right)^{-1}$$
Up until this point, this seems useful for me. However, I can't find any way to determine whether the exponent of $i$ is odd or even. I also tried to write down the binomial coefficient of $\binom{n}{k}$, with no success. Thanks for any help!