This is LaTeX code:

[latex]
=4\cdot \left(2+\frac{p(p-1)^2(p+1)}{(p-1)^2}\right)=
[/latex]