Problem: Find all $x,y,z\in\mathbb{Z}$ satisfying $x^2 + x = y^2 + y + z^2 + z$.
Approach: It is equivalent to solve $x^2 + x - y^2 - y = z^2 + z$ or $(x-y)(x+y+1) = z(z+1).$ Let $m=x-y$ and $x+y+1=n.$ Then $mn=z(z+1).$ We can find that $x=(m+n-1)/2,y=(n-m-1)/2.$ There are integer solutions iff $n\not\equiv m \mod 2.$