Let $n \in \mathbb N$, $n>2$ and $u_{1},u_{2},...,u_{n-1}$ are all root of unity for n.
Proof that for every $z \in \mathbb C$: $$z=\frac{2}{n}\sum_{k=0}^{n-1}(Re(u_{k}\overline z)u_{k})$$
I know that $Re(u_{0})=Re(u_{1})$, $Re(u_{2})=Re(u_{3})$ etc. However then I have a problem with $n$ because I don't know anything about parity of $n$. Moreover I don't know what to use this idea even if I consider two cases: $n=2k$ and $n=2k+1$.
I thought also about $\sum _{{k=0}}^{{n-1}}e^{{\frac {2\pi ik}{n}}}=0$ but I still do not know how to do it.
Are you have any idea?