\sum _{n=1}^{89} \text{cos}(2 n)=\frac{\text{sin}(89)\text{cos}(90)}{\text{sin}(1)}=0