Gap between two Pythagorean triples

diophantine equationselementary-number-theorypythagorean triplesreference-request

Let $s$ and $t$ be two positive integers. I am interested in the following Diophantine system :
$$\mathscr{S}(s,t) :
\left\{
\begin{array}{l}
x^2+y^2=a^2\\
(x-s)^2+(y-t)^2=b^2
\end{array}
\right.$$

where $x, y, a$ and $b$ are integers such that $x>s$ and $y>t$.

I would like to know for which couples $(s,t)$ the system $\mathscr{S}(s,t)$ has an infinity of solutions.

Have you encountered this question before? Do you have any references for me?

Thanks in advance.

► Edit : With the help of a computer program, I tested all the pairs $(s,t)$ with $s\leqslant20$ and $t\leqslant20$. In black, the only pairs $(s,t)$ such that $\mathscr{S}(s,t)$ does not seem to have a solution :

enter image description here

Best Answer

I propose a full solution. I claim that all pairs $(s,t)$ allow for infinitely many solutions to the set of equations, except for those blacked out in the table attached to the question.

Suppose without loss of generality that $s \geq t$. I am going to make a case distinction based on the parity of $s$.

FIRST CASE: Suppose first that $s$ is even and write $s = 2k$. I will investigate under which conditions I can find infinitely many solutions with the explicit choice $b = a - t - 2$. Then, the system becomes $$ x^2+y^2 = a^2 \quad \text{and} \quad (x - s)^2 + (y-t)^2 = (a-t-2)^2. $$ This has the somewhat obvious solution $$ (x,y,a,b) = ( 2k, k^2-1, k^2+1, k^2 - t - 1), $$ that does not quite count as $x = s$ in this case. However, I will use it to generate infinitely many more solutions that do count. Expanding the second equation and substituting the first, we obtain $$ x^2+y^2 = a^2 \quad \text{and} \quad 2a(t+2) + s^2 = 2xs + 2yt + 4t + 4. $$ We now use the general solution to the Pythagorean equation to write $$ x = 2uv, \quad y = u^2 - v^2 \quad \text{and} \quad a = u^2+v^2. $$ With this, we have reduced to a single equation reading $$ 2(u^2+v^2)(t+2) + s^2 = 4uvs + 2(u^2-v^2)t + 4t + 4, $$ or equivalently, $$ 4u^2 - 4suv + (4t+4)v^2 = 4t + 4 - s^2. $$ One can rewrite this in the slightly more friendly form $$ [ 2u - sv ]^2 + (4t + 4 - s^2)v^2 = 4t+4 - s^2. $$ Writing $D = s^2 - 4t - 4$, this can be written very succinctly as $$ \text{Nm}( (2u-sv) + v\sqrt{D} ) = -D. $$ Using the solution to our original pair of equations, we can deduce the solution $(u,v) = (k,1)$ to the above equation. If $D$ would be a non-square and $D > 0$, then the group $\mathbb{Z}[\sqrt{D}]$ would have unit rank $1$, so multiplying our solution by any unit of norm $1$ would yield another solution. The infinitude of such units would then generate us our desired infinitude of solutions. One might worry that these solutions will correspond to $x < s$ or $y < t$, but in the limit, this does not happen. Indeed, when $u$ and $v$ grow, we see that $2u - sv$ must tend to $\sqrt{D}v$, which means that $u$ grows about as fast as $v \cdot (s + \sqrt{D})/2 \gg v$, implying that both $x$ and $y$ will grow as $u$ and $v$ do.

It remains to verify under which conditions my two claims are true. Firstly, since $s \geq t$, it holds that $D > 0$ as soon as $s^2 \geq 4s+4$, which certainly holds for $s \geq 6$. Secondly, suppose that $D$ is a square. Again since $s \geq t$, it holds that $D \geq s^2 - 4s - 4 = (s-2)^2 - 8$. Since also $D < s^2$, this only leaves the two possibilities $D = (s-1)^2$ and $D = (s-2)^2$. However, since $D$ is even, only the second case remains, which corresponds to the case that $t = s - 2$.

Suppose that $t = s - 2$ and apply the argument above with $t$ and $s$ swapped. As before, we are then done as soon as $D = (s-2)^2 - 4s - 4 = s^2 - 8s$ is positive and a non-square. It is positive as soon as $s \geq 10$. It is then also a non-square, as $D = (s - 4)^2 - 16$ and the only even squares with difference $16$ are $16$ itself and $0$.

Combining all the arguments above, we conclude that, if $s \geq t$ and $s$ is even, we can find infinitely many solutions as soon as $s \geq 10$, and if $s \in \{ 6, 8 \}$, we can find then for any $t \neq s - 2$.

SECOND CASE: Suppose now that $s \geq t$ and that $s$ is odd, so write $s = 2k+1$. This time, I investigate when I can find infinitely many solutions with the explicit choice $b = a - t - 1$. Indeed, I claim that the pair of equations $$ x^2+y^2 = a^2 \quad \text{and} \quad (x - s)^2 + (y-t)^2 = (a-t-1)^2 $$ admits the again somewhat silly solution $$ (x,y,a,b) = ( 2k+1, 2k(k+1), 2k^2+2k+1, 2k^2 + 2k - t). $$ If we now use the substitutions the other way around, $$ x = u^2-v^2, \quad y = 2uv \quad \text{and} \quad a = u^2+v^2, $$ we can completely similarly deduce the equation $$ [ (t+1-s)u - tv ]^2 + (2t + 1 - s^2)v^2 = (2t+1-s^2)(t+1-s)/2. $$ to which the non-trivial solution $(u,v) = (k+1, k)$ exists. Again, this is a norm equation in the ring $\mathbb{Z}[\sqrt{D}]$, provided that $D = s^2 - 2t - 1$ is positive and a non-square. We again find infinitely many solutions and to ensure that $x$ and $y$ keep growing too, we must check the growth rate of $u$ with respect to $v$. If $t + 1 - s < 0$, we check that $u$ will grow at the same pace as $v \cdot (\sqrt{D} - t) / (s - t - 1) \gg v$, ensuring the correct growth as soon as $\sqrt{D} > s - 1$, or equivalently, $ t < s - 1 $, which is exactly what we assumed. It remains to check the cases that $s = t$ or $s = t + 1$. In the former case, we see that $u$ grows as $v \cdot (\sqrt{D}+t) \gg v$; we postpone the latter case momentarily, as it turns out we will use a different argument there.

Let us investigate when this happens. Firstly, since $s \geq t$, it holds that $D > 0$ as soon as $s^2 > 2s+1$, which happens as soon as $s \geq 3$. Secondly, suppose $D$ is a square. Again, since $s \geq t$, it holds that $D \geq s^2 - 2s - 1$. Since also $D < s^2$, this forces $D = (s-1)^2$ and as such, $t = s - 1$.

Suppose that we are in the case $t = s - 1$. Then we can use the strategy for even $t$ above, to conclude that we can still find infinitely many solutions as soon as $(s-1)^2 > 4s + 4$ and $D = (s-1)^2 - 4s - 4$ is a non-square. The first condition is satisfied as soon as $s \geq 7$ and for the second, we note that $D = (s - 3)^2 - 12$, and the only squares of difference $12$ are $16$ and $4$, which corresponds to $s = 7$.

Combining the above, we conclude that if $s \geq t$ and $s$ is odd, we can find infinitely many solutions as soon as $s \geq 7$, and if $s \in \{ 3, 5, 7 \}$, then we can do it too unless $t = s - 1$.

CONCLUSION: If one now carefully reads the two conclusions reached above, it follows that the only pairs $(s,t)$ with $s \geq t$ for which we could not possibly find infinitely many solutions are: $$ (1,1), (2,1), (2,2), (3,2), (4,1), (4,2), (4,3), (4,4), (5,4), (6,4), (7,6),(8,6). $$ Of these, it turns out that $(4,1)$, $(4,3)$ and $(8,6)$ do allow infinitely many solutions. Indeed, for the first, the discriminant $D = s^2 - 4t - 4$ is actually still positive. For the latter two, we employ the observation that $4^2 + 3^2 = 5^2$ and $8^2+6^2 = 10^2$. These generate the infinite families of solutions with $(x,y) = (4c, 3c)$ and $(x,y) = (8c,6c)$ respectively.

Finally, I claim that the remaining pairs, $$ (1,1), (2,1), (2,2), (3,2), (4,2), (4,4), (5,4), (6,4), (7,6), $$ really do not admit infinitely many solutions. The argument contains too many case distinctions for me to write it all out here, but let me give you the tools to verify this for yourself. Writing $b = a - n$, my arguments above generate bijections between solutions $(x,y,a,b)$ to the pair of equations in question and solutions $(u,v)$ to the norm equation $$ [ (n-s)u - tv ]^2 + (n^2 - s^2 - t^2)v^2 = (n^2 - s^2 - t^2)(n-s)/2, $$ or with $s$ and $t$ swapped when parametrising the Pythagorean triples differently. It is important to note here that in order to obtain infinitely many solutions from this equation, the quadratic form on the left hand side must be indefinite. Hence we need only consider $0 < n < \sqrt{s^2 + t^2}$. The right hand side must also be integral. These leave only finitely many choices for $n$. Explicitly, one deals with these cases as follows:

For $(1,1), (2,1), (2,2), (4,2)$, there aren't even any valid $n$ to consider because the inequalities are too strict to obtain an integral right hand side for any $n$, so we are immediately done. For $(3,2), (4,4), (7,6)$, there are various $n$ yielding a sensible equation, but none of these turn out to have a solution. Finally, most interestingly, there are the cases of $(5,4)$ and $(6,4)$. In these cases, there are actually infinitely many pairs of solutions $(u,v)$ for some values of $n$. However, if one would work out the growth rates of $u$, they all turn out to be $\ll 0.85v$ and as such, all these infinite solutions will yield negative $x$ or $y$, hence not contributing actual solutions to the problem at hand.

Related Question