Possible Duplicate:
Alternative proof that $(a^2+b^2)/(ab+1)$ is a square when it's an integer
I came across this problem, but couldn't solve it.
Let $a,b>0$ be two integers such that $(1+ab)\mid (a^2+b^2)$. Show that the integer $\frac{(a^2+b^2)}{(1+ab)}$ must be a perfect square.
It's a double star problem in Number theory (by Niven). Thanks in advance.