I don't know how to find $S=\sum_{k=0}^n cos(k \alpha)$ without using complex. Can you help me please find an alternative way of doing it?