Quadratic diophantine equation is solved for elliptical case and simple hyperbolic case