Skip to main content
Springer logoLink to Springer
. 2021 Jul 19;196(3):617–641. doi: 10.1007/s00605-021-01605-w

Finding all S-Diophantine quadruples for a fixed set of primes S

Volker Ziegler 1,
PMCID: PMC8550673  PMID: 34776539

Abstract

Given a finite set of primes S and an m-tuple (a1,,am) of positive, distinct integers we call the m-tuple S-Diophantine, if for each 1i<jm the quantity aiaj+1 has prime divisors coming only from the set S. For a given set S we give a practical algorithm to find all S-Diophantine quadruples, provided that |S|=3.

Keywords: Baker’s method, S-unit equations, S-Diophantine tuples

Introduction

Given an irreducible polynomial fZ[X,Y] and a set A of positive integers we consider the product

Π=a,bAabf(a,b).

It is an interesting question what is the largest prime divisor P(Π) of Π or alternatively what is the number of prime divisors ω(Π) of Π in terms of the size of |A|. In case of f(x,y)=x+y this question was intensively studied by several authors starting with Erdős and Turán [4] who established that in this case ω(Π)log|A|. It was shown by Erdős, Stewart and Tijdeman [3] that this is essentially best possible.

In the case of f(x,y)=xy+1 the investigation was started by Sárközy [8]. It was shown by Győry et.al. that ω(Π)log|A|. However it seems that this lower bound is far from being best possible and the situation is not so clear as in the case f(x,y)=x+y.

One recent approach to this problem was picked up by Szalay and Ziegler [11] who studied so-called S-Diophantine m-tuples. Let S be a finite set of primes and (a1,,am) a m-tuple of positive, distinct integers with a1<<am. Then we call (a1,,am) S-Diophantine, if for each 1i<jm the quantity aiaj+1 has prime divisors coming only from the set S. In other words if A={a1,,am} and Π has only prime divisors coming form S, then (a1,,am) is called a S-Diophantine m-tuple. Szalay and Ziegler [11] conjectured that if |S|=2, then no S-Diophantine quadruple exists. This conjecture has been confirmed for several special cases by Luca, Szalay and Ziegler [5, 1113, 16]. Even a rather efficient algorithm has been described by Szalay and Ziegler [13] that finds for a given set S={p,q} of two primes all S-Diophantine quadruples, if there exist any. However, the algorithm is strictly limited to the case that |S|=2 and does not work (nor any slightly modified version of the algorithm) for |S|3.

In the present paper we establish an algorithm that finds for any set S={p,q,r} of three primes all S-Diophantine quadruples. Unfortunately the algorithm is not so efficient as its counter part for |S|=2. However, when implemented in Sage [14] it takes on a usual PC (Intel i7-8700) – using a single core – about six and a half hours to verify:

Theorem 1

There is no {2,3,5}-Diophantine quadruple.

However the case S={2,3,5} is in some sense the slowest instance for small primes pq and r. Thus within four days of runtime we could establish the following result:

Theorem 2

Let S={p,q,r} with 2p<q<r100. Then all S-Diophantine quadruples are listed in Table 1.

Table 1.

S-Diophantine quadruples

S Quadruples
{2,3,11} (1, 3, 5, 7)
{2,3,29} (1, 5, 7, 23)
{2,11,37} (1, 3, 7, 21)

Thus Theorem 2 raises the following problem:

Problem 1

Are the S-Diophantine quadruples listed in Table 1 all S-Diophantine quadruples with |S|=3?

Although we present the method only in the case that |S|=3 obvious modifications to the algorithm would provide an algorithm that would work for any set S of primes with |S|3. However, already in the case that |S|=4 the algorithm would take instead of several hours several months of computation time. Thus a systematic search for S-Diophantine quadruples in the case |S|=4 seems to be not feasible. Therefore we refer from discussing the case |S|>3 in this paper.

In the next section we remind some of the auxiliary results we need to deal with S-Diophantine quadruples. In Sect. 3 we establish several results that will allow us to find small upper bounds for the relevant unknowns and will also allow us to apply LLL-reduction to reduce these bounds. The LLL-reduction will be discussed in Sect. 4. In Sect. 5 we will give details how to apply the LLL-reduction method to find upper bounds small enough to enumerate all possible S-Diophantine quadruples for a given set S={p,q,r} of three primes.

Auxiliary results

Assume that (abcd) is a S-Diophantine quadruple, with S={p,q,r}. In particular, we assume that a<b<c<d. Moreover, we will assume that p<q<r. Let us write

ab+1=s1=pα1qβ1rγ1bc+1=s4=pα4qβ4rγ4ac+1=s2=pα2qβ2rγ2bd+1=s5=pα5qβ5rγ5ad+1=s3=pα3qβ3rγ3cd+1=s6=pα6qβ6rγ6.

The almost trivial observation that

ab·cd=(s1-1)(s6-1)=(s2-1)(s5-1)=ac·bd

yields the (non-linear) S-unit equation

s1s6-s1-s6=s2s5-s2-s5.

Similar computations lead us to the following system of S-unit equations

s1s6-s1-s6=s2s5-s2-s5,s1s6-s1-s6=s3s4-s3-s4,s2s5-s2-s5=s3s4-s3-s4. 1

Let us call two indices i,j{1,,6} complementary, if i+j=7. Note that if i and j are complementary, then we have (si-1)(sj-1)=abcd. With these notations at hand the following lemmas can be proved (e.g. see [11]) by elementary means.

Lemma 1

The smallest two members of each of the sets

{α1,α2,α5,α6},{α1,α3,α4,α6},{α2,α3,α4,α5}

are equal. Similar statements also hold for the β’s and γ’s

Proof

This follows by p-adic considerations of the system of equations (1) (cf. [11, Proposition 1]).

Lemma 2

Assume that (abcd) is a S-Diophantine quadruple. Then we have

a|gcds2-s1gcd(s2,s1),s3-s1gcd(s3,s1),s3-s2gcd(s3,s2),b|gcds4-s1gcd(s4,s1),s5-s1gcd(s5,s1),s5-s4gcd(s5,s4),c|gcds4-s2gcd(s4,s2),s6-s2gcd(s6,s2),s6-s4gcd(s6,s4),d|gcds5-s3gcd(s5,s3),s6-s3gcd(s6,s3),s6-s5gcd(s6,s5).

Proof

A proof can be found in [11, Lemma 3].

Lemma 3

Let (abc) be a S-Diophantine triple with

ab+1=s1=pα1qβ1rγ1ac+1=s2=pα2qβ2rγ2bc+1=s4=pα4qβ4rγ4.

Then we have:

  • If p=2, then min{α1,α2,α4}1.

  • If p3mod4, then min{α1,α2,α4}=0.

  • If q3mod4, then min{β1,β2,β4}=0.

  • If r3mod4, then min{γ1,γ2,γ4}=0.

Proof

A proof can be found in [12, Lemma 2.2] except for the case that p=2. However, in the case that p=2 we slightly change the proof. That is we assume that min{α1,α2,α4}2 and obtain

a2b2c2=(s1-1)(s2-1)(s3-1)-13(mod4)

which is an obvious contradiction.

In order to obtain a first upper bound in the next section we will apply results on lower bounds for linear forms in (complex and p-adic) logarithms. Therefore let η0 be an algebraic number of degree δ and let

a(X-η1)(X-ηδ)Z[X]

be the minimal polynomial of η. Then the absolute logarithmic Weil height is defined by

h(η)=1δlog|a|+i=1δmax{0,log|ηi|}.

We will mainly need the notation of height for rational numbers. Therefore let us remark that if p/qQ with pq integers such that gcd(p,q)=1, then h(p/q)=max{log|p|,log|q|}. With this basic notation we have the following result on lower bounds for linear forms in (complex) logarithms due to Matveev [6].

Lemma 4

Denote by η1,,ηn algebraic numbers, nor 0 neither 1, by logη1, , logηn determinations of their logarithms, by D the degree over Q of the number field K=Q(η1,,ηn), and by b1,,bn rational integers. Furthermore let κ=1 if K is real and κ=2 otherwise. Choose

Aimax{Dh(ηi),|logαi|}(1in)

and

E=max{1,max{|bj|Aj/An:1jn}}.

Assume that bn0 and logη1,,logηn are linearly independent over Z. Then

log|b1logη1++bnlogηn|-C(n)C0W0D2Ω,

with

Ω=A1An,C(n)=C(n,κ)=16n!κen(2n+1+2κ)(n+2)(4(n+1))n+112enκ,C0=loge4.4n+7n5.5D2log(eD),W0=log(1.5eEDlog(eD)).

In our case of main interest where |S|=3 we can apply results on linear forms in two p-adic logarithms. For a prime p we denote by Qp the field of p-adic numbers with the standard p-adic valuation νp. As above let η1,η2 be algebraic numbers over Q and we regard them as elements of the field Kp=Qp(η1,η2). In our case η1 and η2 will be rational integers, thus Kp=Qp. Similar as in the case of Matveev’s theorem above we have to use a modified height. In particular, we write

h(ηi)maxh(ηi),logp,(i=1,2).

With these notations at hand, let us state the result due to Bugeaud and Laurent [1, Corollary 1]):

Lemma 5

Let b1,b2 be positive integers and suppose that η1 and η2 are multiplicatively independent algebraic numbers such that νp(η1)=νp(η2)=0. Put

E:=b1h(η2)+b2h(η1).

and

E:=maxlogE+loglogp+0.4,10,10logp.

Then we have

νp(η1b1η2b2-1)24p(logp)4E2h(η1)h(η2).

The next lemma is an elementary, but rather useful result due to Pethő and de Weger [7]. For a proof of Lemma 6 we refer to [9, Appendix B].

Lemma 6

Let u,v0,h1 and xR be the largest solution of x=u+v(logx)h. Then

x<max{2h(u1/h+v1/hlog(hhv))h,2h(u1/h+2e2)h}.

A first upper bound

As already mentioned in the previous section we consider the case that |S|=3, i.e. we have S={p,q,r} with P=max{p,q,r} and write

ab+1=s1=pα1qβ1rγ1bc+1=s4=pα4qβ4rγ4ac+1=s2=pα2qβ2rγ2bd+1=s5=pα5qβ5rγ5ad+1=s3=pα3qβ3rγ3cd+1=s6=pα6qβ6rγ6.

Let us write

A=maxi=1,,6{αi},B=maxi=1,,6{βi},C=maxi=1,,6{γi}

and M=max{A,B,C}.

The main result of this section is the following proposition:

Proposition 1

If there exists an S-Diophantine quadruple, then

M<3.62·1023(logP)5log(3.62·1023(logP)5)2.

In the case that S={2,3,5} we have the upper bound

M<1.26·1028

and in the case that S={p,q,r} with p,q,r<100 we have the upper bound

M<2.88·1030.

First, we prove an upper bound for αi,βi and γi with i=1,2,4.

Lemma 7

We have

logs1,logs22.38·1010logplogqlogrlog(2M)

and

logs44.76·1010logplogqlogrlog(2M).

In particular, we have

α1,α22.38·1010logqlogrlog(2M),β1,β22.38·1010logplogrlog(2M),γ1,γ22.38·1010logplogqlog(2M),

and

α44.76·1010logqlogrlog(2M),β44.76·1010logplogrlog(2M),γ44.76·1010logplogqlog(2M).

Proof

Following Stewart and Tijdeman [10] we consider the quantity

T1=pAqBrC=(ab+1)(cd+1)(ac+1)(bd+1)=1+cd+ab-ac-bd(ac+1)(bd+1)=1+θab+1 2

with |θ|<1, A=α1+α6-α2-α5, B=β1+β6-β2-β5 and C=γ1+γ6-γ2-γ5. Note that we have |A|2A, |B|2B and |C|2C. Let us note that log(1+x)2x provided that |x|1/2. Since ab+12 we obtain by taking logarithms

|Λ1|=|Alogp+Blogq+Clogr|<2pα1qβ1rγ1=2s1 3

We apply Matveev’s theorem (Lemma 4) with

D=1,n=3,κ=1,b1=A,b2=B,b3=C,η1=p,η2=q,η3=r,A1=logp,A2=logq,A3=logr.

Therefore we have Emax{A,B,C}2M provided M>2 which we clearly may assume. Thus we obtain

logs1-log2<2.375·1010logplogqlogrlog(2M),

which yields the upper bound for logs1. Since

logs1=α1logp+β1logq+γ1logr

this also yields the upper bounds for α1,β1 and γ1.

If we consider instead of T1 the quantity

T2=pAqBrC=(ac+1)(bd+1)(bc+1)(ad+1)=1+bd+ac-bc-ad(bc+1)(ad+1)=1+θac+1 4

with |θ|<1, A=α2+α5-α3-α4, B=β2+β5-β3-β4 and C=γ2+γ5-γ3-γ4. We end up with the linear form

|Λ2|=|Alogp+Blogq+Clogr|<2pα2qβ2rγ2 5

and again an application of Matveev’s result yields the same upper bound for logs2 and also the same upper bounds for α2,β2 and γ2.

Finally let us note that

s4=bc+1<(ab+1)(ac+1)=s1s2,

which yields after some easy computations the stated upper bounds for logs4, α4, β4 and γ4.

Let us denote by M0 and M4 upper bounds for max{logs1,logs2} and logs4 respectively. Then the previous lemma provides upper bounds for M0 and M4.

Lemma 8

We have M3.79·1012M0(logP)2logM.

Proof

Following again the arguments of Stewart and Tijdeman [10] we consider the following inequality

0bapα3-α5qβ3-β5rγ3-γ5-1=ba·ad+1bd+1-1=b-aa(bd+1)1d

which implies

Λ3:=logba+Alogp+Blogq+Clogr2d, 6

where A=α3-α5, B=β3-β5 and C=γ3-γ5. We apply Matveev’s result with

D=1,n=4,κ=1,b1=1,b2=A,b3=B,b4=C,η1=ab,η1=p,η2=q,η3=r,A1=logmax{a,b},A2=logp,A3=logq,A4=logr.

Since

b<ab+1=exp(α1logp+β1logq+γ1logr)exp(M0)

and max{A,B,C}M we get

1.893·1012M0logplogqlogrlogM>logd-log2.

On the other hand we have

d2>dc+1expmax{Alogp,Blogq,Clogr}exp(Mmin{logp,logq,logr}).

Combining these two inequalities yields the content of the lemma.

Now the proof of Proposition 1 is a combination of Lemmas 7 and 8.

Proof of Proposition 1

By inserting the bound for M0 obtained by Lemma 7 into the bound provided by Lemma 8 we obtain the following inequality

M<9.03·1022(logP)5(log2M)2.

An application of Lemma 6 yields

M<3.62·1023(logP)5log(3.62·1023(logP)5)2.

If we put P=5 and P=100 we obtain the other bounds stated in the proposition.

Although we have an upper bound for M in Proposition 1 this upper bound provides only rather huge bounds for all the exponents. Moreover, the linear form of logarithms (6) is not suitable for applying standard reduction schemes like LLL-reduction. In particular, there are far too many possible pairs (ab) left to apply for each possible pair the LLL-reduction to the linear form of logarithms (6) to get in each case a lower bound. Therefore we give a more detailed account on how to find smaller upper bounds for all the exponents.

First, we will prove that all exponents with one possible exception can be bounded in terms of M0 and M4. In particular, Proposition 2 will be useful in the bound reduction process which we will describe in Sect. 5. Before we can state and prove Proposition 2 we prove another helpful lemma:

Lemma 9

There exists a permutation σ of {1,,6} such that

ασ(1)ασ(2)ασ(3)ασ(4)ασ(5)ασ(6).

and such that one of the following two relations holds:

  • ασ(1)=ασ(2)=ασ(3)ασ(4)ασ(5)ασ(6) and no two indices out of σ(1), σ(2) and σ(3) are complementary,

  • ασ(1)=ασ(2)ασ(3)=ασ(4)ασ(5)ασ(6) and σ(1) and σ(2) are complementary.

Proof

Let σ be any permutation of {1,,6} such that

ασ(1)ασ(2)ασ(3)ασ(4)ασ(5)ασ(6).

Obviously such a permutation exists.

Since Lemma 1 we know that ασ(1)=ασ(2). Assume that σ(1) and σ(2) are not complementary. Then there is exactly one S-unit equation out of the system (1) such that this unit equation contains the index σ(1) but not σ(2). Since ασ(1) is minimal it is equal to one exponent of this unit equation, i.e. ασ(1)=ασ(2)=ασ(3).

If σ(1) and σ(3) are complementary then there is exactly one S-unit equation out of the system (1) that does not contain the indices σ(1) and σ(3) but contains the index σ(2). But since ασ(2) is minimal it is equal to ασ(4) and we have ασ(1)=ασ(2)=ασ(3)=ασ(4). By exchanging the values of σ(2) and σ(3) the numbers σ(1) and σ(2) are complementary and we have found a permutation that satisfies the second case described in the lemma. A similar argument holds if σ(2) and σ(3) are complementary. Thus we have proved: If σ(1) and σ(2) are not complementary, then either the first case holds or the second case holds after rearranging the order of the α’s, i.e. we have found a suitable permutation σ.

Therefore let us assume that σ(1) and σ(2) are complementary. Then there is a unique S-unit equation out of the system (1) such that this unit equation does not contain the indices σ(1) and σ(2). Thus by Lemma 1 we obtain that ασ(3)=ασ(4) and we are in the second case of the lemma.

Similar as in the case of the exponents of p we let τ and ρ be permutations of {1,,6} such that

βτ(1)βτ(2)βτ(3)βτ(4)βτ(5)βτ(6)

and

γρ(1)γρ(2)γρ(3)γρ(4)γρ(5)γρ(6)

respectively. By exchanging the roles of the α’s, β’s and γ’s we can show that permutations τ and ρ with analogous properties as stated in Lemma 9 exist. Let us fix the permutations σ,ρ and τ. We are now in a position to state the next proposition that will prove to be useful in reducing the huge upper bounds we get from Proposition 1.

Proposition 2

Assume that logs1,logs2M0 and that logs4M4. Moreover, let

Bp=logpmax|β|M4/logq|γ|M4/logrνp(qβrγ-1),Bq=logqmax|α|M4/logp|γ|M4/logrνq(pαrγ-1),Br=logrmax|α|M4/logp|β|M4/logqνr(pαqβ-1)

and B=max{Bp,Bq,Br}. Then we have

ασ(5)max{M0+Bp,M4}logp,βτ(5)max{M0+Bq,M4}logq,γρ(5)max{M0+Br,M4}logr.

In particular, we have

max{ασ(5)logp,βτ(5)logq,γρ(5)logr}max{M0+B,M4}:=M5.

Proof

We give only the details for the proof of the upper bound for ασ(5) since the upper bounds for βτ(5) and γρ(5) can be deduced by the same argument.

First, let us assume that we are in the first case of Lemma 9. Let us assume for the moment that |{1,2,4}{σ(1),σ(2),σ(3)}|1. In this case we conclude that |{1,2,4}{σ(4),σ(5),σ(6)}|2 and therefore σ(5){1,2,4} or σ(6){1,2,4}. Thus in any case ασ(5)M4/logp.

Now, let us assume that we are again in the first case of Lemma 9 and that |{1,2,4}{σ(1),σ(2),σ(3)}|=2. We may assume that σ(3){1,2,4}. If either σ(5) or σ(6) are contained in {1,2,4}, then we easily conclude that ασ(5)M4/logp. Thus we may assume that σ(4){1,2,4}. Further, we deduce that σ(3) and σ(4) are complementary, and without loss of generality we may assume that σ(1) and σ(6) as well as σ(2) and σ(5) are complementary. Let us consider the unit equation

sσ(6)sσ(1)-sσ(6)-sσ(1)=sσ(5)sσ(2)-sσ(5)-sσ(2).

Dividing through pασ(1) and collecting the terms not divisible by p on one side of the equation we obtain

qβσ(2)rγσ(2)-qβσ(1)rγσ(1)=pασ(5)-ασ(1)×N

where N is an integer. Thus we deduce that

BlogpBplogpνpqβσ(2)-βσ(1)rγσ(2)-γσ(1)-1ασ(5)-ασ(1)ασ(5)-M0logp

which implies the upper bound for ασ(5). Note that by our choice σ(1),σ(2){1,2,4} the exponents satisfy |βσ(2)-βσ(1)|β4 and |γσ(2)-γσ(1)|γ4.

Assume again that we are in the first case of Lemma 9 and that {1,2,4}={σ(1),σ(2),σ(3)}. In this case we can choose σ such that σ(1) and σ(6) as well as σ(2) and σ(5) are complementary. Now the same line of arguments as in the previous paragraph yields the same upper bound for ασ(5).

Now, we assume that we are in the second case of Lemma 9. Since σ(1) and σ(2) are complementary exactly one of the two is an element of {1,2,4}. Assume now that |{σ(3),σ(4)}{1,2,4}|1, then either σ(5) or σ(6) is contained in {1,2,4} and we deduce in any case that ασ(5)M4/logp. Therefore we may assume that σ(3),σ(4){1,2,4}. However σ(1) and σ(2) are complementary and since σ(3) and σ(4) are not we can choose σ such that σ(3) and σ(5) as well as σ(4) and σ(6) are complementary. By the same reasoning as in the proof of the first case we deduce that

BlogpBplogpνpqβσ(4)-βσ(3)rγσ(4)-γσ(3)-1ασ(5)-ασ(3).

Since we are in the second case of Lemma 9 we know that ασ(1) and ασ(2) are complementary and therefore

{σ(3),σ(4),σ(5),σ(6)}{1,2}

which implies that ασ(3)M0/logp and we obtain the upper bound for ασ(5) also in the second case of the proposition.

The next lemma shows that if M is large, then the indices of the large exponents are of a special form.

Lemma 10

Let us assume that ασ(5)M5/logp,βτ(5)M5/logq and γρ(5)M5/logr. Then either MM0+3M5log(min{p,q,r}) or {σ(6),τ(6),ρ(6)}={3,5,6}.

Proof

Assume that {σ(6),τ(6),ρ(6)}{3,5,6} and let {3,5,6} be such that {σ(6),τ(6),ρ(6)}. We obviously have that

d<spασ(5)qβτ(5)rγρ(5)exp(3M5)

and also

c<s2=pα2qβ2rγ2exp(M0).

Therefore we obtain

max{pασ(6),qβτ(6),rγρ(6)}s6=cd+1exp(M0+3M5).

Now, taking logarithms yields the content of the lemma.

Let us denote by N={0,1,2,} the set of the non negative integers. Now, we can provide upper bounds for the largest exponents.

Proposition 3

Let us assume that M>M0+3M5log(min{p,q,r}), σ(6) and x are complementary indices and that yz is another pair of complementary indices, with y{1,2,4}. If αy=αz<αx (Case I) we put

Mx,y,z=(ax,bx,cx,ay,by,cy,bz,cz)N8:1paxqbxrcx,payqbyrcyexp(M4),ay<ax,and0bzM5logq,0czMor0bzM,0czM5logr,

if αx=αz<αy (Case II) we put

Mx,y,z=(ax,bx,cx,ay,by,cy,bz,cz)N8:1paxqbxrcx,payqbyrcyexp(M4),ax<ay,and0bzM5logq,0czMor0bzM,0czM5logr,

and if αx=αy (Case III) we put

Mx,y,z=(ax,bx,cx,ay,by,cy,bz,cz)N8:1paxqbxrcx,payqbyrcyexp(M4),ax=ay,and0bzM5logq,0czMor0bzM,0czM5logr.

We define

Cp=maxMx,y,zνpqbzrczpayqbyrcy-1qbyrcy-pax-ayqbxrcx-1Case I,Cp=maxMx,y,zνpqbzrczpayqbyrcy-1pay-axqbyrcy-qbxrcx-1Case II,Cp=maxMx,y,zνpqbzrczpayqbyrcy-1pqbyrcy-qbxrcxp-1Case III,

where (·)p denotes the p-free part. Then

ασ(6)M4logp+CpCases I and II;M4+Bplogp+CpCase III.

Proof

Let us assume that Case I holds. Then we consider the S-unit equation

szsy-sz-sy=sσ(6)sx-sσ(6)-sx

which turns into

sz(sy-1)sy-sx-1=sσ(6)(sx-1)sy-sx.

First, we note that νp(sy-sx)=αy=αz and since αx>0 we have

νpsσ(6)(sx-1)sy-sx=ασ(6)-αy. 7

Note that with these notations and assumptions we have after canceling a common factor pαy=pαz the equation

sz(sy-1)sy-sx-1=qβzrγzpαyqβyrγy-1qβyrγy-pαxqβxrγx-1

with non negative exponents αx,αy,βx,βy,γx and γy satisfying αy<αx and

0αxlogp+βxlogq+γxlogr,αylogp+βylogq+γylogrM4.

Moreover due to Lemma 10 we have either 0βzM5logq and 0γzM or 0βzM and 0γzM5logr. That is (αx,βx,γx,αy,βy,γy,βz,γz)Mx,y,z. Thus we conclude that

Cpνpsz(sy-1)sy-sx-1=νpsσ(6)(sx-1)sy-sx=ασ(6)-αy.

Which implies in view of αyM4/logp and (7) the upper bound for ασ(6).

Almost the same arguments apply in the case that αx=αz<αy holds, i.e. that Case II holds. We only have to exchange the roles of x and y.

In Case III, that is we have αx=αy, the proof runs along similar arguments. That is we consider the equation

sz(sy-1)sy-sx-1=sσ(6)(sx-1)sy-sx.

However this time we note that

νp(sy-sx)=αx+νp(qβy-βxrγy-γx-1)M4+Bplogp.

This implies that

ασ(6)νpsz(sy-1)sy-sx-1+νp(sy-sx),

and therefore the upper bound for ασ(6). Finally let us note that a non vanishing factor p of sz(sy-1)sy-sx would imply that νpsz(sy-1)sy-sx-10, thus we may eliminate all possible powers of p in the formula for Cp, which accounts in the usage of p-free parts in the formulas for Case II.

Let us note that we can prove similar results for βτ(6) and γρ(6) by exchanging the roles of pq and r respectively. For the sake of completeness we state the results for βτ(6) and γρ(6) in the “Appendix” but do not provide a proof since the proofs are identical after an appropriate permutation of pq and r.

If we have no explicit bounds for M4 and M5 this proposition is hard to apply. However, if we have small, explicit upper bounds for M4 and M5 we can estimate Cp by applying lower bounds for linear forms in two p-adic logarithms (for details see Sect. 5) which will yield reasonable small bound for M.

The LLL-reduction

In this section we gather some basic facts on LLL-reduced bases, approximation lattices and their applications to Diophantine problems as they can be found in [9, Chapters 5 and 6].

Let LRk be a k-dimensional lattice with LLL-reduced basis b1,,bk and denote by B be the matrix with columns b1,,bk. Moreover, we denote by b1,,bk the orthogonal basis of Rk which we obtain by applying the Gram-Schmidt process to the basis b1,,bk. In particular, we have that

bi=bi-j=1i-1μi,jbj,μi,j=bi,bjbj,bj.

Further, let us define

l(L,y)=minxLx-y,yLmin0xLy,yL,

where · denotes the euclidean norm on Rk. It is well known, that by applying the LLL-algorithm it is possible to give in polynomial time a lower bound for l(L,y)c~1 (see e.g. [9, Section 5.4]):

Lemma 11

Let yRk, z=B-1y. Furthermore we define

  • If yL let i0 be the largest index such that zi00 and put σ={zi0}, where {·} denotes the distance to the nearest integer.

  • If yL we put σ=1.

Finally let

c~2=max1jkb12bj2.

Then we have

l(L,y)2c~2-1σ2b12=c~1.

In our applications we suppose that we are given real numbers η0,η1,,ηk linearly independent over Q and two positive constants c~3,c~4 such that

|η0+x1η1++xkηk|c~3exp(-c~4H), 8

where the integers xi are bounded by |xi|Xi with Xi given upper bounds for 1ik. We write X0=max1is{Xi}. The basic idea in such a situation, due to de Weger [2], is to approximate the linear form (8) by an approximation lattice. Namely, we consider the lattice L generated by the columns of the matrix

A=100001000010C~η1C~η2C~ηk-1C~ηk

where C~ is a large constant usually of the size of about X0k. Let us assume that we have an LLL-reduced basis b1,,bk of L and that we have a lower bound l(L,y)>c~1 with y=(0,0,,-Cη0). Note that c~1 can be computed by using the results of Lemma 11. Then we have with these notations the following lemma (e.g. see [9, Lemma VI.1]):

Lemma 12

Assume that S=i=1k-1Xi2 and T=1+i=1kXi2. If c~12T2+S, then inequality (8) implies that we have either x1=x2==xk-1=0 and xk=-C~η0)C~ηk) or

H1c~4log(C~c~3)-logc~12-S-T. 9

Reduction of the bounds

In this section we describe how we can reduce the rather huge bounds for the exponents αi,βi,γi for i=1,,6 for a given set of primes S={p,q,r} and how it is in practice possible to enumerate for the given set S all S-Diophantine quadruples. We give the full details for the proof of Theorem 1, i.e. the case that S={2,3,5} and will outline the strategy how to find all S-Diophantine quadruples for a general set of three primes S. The reduction process follows in eight steps:

Step I We compute an upper bound for M by using Proposition 1. In the case that S={2,3,5} we obtain M<1.26·1028. Note that in the case that P<100 which is relevant for the proof of Theorem 2 we obtain the bound M<2.88·1030.

Step II We apply the LLL-reduction method explained in Sect. 4 to the linear forms of logarithms (3) and (5) in order to obtain a small bound for M0.

In particular, we apply Lemma 12 to the linear form (3). In the case that S={2,3,5} we put k=3 and η1=log5,η2=log3 and η3=log2. Moreover we have 0A,B,C2M, i.e. we have to put X1=X2=X3=2.52·1028. Moreover let us put c~3=2 and c~4=1. With C~=1088 the assumptions of Lemma 12 are satisfied and we obtain

2exp(-136.4)>|Alog2+Blog3+Clog5|>2pα1qβ1rγ1

which implies logs1136.4. Since the exact same computations also apply to (5) we also obtain that logs2<136.4 and therefore we have M0<136.4 we conclude that s4<s1s2<exp(272.8). Thus we have M4272.8.

Step III By a direct computation we are able to compute Bp, Bq and Br by a brute force algorithm. The search implemented in Sage [14] takes on a usual PC a few seconds. In particular we obtain in the case that S={2,3,5} the bounds

Bplogp=18,Bqlogq=13,Brlogr=8.

By Proposition 2 this yields

ασ(5)392,βτ(5)247,γρ(5)169.

In particular, we have M5=M4272.8.

Step IV In this step we use the theorem of Bugeaud and Laurent (Lemma 5) to estimate the quantities Cp and obtain a new upper bound for ασ(6) due to Proposition 3 (and the upper bounds for Cq and Cr by Propositions 5 and 6 in the “Appendix”). Since the computations for Cq and Cr are similar we give the details only for Cp for Case I note that the upper bounds for Cases II and III can be deduced similarly.

To find an upper bound for Cp we split up the set Mx,y,z into two subsets Mx,y,z,Mx,y,zMx,y,z with

Mx,y,z=(ax,bx,cx,ay,by,cy,bz,cz)N8:0axlogp+bxlogq+cxlogr,aylogp+bylogq+cylogrM4,anday<axand0bzM5logq,0czM

and

Mx,y,z=(ax,bx,cx,ay,by,cy,bz,cz)N8:0axlogp+bxlogq+cxlogr,aylogp+bylogq+cylogrM4,anday<axand0bzM,0czM5logr

and also consider the two quantities

Cp=maxMx,y,zνpqbzrczpayqbyrcy-1qbyrcy-pax-ayqbxrcx-1

and

Cp=maxMx,y,zνpqbzrczpayqbyrcy-1qbyrcy-pax-ayqbxrcx-1.

Of course we have Cp=max{Cp,Cp} and we have to find upper bounds for Cp (see Step IV (a)) and Cp (see Step IV (b)). Similarly we can define Cq,Cq,Cr and Cr which will yield bounds for Cq and Cr respectively.

Step IV (a): In this step we compute an upper bound for Cp. We put

η1=r,η2=qbz(payqbyrcy-1)qbyrcy-pax-ayqbxrcx

and b1=cz and b2=1. We find that

h(η2)max{bzlogq+log(payqbyrcy-1),log(qbyrcy-pax-ayqbxrcx)}M5+M4

since we have 0bzM5logq and

0axlogp+bxlogq+cxlogr,aylogp+bylogq+cylogrM4.

Applying Lemma 5 with this data we obtain a new hopefully smaller upper bound for A=ασ(6).

Step IV (b): In this step we compute an upper bound for Cp. In this case we put η1=q,

η2=rcz(payqbyrcy-1)qbyrcy-pax-ayqbxrcx

and b1=bz and b2=1. We find that

h(η2)max{czlogr+log(sy-1),log(sy-sx)}M5+M4

since we have 0czM5logr and

0axlogp+bxlogq+cxlogr,aylogp+bylogq+cylogrM4.

Again we apply Lemma 5 with this data and we obtain an upper bound for A=ασ(6) in this case.

Similarly we find upper bounds in Cases II and III. We also find upper bounds for B=βτ(6) and C=γρ(6) by using Propositions 5 and 6 instead of Propositions 3.

In the case that S={2,3,5} we obtain

A<7.17·108,B<1.73·108,C<6.33·107.

Step V We repeat the process of the Steps II–IV iteratively with the new found bounds for M0 and M four more times and will find significantly smaller bounds. In the case that S={2,3,5} we obtain after five LLL-reductions the upper bounds M0<33.624, M4=M5<67.248 and

A<4.51·106,B<1.3·106,C<1.01·106.

We implemented the Steps I–V in Sage. It took a usual desktop PC only a few seconds to obtain the bounds stated in Step V. Before we proceed with Step VI let us summarize what we proved so far in the case that S={2,3,5}:

Proposition 4

Assume that (abcd) is a {2,3,5}-Diophantine quadruple with a<b<c<d. Then logs1,logs2<33.624 and logs4<67.25.

Step VI In this step we find all {p,q,r}-Diophantine triples (abc) such that log(ab+1)=logs1,log(ac+1)=logs2<M0 and log(bc+1)=logs4<M4. Therefore we proceed as follows:

  1. We enumerate all S-units s4=pα4qβ4rγ4 with logs4<M4.

  2. We enumerate all S-units s2=pα2qβ2rγ2 with logs2<min{logs4,M0} and s2s4. In particular, we consider only those s2 which satisfy γ2>γ4 in case that α2α4 and β2β4.

  3. We compute for all pairs s2,s4 the quantity Bc=s4-s2gcd(s2,s4). Due to Lemma 2 we have cBc. If (Bc-1)Bc+1<s4 we discard the pair s2,s4 since otherwise we would have
    bc+1<(Bc-1)Bc+1<s4=bc+1,
    a contradiction.
  4. We enumerate all S-units s1=pα1qβ1rγ1 with s1<s2 such that
    • if p=2 and α4,α2>1, then α11;
    • if p3(mod4) and α4,α2>0, then α1=0;
    • if q3(mod4) and β4,β2>0, then β1=0;
    • if r3(mod4) and γ4,γ2>0, then γ1=0.
    That is we enumerate all S-units s1 such that the content of Lemma 3 is not violated for the S-Diophantine triple (abc).
  5. For all these triples (s1,s2,s4) we compute a=(s1-1)(s2-1)s4-1. We discard all triples (s1,s2,s4) for which a is not the square of an integer. For the remaining triples we compute a=a.

  6. We discard all triples (s1,s2,s4) for which b=s1-1a and c=s2-1a are not integers.

  7. We store all triples (abc) in a list Triples.

In the case that S={2,3,5} the list Triples consists of the S-Diophantine triples

{(1,3,5),(1,7,9),(1,15,17),(1,23,89),(1,5,19),(1,2,4),(1,5,7),(1,47,49),(1,19,485),(1,7,23),(1,17,19),(1,31,47),(1,49,119),(1,7,3749),(1,3,53),(1,11,29),(1,9,71),(1,2,7),(1,7,17),(1,4,11),(1,11,49),(3,13,83),(1,17,127),(2,7,1562),(1,19,1151),(1,3,8),(1,9,11),(1,17,47),(1,159,161),(1,29,31),(1,19,71),(1,127,287),(1,7,107),(1,89,8191),(1,24,26),(1,44,71),(1,29,431)}.

Let us note that Step VI is the bottleneck of our algorithm. It took more than six and a half hours to find all these triples using a usual PC (Intel i7-8700) on a single core.

Step VII Let us fix one S-Diophantine triple (abc) from the list Triples computed in Step VI. Let us assume that this triple can be extended to a S-Diophantine quadruple. In this step we reduce the previously found huge upper bound for s3=ad+1 by using the LLL-reduction (Lemma 12). Therefore we consider the inequality

ba·ad+1bd+1-1=b-aabd+a<1ad+1

and taking logarithms we obtain

log(b/a)+(α3-α5)logp+(β3-β5)logq+(γ3-γ5)logr<2s3 10

We apply Lemma 12 to this Diophantine inequality that is we have

k=3,η1=logr,η2=logq,η4=logp,η0=log(b/a).

Moreover we put X1=A, X2=B and X3=C, where AB and C are the bounds for ασ(6),βτ(6) and γρ(6) found in Step V. We distinguish now between two cases.

Case I Let us assume that pqr and a/b are not multiplicatively dependent. For example this happens for the {2,3,5}-Diophantine triple (1, 7, 9). We compute l(L,y) by using Lemma 11 with

A=100010ClogrClogqClogp=100010C~log5C~log3C~log2

and

y=(0,0,--C~log(b/a))T=(0,0,--C~log7)T.

With C~=1025 we obtain by Lemma 12 the bound logs3<46.6 in the case of the {2,3,5}-Diophantine triple (1, 7, 9).

Case II Let us assume that pqr and a/b are multiplicatively dependent and that b/a=pxpqxqrxr. Then Inequality (10) turns into

(α3-α5+xp)logp+(β3-β5+xq)logq+(γ3-γ5+xr)logr<2s3.

Thus we compute l(L,y) by using Lemma 11 with

A=100010ClogrClogqClogp

and y=(0,0,0)T. We put X1=A+|xp|, X2=B+|xq| and X3=C+|xr| and C~ sufficiently large and obtain an upper bound for logs3. For example in the case of the {2,3,5}-Diophantine triple (1, 3, 5) we have x2=x5=0 and x3=1 and obtain with this strategy logs3<39.4 if we choose C~=1025.

Let us note that in the case that S={2,3,5} we obtain in all cases the upper bound logs3<40.

Step VIII Let M3 denote the upper bound for logs3 found in Step VII. We enumerate all ad+1=s3=pα3qβ3rγ3 with logs3<M3 and for each triple (abc) found in Step VI we compute d=s3-1a. We discard all quadruples (abcd) for which d is not an integer and for which bd+1 and cd+1 are not S-units.

Note that in the case that S={2,3,5} we have M3=40. However a rather quick computer search yields that no triple can be extended to a quadruple and the proof of Theorem 1 is therefore complete.

Remark 1

Finally let us note that the algorithm presented in this paper would also work for arbitrary S with |S|3 after some modifications. For instance in Step IV we would have to apply the results of Yu on linear forms in p-adic logarithms (e.g. the results from [15]) instead of the results due to Bugeaud and Laurent [1] on linear forms in two p-adic logarithms. This will lead to much larger bounds for M0 and M5 than what we get in the case |S|=3.

Moreover, Step VI in which we search for extendable triples seems to get unfeasible in the case |S|4. Thus all together a systematic search for S-Diophantine quadruples or even quintuples in the case |S|4 seems to be unfeasible with the method presented in this paper.

Appendix: Bounds for βτ(6) and γρ(6)

In this appendix we explicitly state the upper bounds for βτ(6) and γρ(6) we get by adjusting the proof of Proposition 3. A bound for βτ(6) is given by:

Proposition 5

Let us assume that M>M0+3M5log(min{p,q,r}), τ(6) and x are complementary indices and that yz is another pair of complementary indices, with y{1,2,4}. If βy=βz<βx (Case I) we put

Mx,y,z=(ax,bx,cx,ay,by,cy,az,cz)N8:1paxqbxrcx,payqbyrcyexp(M4),by<bx,and0azM5logp,0czMor0azM,0czM5logr,

if βx=βz<βy (Case II) we put

Mx,y,z=(ax,bx,cx,ay,by,cy,az,cz)N8:1paxqbxrcx,payqbyrcyexp(M4),bx<by,and0azM5logp,0czMor0azM,0czM5logr,

and if βx=βy (Case III) we put

Mx,y,z=(ax,bx,cx,ay,by,cy,az,cz)N8:1paxqbxrcx,payqbyrcyexp(M4),bx=by,and0azM5logp,0czMor0azM,0czM5logr.

We define

Cq=maxMx,y,zνqpazrczpayqbyrcy-1payrcy-paxqbx-byrcx-1Case I,Cq=maxMx,y,zνqpazrczpayqbyrcy-1payqby-bxrcy-paxrcx-1Case II,Cq=maxMx,y,zνqpazrczpayqbyrcy-1qpayrcy-paxrcxq-1Case III,

where (·)q denotes the q-free part. Then

βτ(6)M4logq+CqCases I and II;M4+Bqlogq+CqCase III.

A bound for γρ(6) is given by:

Proposition 6

Let us assume that M>M0+3M5log(min{p,q,r}), ρ(6) and x are complementary indices and that yz is another pair of complementary indices, with y{1,2,4}. If γy=γz<γx (Case I) we put

Mx,y,z=(ax,bx,cx,ay,by,cy,az,bz)N8:1paxqbxrcx,payqbyrcyexp(M4),cy<cx,and0azM5logp,0bzMor0azM,0bzM5logq,

if αx=αz<αy (Case II) we put

Mx,y,z=(ax,bx,cx,ay,by,cy,az,bz)N8:1paxqbxrcx,payqbyrcyexp(M4),cx<cy,and0azM5logp,0czMor0azM,0czM5logr,

and if αx=αy (Case III) we put

Mx,y,z=(ax,bx,cx,ay,by,cy,az,bz)N8:1paxqbxrcx,payqbyrcyexp(M4),cx=cy,and0azM5logp,0bzMor0azM,0bzM5logq.

We define

Cr=maxMx,y,zνrpazqbzpayqbyrcy-1payqby-paxqbxrcx-cy-1Case I,Cr=maxMx,y,zνrpazqbzpayqbyrcy-1payqbyrcy-cx-paxqbx-1Case II,Cr=maxMx,y,zνrpazqbzpayqbyrcy-1rpayqby-paxqbxr-1Case III,

where (·)r denotes the r-free part. Then

γρ(6)M4logr+CrCases I and II;M4+Brlogr+CrCase III.

Funding

Open access funding provided by Paris Lodron University of Salzburg.

Footnotes

The author was supported by the Austrian Science Fund (FWF) under the Project I4406.

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Bugeaud Y, Laurent M. Minoration effective de la distance p-adique entre puissances de nombres algébriques. J. Number Theory. 1996;61(2):311–342. doi: 10.1006/jnth.1996.0152. [DOI] [Google Scholar]
  • 2.de Weger BMM. Solving exponential Diophantine equations using lattice basis reduction algorithms. J. Number Theory. 1987;26(3):325–367. doi: 10.1016/0022-314X(87)90088-6. [DOI] [Google Scholar]
  • 3.Erdős P, Stewart CL, Tijdeman R. Some Diophantine equations with many solutions. Compositio Math. 1988;66(1):37–56. [Google Scholar]
  • 4.Erdős P, Turan P. On a problem in the elementary theory of numbers. Am. Math. Monthly. 1934;41(10):608–611. doi: 10.1080/00029890.1934.11987659. [DOI] [Google Scholar]
  • 5.Luca F. Diophantine S-quadruples with two primes which are twin. Acta Math. Hungar. 2019;159(2):589–602. doi: 10.1007/s10474-019-00942-5. [DOI] [Google Scholar]
  • 6.Matveev, E.M.: An explicit lower bound for a homogeneous rational linear form in logarithms of algebraic numbers. II. Izv. Ross. Akad. Nauk Ser. Mat. 64(6), 125–180 (2000)
  • 7.Pethő A, de Weger BMM. Products of prime powers in binary recurrence sequences. I. The hyperbolic case, with an application to the generalized Ramanujan-Nagell equation. Math. Comp. 1986;47(176):713–727. doi: 10.2307/2008185. [DOI] [Google Scholar]
  • 8.Sárközy GN. On a problem of P. Erdős. Acta Math. Hungar. 1992;60(3–4):271–282. doi: 10.1007/BF00051645. [DOI] [Google Scholar]
  • 9.Smart NP. The algorithmic resolution of Diophantine equations. London Mathematical Society Student Texts. Cambridge: Cambridge University Press; 1998. [Google Scholar]
  • 10.Stewart CL, Tijdeman R. On the greatest prime factor of (ab+1)(ac+1)(bc+1) Acta Arith. 1997;79(1):93–101. doi: 10.4064/aa-79-1-93-101. [DOI] [Google Scholar]
  • 11.Szalay L, Ziegler V. On an S-unit variant of Diophantine m-tuples. Publ. Math. Debrecen. 2013;83(1–2):97–121. doi: 10.5486/PMD.2013.5521. [DOI] [Google Scholar]
  • 12.Szalay, L., Ziegler, V.: S-Diophantine quadruples with two primes congruent to 3 modulo 4. Integers, 13:Paper No. A80, 9, (2013)
  • 13.Szalay L, Ziegler V. S-Diophantine quadruples with S={2,q} Int. J. Number Theory. 2015;11(3):849–868. doi: 10.1142/S1793042115500475. [DOI] [Google Scholar]
  • 14.The Sage Developers. SageMath, the Sage Mathematics Software System (Version 8.8), 2019. https://www.sagemath.org
  • 15.Yu K. p-adic logarithmic forms and group varieties. III. Forum Math. 2007;19(2):187–280. [Google Scholar]
  • 16.Ziegler, V.: On the existence of S-Diophantine quadruples. Glas. Mat. Ser. III 54(74(2)), 279–319 (2019)

Articles from Monatshefte Fur Mathematik are provided here courtesy of Springer

RESOURCES