If $n\in\mathbb N$, $$f(n)=\bigg({1+i\over\sqrt2}\bigg)^n+\bigg({1-i\over\sqrt2}\bigg)^n$$ where $i^2=-1$, how much is $f(2017)+f(2013)?$
What I did here is, I expressed:
$(1+i)^2=1+2i-i^2=1+2i-1=2i\\(1-i)^2=1-2i+i^2=1-2i-1=-2i$
So:
$f(2017)=\bigg({1+i\over\sqrt2}\bigg)^n+\bigg({1-i\over\sqrt2}\bigg)^n={(2^{1008}i^{1008})(1+i)\over\sqrt2^{2017}}+{(-2^{1008}i^{1008})(1-i)\over\sqrt2^{2017}}=...$
From here I continued solving this until for both $f(2017)$ and $f(2013)$ I got
$f(2017)={2^{1009}i\over\sqrt2^{2017}}\\f(2013)={-2^{1007}\over\sqrt{2}^{2013}}$
I thought this method would result in much "prettier" answers, but I can't do anything with these 2 to sum them up, so I'm sure that this method is not the required one for solving this.
Hint: $\dfrac{1\pm i}{\sqrt{2}}$ are primitive 8-th root of unity.