This is LaTeX code:
[latex]
g_2=(p^2-p)(p^2-1)=p(p-1)^2(p+1)
[/latex]