et a and b be positive integers such that ab + 1 divides a2 + b2. Show that
a
2
+
b
2
a
b
+
1
{\displaystyle {\frac {a^{2}+b^{2}}{ab+1}}} is the square of an integer.
Assistant
To solve this, we'll consider positive integers ( a ) and ( b ) such that ( ab + 1 ) divides ( a^2 + b^2 ).
We need to show that (\displaystyle \frac{a^{2}+b^{2}}{ab+1}) is a perfect square, i.e., it's the square of some integer.
Let's let ( k = \frac{a^{2}+b^{2}}{ab+1} ). Since ( ab + 1 ) divides ( a^2 + b^2 ), ( k ) is an integer. Our goal is to show that ( k ) is a perfect square.
From the equation:
[ a^2 + b^2 = k(ab + 1) ]
We rearrange this:
[ a^2 - kab + b^2 - k = 0 ]
Consider this as a quadratic in ( a ):
[ a^2 - (kb)a + (b^2 - k) = 0 ]
For ( a ) to be an integer, the discriminant ( D ) of this quadratic must be a perfect square:
[ D = [kb]^2 - 4(b^2 - k) ]
[ D = k^2b^2 - 4b^2 + 4k ]
[ D = b^2(k^2 - 4) + 4k ]
Similarly, consider specific values of ( k ) and ( b ) where ( D ) is a perfect square.
Let’s try ( k = n^2 ) (since we aim to show ( k ) is a perfect square). Then the equation becomes:
[ a^2 + b^2 = n^2(ab + 1) ]
Simplify:
[ a^2 - n^2ab + b^2 - n^2 = 0 ]
Quadratic in ( a ):
[ a^2 - (n^2b)a + (b^2 - n^2) = 0 ]
Discriminant:
[ D = [n^2b]^2 - 4(b^2 - n^2) ]
[ D = n^4b^2 - 4b^2 + 4n^2 ]
[ D = b^2(n^4 - 4) + 4n^2 ]
Set ( b = n ), we get:
[ D = n^2(n^4 - 4) + 4n^2 ]
[ D = n^2(n^4 - 4 + 4) ]
[ D = n^2(n^4) ]
[ D = n^6 ]
Since ( D ) is a perfect square (( n^3 )), ( a ) is an integer:
[ a = \frac{n^2b \pm n^3}{2} ]
Using ( b = n ) and considering the positive root: