This is LaTeX code:
[latex]
\cos n \pi = (-1)^n
[/latex]