Sum of Cosines of Angles in Arithmetic Progression