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