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