Vieta jumping is awesome!

Number Theory Level 2

Let $$x$$ and $$y$$ be positive integers such that $$xy|x^2+y^2+1.$$Find the value of $\dfrac{x^2+y^2+1}{xy}$

×