Finding Closed Form Representation of A Sum of Trigonometric Functions

66 Views Asked by At

Is there a closed form representation of the sum $$\sum_{k=1}^x \cos\left(\frac{n\pi}{k}\right)$$ where $n$ and $x$ are integers? If not possible, is there a representation that uses special functions?