# Count the ordered triplets

Number Theory Level 2

$x^2+y^2-z^2=1997$

Find number of ordered triplets $$(x,y,z)$$ of integers $$x$$,$$y$$,$$z$$ satisfying the above equation.

$$\bullet$$ Enter 777 as your answer if the answer is infinite.

×