Write the sum using sigma notation:
cos(6) + cos(13) + cos(20) + cos(27) + ...

 =n=0\displaystyle ={\sum_{{{n}={0}}}^{{\infty}}}