$\frac{a^{2}+b^{2}}{1+ab}$ is a perfect square whenever it is an integer [duplicate]

Possible Duplicate:
Alternative proof that $(a^2+b^2)/(ab+1)$ is a square when it's an integer

Whenever $1+ab$ divides $a^2+ b^2$, I need to prove that $\frac{a^2+b^2}{1+ab}$ will be a perfect square.

This is the last problem in Exercise 1.3 of number theory book by Ivan Niven. The chapter only has dealt with GCD and LCM concepts so far, along with a few division algorithms. However using the abovesaid principles I have failed to reach any solution.

-

marked as duplicate by Zev ChonolesDec 25 '11 at 16:53

This question was marked as an exact duplicate of an existing question.

didnt quite get the result in the search i made before posting this q, thanks anyways to the mods and chandrasekhar – Bhargav Dec 25 '11 at 16:59
New and better solution without using vieta jumping method here math.stackexchange.com/questions/28438/… – Ishan Singh Jan 23 '14 at 6:55

Right this is a IMO $1988$ problem. Check out this link.