This is LaTeX code:
[latex]
-1=\cos \pi=\cos -\pi=\cos 3\pi=\cos -3\pi=\ldots
[/latex]