This is LaTeX code:
[latex]
a^{\frac{p-1}{q}}
[/latex]