It is known that for certain natural numbers a,ba, ba,b, the number N=a2+b2ab−1N=\frac{a^{2}+b^{2}}{a b-1}N=ab−1a2+b2 is also a natural number. Find all possible values of NNN.