If each side of a regular polygon of $n$ sides subtend an angle $\alpha$ at the center of the polygon and each exterior angle of the polygon is $\beta$,then prove that $\cos \alpha+\cos(\alpha+\beta)+\cos(\alpha+2\beta)+.....+\cos(\alpha+(n-1)\beta)=0 $
Since this is a regular polygon.Therefore,each $\alpha=\frac{2\pi}{n}$ and since each external angle is $\beta$.So by geometry,$\alpha=\beta.$
$\cos \alpha+\cos(\alpha+\beta)+\cos(\alpha+2\beta)+.....+\cos(\alpha+(n-1)\beta)=\frac{\cos\frac{n\beta}{2}}{\cos\frac{\beta}{2}}\cos\frac{2\alpha+(n-1)\beta}{2}$
Now putting $\alpha=\beta=\frac{2\pi}{n}$ does not give me answer.What mistake did i make?
The mistake is in the summation formula. Here is a correct version:
$$\sum_{j=0}^{n-1}\cos (\alpha+\beta j)=\frac{ \sin \left(\frac{n \beta }{2}\right) }{\sin \left(\frac{\beta }{2}\right)}\cos \left(\alpha+\frac{1}{2} (n -1 )\beta\right).$$
This clearly helps to establish your result.