Char. Limit said:
Oh, I see now. Starting with the equation n2 + 1111 = m2, we can subtract n2 from both sides and then factor to obtain 1111=(m+n)(m-n). Now, since m and n are integers, m+n and m-n must also be integers, and therefore factors of 1111. 1111 has only two factors: 11 and 101. Therefore, m+n and m-n must equal 101 and 11, respectively. (assuming that both m and n are positive, and that m>n, which is obvious from the original problem)
So now we have two equations: m+n=101 and m-n=11. Two distinct equations and two unknowns mean that there is exactly one solution. Let's add the two equations to get 2m=112. Therefore, m=56. Substitute m=56 into m-n=11 to get 56=n+11 and therefore n=45.
Finally, square n to get the original number, n2, which is 2025 and the 4-digit number that solves the problem.
Very nice char! This also shows in general that the curve
x^2-y^2=1111
has only finitely many integer solutions. Can we also find the rational solutions? Yes! Let's take an arbitrary line through (56,45) with rational slope t. Such a line has equation
y=t(x-56)+45
The intersection of this line with the curve x^2-y^2=1111 will yield a rational point on the curve (furthermore, I don't think it's difficult to show that this yields all the rational points on the curve). So, we need to calculate the intersection, that is, evaluate the system
\left\{\begin{array}{c} y=tx-56t+45\\ x^2-y^2=1111\end{array}\right.
This is equivalent to
x^2-(tx-56t+45)^2=1111
or
(1-t^2)x^2+(112t^2-90t)x-3136t^2+5040t-3136=0
We know x=56 to be a root, so the factoring goes easy enough:
(x-56)((1-t^2)x+(56t^2-45t+56))
So, we have the following rational solutions:
\left(\frac{56t^2-45t+56}{1-t^2},\frac{56t^2-45t+56}{1-t^2}-56t+45\right)
In particular, there are infinitely many rational solutions to the equation
x^2-y^2=1111
and thus there are infinitely many integer solutions to the Diophantine equation
a^2-b^2=1111c^2
I hope that this was to some interest of people
