Let aa and bb be positive integers such that ab+1ab + 1 divides a2+b2a^2 + b^2. Show that

a2+b2ab+1\frac{a^2 + b^2}{ab + 1}

is the square of an integer.