Compute the number of ordered triples of integers (xy,z) 1 <= x, y, z <= 1999 which satisfy:
x^2 + xy + y^2 = y^3 - x^3 and yz + 1 = y^2 + z.
There are 4027 triples of integers.