This is LaTeX code:
[latex]
P(n,m)=n^2-n-2(m^2-m)=0
[/latex]