This is the sum of cosines of multiples of the angle `alpha`: `cos(alpha)+ cos(2alpha)+...+cos(n alpha)` Note: if n is not an integer, the fractional portion of the real is truncated to create an integer.
This formula is also found in Schaum's Mathematical Handbook (19.39)