This is LaTeX code:
[latex]
a^n cos(\frac{n \pi}{2} + a x)
[/latex]