1 Introduction and Result

1.1 Introduction

The purpose of this paper is to introduce a seemingly elementary problem. For any given set \(\left\{ a_1, \dots , a_n \right\} \subset {\mathbb {N}}\) (where we assume \(a_1< a_2< \dots < a_n\)), we consider the associated functions \(\cos (a_1 x)\), \(\cos (a_2 x)\),..., \(\cos (a_n x)\) and ask the following question: if x is chosen uniformly at random, what is the chance that all of these n numbers have the same sign? Formally, we are interested in

$$\begin{aligned} {\mathbb {P}}(a_1, \dots , a_n) = \frac{1}{2\pi } \left| \left\{ x\in [0,2\pi ]: \min _{1 \le i \le n} \cos {(a_i x)} >0 \quad \text{ or } \quad \max _{1 \le i \le n} \cos {(a_i x)} < 0 \right\} \right| . \end{aligned}$$

It is clear that this likelihood has to be positive because for values of x near 0 or \(2\pi \), all of the cosines are close to 1. It is easy to see that \({\mathbb {P}}(a_1, \dots , a_n) \ge {1}/{(2a_n)}\). A natural question is how small this quantity can be. Hence, we define

$$\begin{aligned} p_n = \inf _{\left\{ a_1, \dots , a_n \right\} \subset {\mathbb {N}}} \quad {\mathbb {P}}(a_1, \dots , a_n). \end{aligned}$$

It is less clear whether \(p_n\) is strictly positive or what size we would expect it to be. A natural intuition is that if we take the integers \(a_i\) to be large and independent of one other, then the likelihood for each x to have the same sign should be roughly of the order \(2^{-n}\), but there are configurations that are dramatically better than this.

Proposition

For any \(n\ge 2\), we have that

$$\begin{aligned} p_n \le {\mathbb {P}}\left( 1, 3, 9, \dots , 3^{n-1} \right) = \frac{1}{3^{n-1}}. \end{aligned}$$

In general, \(p_n\) appears to decay faster than \(3^{-n}\), but we are not aware of much weaker bounds. For small values of n, much more is understood. In particular, there is a precise result on \(p_2\). Goncalves, Oliveira e Silva, and Steinerberger [6] proved that \(p_2 = 1/3\) and, more precisely,

$$\begin{aligned} {\mathbb {P}}(a_1, a_2) \ge \frac{1}{3} \end{aligned}$$

with equality if and only if \(\{a_1,a_2\}=\gcd (a_1,a_2)\cdot \{1,3\}\). Their result is slightly more general and phrased in a different setting, where it was used to understand sign correlations of eigenfunctions of Schrödinger operators. We refer to Sect. 1.3 for details.

1.2 Result

The main purpose of our paper is to establish that \(p_3 = 1/9\) and to identify configurations for which the value is attained.

Theorem

(Main Result) We have

$$\begin{aligned} {\mathbb {P}}(a_1, a_2, a_3) \ge \frac{1}{9} \end{aligned}$$

with equality if and only if \(\left\{ a_1, a_2, a_3\right\} = \gcd (a_1, a_2, a_3) \cdot \left\{ 1,3,9 \right\} \).

Our proof uses Fourier Analysis to establish that having the \(a_i\) spread over different scales results in probabilities closer to \(2^{-(n-1)}\). Extremal configurations have at least some \(a_i\) relatively small, which is reminiscent of [10]. We use this to deduce that \(a_1\) and \(a_2\) are relatively small, i.e., \(a_1=1\) and \(a_2 \le 7\), and show that

$$\begin{aligned} \text{ if }~a_3 \gg a_2 \quad \text{ then } \qquad {\mathbb {P}}(a_1,a_2, a_3) \sim \frac{1}{2} \cdot {\mathbb {P}}(a_1,a_2). \end{aligned}$$

Combined with the existing result \({\mathbb {P}}(a_1,a_2) \ge p_2 = 1/3\), this shows that \(a_3\) cannot be much larger than \(a_2\). We specifically deduce \(a_3 \le 84\), which reduces the problem to a finite search space. There does not appear to be a fundamental obstacle to generalize the approach to \(p_4\), but the number of cases increases dramatically.

Naturally, one could be tempted to conjecture a general pattern and expect that powers of 3 are the extremal configuration for the problem. This is not the case, as an explicit computation shows

$$\begin{aligned} {\mathbb {P}}\left( 1, 3, 11, 33\right) = \frac{1}{33} < \frac{1}{27} = {\mathbb {P}}\left( 1,3,9,27\right) . \end{aligned}$$

Using Monte-Carlo sampling to narrow down a list of candidates \(1\le a_1<a_2<a_3<a_4\le 105\) and then performing an explicit calculation using Lemma 2.2, we believe that multiples of \(\left\{ 1, 3, 11, 33 \right\} \) are the extremal configuration for \(n=4\). As for \(n=5\), numerical investigation has identified \(\left\{ 1,3,11,35,105\right\} \) as a possible candidate, which shows \(p_5 \le 1/105\). It is again tempting to draw conclusions from these examples. It seems not inconceivable that configurations with the minimal sign correlation have \(a_1=1,a_2=3\), and \(a_n=3a_{n-1}\).

1.3 Related Questions

The paper [6] is concerned with the sign pattern of eigenfunctions of Schrödinger operators \(H= -\Delta + V\) on the real line \({\mathbb {R}}\). For many of these operators, there exists a WKB expansion that allows us to replace the eigenfunction by a trigonometric expansion up to a small error. For the sake of a concrete example, we consider the operator \(H = -\Delta + x^2\) whose eigenfunctions are the Hermite functions \(H_n(x)\). Ordinarily, one would expect the sign of a Hermite function \(H_n\) in two different points \(x \ne y\) to be decoupled or unrelated. However, the sign of \(H_n(1/2)\) and \(H_n(5/2)\) are identical for a set of n with asymptotic density

$$\begin{aligned} \lim _{n\rightarrow \infty } \frac{1}{n}\#\{1\le i\le n:\text {sgn}(H_i(1/2))=\text {sgn}(H_i(5/2))\}=\frac{3}{5}. \end{aligned}$$

The relationship to our problem can be seen from an asymptotic expansion of Hermite functions (valid on any compact interval)

$$\begin{aligned} \frac{ \Gamma (2n+1)}{\Gamma (4n+1)} e^{x^2/2} H_{4n}(x) = \cos {(\sqrt{8n} x)} + {\mathcal {O}}(1/\sqrt{n}) \end{aligned}$$

and the observation that the sequence \(\sqrt{8n} \mod 2\pi \) behaves like a uniformly distributed random variable (in the sense of being uniformly distributed over \([0,2\pi ]\)).

A second related problem is the Lonely Runner Conjecture by Cusick [4] and Wills [12]. In this problem, n runners start in the same spot on a circular track of length 1 and then run with constant speeds \(v_1,v_2,\ldots ,v_n\). The conjecture is that each runner gets lonely at some time, meaning that the runner is distance at least 1/n from all other runners. The problem is known to be difficult and only understood for small n and special settings. We refer to [1,2,3, 7,8,9, 11] for an incomplete list of results. We specifically mention Goddyn-Wong [5], who studied tight configurations of the lonely runner problem, which seem to be of a similar type as our conjectured extremal examples.

Fig. 1
figure 1

For n runners on a circular track of length 1 all starting at 0 and running at a constant (integer) speed, what is the proportion of time that they all spend in the right half (\(+\)) or the left half (−)?

Our problem admits a similar such interpretation (see Fig. 1). In our problem, we can imagine the runners as starting in the same place, and we are asking for the proportion of time that they are either all together on the left-hand side of the track or all together on the right-hand side of the track.

2 Proofs of Results

2.1 Outline of the Proof

The proof proceeds as follows. In Sect. 2.2, we show that \({\mathbb {P}}(1,3,\ldots ,3^{n-1})=1/3^{n-1}\) and then establish two useful lemmas. In Sect. 2.3, we apply our results to the three-dimensional case \({\mathbb {P}}(a,b,c)\). We first revisit a Fourier analysis result from [6]. Using this, we reduce to the case of abc odd in Lemma 2.7 and then to the case \(a=1\) in Lemma 2.8. We then use our results to bound b and c, and by checking these finitely many cases with a computer, we establish our main theorem.

2.2 Notation and Results for General Dimension

We start with some general notation. While we are primarily interested in sign correlation on the interval \([0,2\pi ]\), it is useful at times to consider other intervals. Let \(a_1,a_2,\ldots ,a_n\) be natural numbers. The cosine sign correlation of \((a_1,\ldots ,a_n)\) on a bounded interval \(I\subseteq {\mathbb {R}}\) is defined as

$$\begin{aligned} {\mathbb {P}}_I(a_1,\ldots ,a_n) = \frac{1}{|I|}\cdot \left| \left\{ x\in I:\min _{1\le i\le n} \cos (a_ix)>0 \text { or } \max _{1\le i\le n}\cos (a_ix)<0\right\} \right| . \end{aligned}$$

When \(I=[0,2\pi ]\), we omit the subscript. Define the indicator function

$$\begin{aligned} \chi _{(a_1,\ldots ,a_n)}(x)={\left\{ \begin{array}{ll} 1 &{} \text { if }\, \min _{1\le i\le n}\cos (a_ix)>0 \text {or } \max _{1\le i\le n} \cos (a_ix)<0 \\ 0 &{} \text { otherwise}\end{array}\right. }. \end{aligned}$$

Observe that the sign correlation of \((a_1,\ldots ,a_n)\) can be equivalently expressed as

$$\begin{aligned} {\mathbb {P}}_I(a_1,\ldots ,a_n)=\frac{1}{|I|}\int _I \chi _{(a_1,\ldots ,a_n)}(x) \, dx. \end{aligned}$$
(2.1)

We now prove a result that implies the proposition given in the introduction.

Proposition 2.1

Suppose that \({\mathbb {P}}(a_1,a_2,...,a_n) = {1}/{a_n}\) and \(a_i\) is odd for all i. Then for any positive integer m,

$$\begin{aligned} {\mathbb {P}}(a_1,a_2,...,a_n, 3a_n..., 3^m a_n ) = \frac{1}{3^ma_n}. \end{aligned}$$

Proof

We first show that

$$\begin{aligned} \chi _{(a_1,\ldots ,a_n)}^{-1}(1)=\left[ 0,\frac{\pi }{2 a_n}\right) \cup \left( \pi -\frac{\pi }{2 a_n},\pi +\frac{\pi }{2 a_n} \right) \cup \left( 2\pi -\frac{\pi }{2a_n}, 2 \pi \right] . \end{aligned}$$
(2.2)

All \(a_i\) are odd, so all \(\cos (a_i t)\) are positive in a neighborhood of 0, negative in a neighborhood of \(\pi \), and positive in a neighborhood of \(2\pi \). Since \(\cos (a_i t)\) has period \(2\pi /a_i\) and \(a_n\) is the largest of the \(a_i\)’s, we have

$$\begin{aligned} \left[ 0,\frac{\pi }{2 a_n}\right) \cup \left( \pi -\frac{\pi }{2 a_n},\pi +\frac{\pi }{2 a_n} \right) \cup \left( 2\pi -\frac{\pi }{2a_n}, 2 \pi \right] \subseteq \chi _{(a_1,\ldots ,a_n)}^{-1}(1). \end{aligned}$$

Note that the total length of these intervals is \(2\pi /a_n\), so

$$\begin{aligned} {\mathbb {P}}(a_1,a_2,...,a_n)=\frac{1}{2\pi }\cdot |\chi _{(a_1,\ldots ,a_n)}^{-1}(1)| = \frac{1}{a_n} \end{aligned}$$

implies that (2.2) holds up to a set N of measure 0. Since \(\cos (a_i t)\) is continuous, we see that if \(\chi _{(a_1,\ldots ,a_n)}(x)=1\) for some \(x\in [0,2\pi ]\), then \(\chi _{(a_1,\ldots ,a_n)}\equiv 1\) in some interval containing x. Hence, \(N=\emptyset \), and (2.2) holds.

Now consider \((a_1,\ldots ,a_n,3a_n)\). The period of \(\cos (3a_n t)\) is \(2\pi /(3a_n)\), so on the interval \(I=\left[ 0,\pi /(2 a_n)\right) \), we see that \(\cos (3a_nt)>0\) only for \(t\in [0,\pi /(6a_n))\). On the remaining intervals in \(\chi _{(a_1,\ldots ,a_n)}^{-1}(1)\), we see that \(\cos (3a_nt)<0\) on \((\pi -\pi /(6a_n),\pi +\pi /(6a_n))\) and \(\cos (3a_nt)>0\) on \((2\pi -\pi /(6a_n),2\pi ]\). Combined, we see that

$$\begin{aligned} \chi _{(a_1,\ldots ,a_n,3a_n)}^{-1}(1)=\left[ 0,\frac{\pi }{6 a_n}\right) \cup \left( \pi -\frac{\pi }{6 a_n},\pi +\frac{\pi }{6 a_n} \right) \cup \left( 2\pi -\frac{\pi }{6a_n}, 2 \pi \right] . \end{aligned}$$

From this, we conclude

$$\begin{aligned} {\mathbb {P}}(a_1,\ldots ,a_n,3a_n)=\frac{1}{2\pi }\int _0^{2\pi } \chi _{(a_1,\ldots ,a_n,3a_n)}(x) \, dx=\frac{1}{2\pi }\cdot \frac{2\pi }{3a_n}=\frac{1}{3a_n}. \end{aligned}$$

Observe that if \(a_n\) is odd, then \(3a_n\) is also odd. Hence, the general result follows from induction on m. \(\square \)

Our general approach in the preceding result is to consider where \(\chi _{(a_1,\ldots ,a_n)}\) has value 1. Using this idea, we derive a general method for calculating \({\mathbb {P}}(a_1,\ldots ,a_n)\).

Lemma 2.2

Let \(\ell ={{\,\mathrm{{\text {lcm}}}\,}}(a_1,\ldots ,a_n)\). For each \(m\in \{0,1,\ldots ,4\ell -1\}\), choose a sample point \(x_m^*\in (\pi {m}/{(2\ell )},\pi {(m+1)}/{(2\ell )})\). Then

$$\begin{aligned} {\mathbb {P}}(a_1,\ldots ,a_n)=\frac{\#\{x_m^*:\chi _{(a_1,\ldots ,a_n)}(x_m^*)=1\}}{4\ell }. \end{aligned}$$

Proof

The function \(\cos (a_ix)\) is 0 when \(a_ix=\pi /2+\pi k\) for some \(k\in {\mathbb {Z}}\). Then zeros can only occur when

$$\begin{aligned} x=\frac{\pi }{2a_i}+\frac{\pi k}{a_i}=\frac{\pi (1+2k)}{2a_i}=\pi \cdot \frac{(1+2k)\cdot \ell /a_i}{2\ell }. \end{aligned}$$

Hence, \(\chi _{(a_1,\ldots ,a_n)}\) is constant on intervals of the form \((\pi m / (2\ell ),\pi (m+1)/(2\ell ))\). Each of these intervals has the same length, and the finitely many points of the form \(\pi m / (2\ell )\) on \([0,2\pi ]\) do not affect the integral in (2.1). \(\square \)

Recall that \(p_n=\inf _{\{a_1,\ldots ,a_n\}\subset {\mathbb {N}}}{\mathbb {P}}(a_1,\ldots ,a_n)\). The results of [6] imply \(p_2=1/3\) and Proposition 2.1 implies \(p_3\le 1/9\), so \(p_3\le p_2/3\). Focusing on this factor of 1/3, we show that \({\mathbb {P}}(a_1,\ldots ,a_n)\le {\mathbb {P}}(a_1,\ldots ,a_{n-1})/3\) can only hold when \(a_n\) is sufficiently small with respect to the remaining integers \(\{a_1,\ldots ,a_{n-1}\}\).

Lemma 2.3

If \(a_n> 12\cdot {{{\,\mathrm{{\text {lcm}}}\,}}}(a_1,\ldots ,a_{n-1})\), then

$$\begin{aligned} {\mathbb {P}}(a_1,\ldots ,a_n)> \frac{1}{3} \cdot {\mathbb {P}}(a_1,\ldots ,a_{n-1}). \end{aligned}$$

Note that for values of \(a_n\le 12\cdot {{{\,\mathrm{{\text {lcm}}}\,}}}(a_1,\ldots ,a_{n-1})\), the conclusion of Lemma 2.3 need not hold. For example, Lemma 2.2 allows us to calculate \({\mathbb {P}}(1,3,11)=5/33\) and \({\mathbb {P}}(1,3,11,33)=1/33\).

Proof of Lemma 2.3

Let \(\ell ={{\,\mathrm{{\text {lcm}}}\,}}(a_1,\ldots ,a_{n-1})\). As observed in the preceding lemma, \(\chi _{(a_1,\ldots ,a_{n-1})}\) is constant on any interval of the form \(I=(\pi m/(2\ell ), \pi (m+1)/(2\ell ))\subseteq [0,2\pi ]\). Suppose \(\chi _{(a_1,\ldots ,a_{n-1})}|_I = 1\). The function \(\cos (a_nt)\) completes r full cycles on I for some \(r\in {\mathbb {N}}\). We denote the intervals for these cycles \(I_1,\ldots ,I_r\), and let \(I_{r+1}\) be the remaining portion of I. Decompose

$$\begin{aligned} \begin{aligned} {\mathbb {P}}_I(a_1,\ldots ,a_n)&= \frac{\sum _{j=1}^r|I_j|{\mathbb {P}}_{I_j}(a_1,\ldots ,a_n)+|I_{r+1}|{\mathbb {P}}_{I_{r+1}}(a_1,\ldots ,a_n)}{|I|}\\&\ge \frac{\sum _{j=1}^r|I_j|{\mathbb {P}}_{I_j}(a_1,\ldots ,a_n)}{|I|}. \end{aligned} \end{aligned}$$
(2.3)

Observe that since \(\cos (a_n t)\) completes one full cycle in each \(I_j\) and all remaining components have the same sign, we have that

$$\begin{aligned} {\mathbb {P}}_{I_j}(a_1,\ldots ,a_n)=\frac{1}{2}\cdot {\mathbb {P}}_{I_j}(a_1,\ldots ,a_{n-1})=\frac{1}{2}. \end{aligned}$$

All intervals \(I_j\) have the same length, so this implies

$$\begin{aligned} {\mathbb {P}}_I(a_1,\ldots ,a_n) \ge \frac{r|I_1|}{2|I|}. \end{aligned}$$

Since \(|I|=\pi /(2\ell )\), \(|I_1|=2\pi /a_n\), and \(r=\left\lfloor (\pi /(2\ell ))/(2\pi /a_n)\right\rfloor =\lfloor a_n/(4\ell )\rfloor \), we find

$$\begin{aligned} {\mathbb {P}}_I(a_1,\ldots ,a_n) \ge \frac{4\ell }{2a_n}\cdot \left\lfloor \frac{a_n}{4\ell }\right\rfloor \ge \frac{2\ell }{a_n}\left( \frac{a_n}{4\ell }-1\right) =\frac{1}{2}-\frac{2\ell }{a_n}. \end{aligned}$$

Since the assumption \(a_n> 12\ell \) implies \(2\ell /a_n< 1/6\), we have

$$\begin{aligned} {\mathbb {P}}_{I}(a_1,\ldots ,a_n)> \frac{1}{2}-\frac{1}{6} =\frac{1}{3}=\frac{1}{3}{\mathbb {P}}_I(a_1,\ldots ,a_{n-1}) \end{aligned}$$

on any I where \(\chi _{(a_1,\ldots ,a_{n-1})}\equiv 1\). Hence, \({\mathbb {P}}(a_1,\ldots ,a_n)> {\mathbb {P}}(a_1,\ldots ,a_{n-1})/3\).

Remark 2.4

By also considering an upper bound in the proof of the preceding lemma, one can obtain the bounds

$$\begin{aligned} \frac{1}{2}-\frac{2\ell }{a_n}\le {\mathbb {P}}_I(a_1,\ldots ,a_n) \le \frac{1}{2}+\frac{4\ell }{a_n}. \end{aligned}$$
(2.4)

Hence, we see that as \(a_n\rightarrow \infty \), we have \({\mathbb {P}}_I(a_1,\ldots ,a_n)\rightarrow 1/2\). This allows us to conclude that

$$\begin{aligned}\lim _{a_n\rightarrow \infty } {\mathbb {P}}(a_1,\ldots ,a_n)=\frac{1}{2} \cdot {\mathbb {P}}(a_1,\ldots ,a_{n-1}),\end{aligned}$$

so this formalizes the idea that large values of \(a_n\) multiply sign correlation by a factor of approximately 1/2. The bounds in (2.4) also allow us to find \(a_n\) so that the factor is arbitrarily close to 1/2, and Lemma 2.3 is a special case of this.

2.3 Three Dimensions

We now focus on the three-dimensional case and prove our Main Result. Goncalves, Oliveira e Silva, and Steinerberger considered

$$\begin{aligned} \Phi (x,y)=\text {sgn}(\cos (2\pi x)\cos (2\pi y)). \end{aligned}$$
(2.5)

Using Fourier Analysis, they established the following result for lines on the two-dimensional torus \({\mathbb {T}}^2=[0,1]^2/\sim \).

Lemma 2.5

([6], Lemma 3) Let \(a,b\in {\mathbb {R}}\) be nonzero such that \(a/b=p/q\) for some coprime \(p,q\in {\mathbb {Z}}\). Let \(\alpha ,\beta \in {\mathbb {R}}\) and let \(\gamma (t)=(at-\alpha ,bt-\beta )\) be the corresponding ray on \({\mathbb {T}}^2\). If either p or q are even, then

$$\begin{aligned} \lim _{T\rightarrow \infty } \frac{1}{T}\int _0^T \Phi (\gamma (t)) \, dt =0. \end{aligned}$$

If both p and q are odd, then

$$\begin{aligned} \lim _{T\rightarrow \infty } \frac{1}{T} \int _0^T \Phi (\gamma (t)) \, dt =(-1)^{\frac{p+q}{2}} \frac{8}{\pi ^2 pq} \sum _{\ell =0}^\infty \frac{\cos (2\pi (2\ell +1)(p\beta -q\alpha ))}{(2\ell +1)^2}. \end{aligned}$$

There is one important consequence of this result, which we use multiple times. We state and prove this below.

Corollary 2.6

Let \(a,b\in {\mathbb {R}}\) be nonzero such that \(a/b=p/q\) for some coprime \(p,q\in {\mathbb {Z}}\), and define \(\gamma (t)=(at,bt)\) to be a ray on \({\mathbb {T}}^2\). If either p or q is even, then

$$\begin{aligned} \int _0^1 \Phi (\gamma (t))=0. \end{aligned}$$

If both p and q are odd, then

$$\begin{aligned} \left| \int _0^1 \Phi (\gamma (t))\right| =\frac{1}{|pq|}. \end{aligned}$$

Proof

For \(\alpha =\beta =0\), the function \(\Phi (\gamma (t))\) is 1-periodic, so for any positive integer k, the integral of \(\Phi (\gamma (t))\) on \([k,k+1]\) is the same. Then for any positive integer T,

$$\begin{aligned} \frac{1}{T}\int _0^T \Phi (\gamma (t))=\frac{1}{T}\cdot \sum _{k=0}^{T-1}\int _k^{k+1} \Phi (\gamma (t)) \, dt = \int _0^1 \Phi (\gamma (t)) \, dt. \end{aligned}$$

For these values of T, equality in Lemma 2.5 must hold without the limit. The result immediately follows for p or q even. If p and q are odd, note that \(\alpha =\beta =0\) implies \(p\beta -q\alpha =0\), so combined with \(\sum _{\ell =0}^\infty 1/(2\ell +1)^2 = \pi ^2/8\), we see that

$$\begin{aligned} \left| \int _0^1 \Phi (\gamma (t)) \, dt\right| = \left| \frac{8}{\pi ^2 pq}\sum _{\ell =0}^\infty \frac{1}{(2\ell +1)^2}\right| =\frac{1}{|pq|}. \end{aligned}$$

\(\square \)

We consider lines on the three-dimensional torus \({\mathbb {T}}^3\), which we denote as \(\gamma (t)=(at,bt,ct)\). Define the function

$$\begin{aligned} \Psi (\gamma (t)) = \frac{\Phi (at,bt)+\Phi (at,ct)+ \Phi (bt,ct)-1}{2}, \end{aligned}$$
(2.6)

which takes value 1 when \(\cos (2\pi at),\cos (2\pi bt),\cos (2\pi ct)\) have the same sign and \(-1\) otherwise. Letting I denote the set of all \(x\in [0,2\pi ]\) such that \(\Psi \left( \gamma \left( x/2\pi \right) \right) =1\), a change of variables shows

$$\begin{aligned} \begin{aligned} \int _0^1 \Psi (\gamma (t)) \, dt&= \frac{1}{2\pi } \int _0^{2\pi } \Psi \left( \gamma \left( \frac{x}{2\pi }\right) \right) \, dx \\&= \frac{1}{2\pi }\left( |I|-(2\pi -|I|) \right) = 2\cdot {\mathbb {P}}(a,b,c)-1. \end{aligned} \end{aligned}$$
(2.7)

For the remainder of this section, we fix distinct \(a,b,c\in {\mathbb {N}}\) and select \(p,q,r,s,u,v\in {\mathbb {N}}\) such that \(a/b = p/q\), \(a/c = r/s\), and \(b/c = u/v\) with \(\gcd (p,q)=\gcd (r,s)=\gcd (u,v)=1\). We now give a reduction to the case when abc are all odd.

Lemma 2.7

Suppose \(\gcd (a,b,c)=1\) and \({\mathbb {P}}(a,b,c)\le 1/9\). Then abc are odd and

$$\begin{aligned}\frac{1}{|pq|}+\frac{1}{|rs|}+\frac{1}{|uv|}\ge \frac{5}{9}.\end{aligned}$$

Proof

Since \({\mathbb {P}}(a,b,c)\le 1/9\), (2.7) implies

$$\begin{aligned} \left| \int _0^1 \Psi (at,bt,ct) dt \right| = \left| 1-2\cdot {\mathbb {P}}(a,b,c)\right| \ge \left| 1-2\cdot \frac{1}{9}\right| =\frac{7}{9}. \end{aligned}$$
(2.8)

We show that if ab,  or c are even, then

$$\begin{aligned} \left| \int _0^1 \Psi (at,bt,ct) dt \right| \le \frac{2}{3}, \end{aligned}$$

so (2.8) is not satisfied. First, assume that we have one even integer out of \(\{a,b,c\}\). Without loss of generality, suppose it is c. Then vs are even and pq are odd, so by triangle inequality and Corollary 2.6,

$$\begin{aligned} \begin{aligned} \left| \int _0^1 \Psi (a t,bt,c t)dt\right|&\le \frac{1}{2}\left( \left| \int _0^1\Phi (at,bt)dt\right| + \left| \int _0^1\Phi (a t,c t)dt\right| \right. \\&\left. \quad +\left| \int _0^1\Phi (b t,c t)dt\right| +1\right) \le \frac{1}{2|pq|}+\frac{1}{2} \le \frac{2}{3}. \end{aligned} \end{aligned}$$

Next, assume that we have two even integers out of \(\{a,b,c\}\). Without loss of generality, suppose they are a and b. Then r and u are both even. Regardless of whether one or both of p and q are even, the above inequality still holds. Combined, we see that all three of ab,  and c must be odd. Using the triangle inequality and Corollary 2.6 again on (2.8), we obtain

$$\begin{aligned} \frac{7}{9}&\le \frac{1}{2|pq|}+\frac{1}{2|rs|}+\frac{1}{2|uv|}+\frac{1}{2}. \end{aligned}$$

Rewriting this, we conclude that

$$\begin{aligned} \frac{5}{9} \le \frac{1}{|pq|}+ \frac{1}{|rs|}+\frac{1}{|uv|}. \end{aligned}$$

\(\square \)

Finally, we rule out the case \(a\ne 1\) and conclude with a proof of our main result.

Lemma 2.8

Suppose \(\text {gcd}(a,b,c) = 1\) and \(a<b<c\). If \(a \ne 1\), then \({\mathbb {P}}(a,b,c)> \frac{1}{9}\).

Proof

If a, b, or c is even, then the result follows from Lemma 2.7. Assume then that a, b, and c are all odd, so that p, q, r, s, u, and v are all odd as well. We do not consider the case when both \(a\mid b\) and \(a\mid c\) since this violates \(\gcd (a,b,c)=1\). We also do not consider the case when both \(a\mid b\) and \(b\mid c\) since this would imply \(a\mid c\). The remaining cases can be grouped into the following situations:

  1. (1)

    \(a\not \mid b,a\not \mid c\),

  2. (2)

    \(a\not \mid c,b\not \mid c\),

  3. (3)

    \(a\not \mid b,b\not \mid c\), and

  4. (4)

    \(a\not \mid b,a\mid c,b\mid c\).

By Lemma 2.7, it suffices to show that in these cases,

$$\begin{aligned} \frac{1}{|pq|}+ \frac{1}{|rs|}+\frac{1}{|uv|} < \frac{5}{9}. \end{aligned}$$

We will consider cases (1), (2), and (3) simultaneously. Note that \(1<a<b<c\) implies \(q>p\ge 1\), \(s>r\ge 1\), and \(v>u\ge 1\). If \(a \not \mid b\), it follows that \(p \ge 3\) and \(q \ge 5\). Likewise, \(a \not \mid c\) implies \(r \ge 3\) and \(s \ge 5\), and \(b \not \mid c\) implies \(u \ge 3\) and \(v \ge 5\). In (1), (2), and (3), two out of the following three hold: \(a \not \mid b\), \(a \not \mid c\), or \(b \not \mid c\). Then

$$\begin{aligned} \frac{1}{|pq|}+ \frac{1}{|rs|}+\frac{1}{|uv|}&\le \frac{1}{15}+ \frac{1}{15}+\frac{1}{3} = \frac{7}{15} < \frac{5}{9}. \end{aligned}$$

Thus, in these cases, we see that \({\mathbb {P}}(a, b, c)>1/9\).

Now consider case (4). Note that \(a \not \mid b\), so \(p \ge 3\) and \(q \ge 5\). We consider r, s, u, and v. We know that \(a \mid c\) and \(b \mid c\) with \(a<b\), so \(s > v\). If \(s \ge 7\), we see that

$$\begin{aligned} \frac{1}{|pq|}+ \frac{1}{|rs|}+\frac{1}{|uv|}&\le \frac{1}{15}+ \frac{1}{7}+\frac{1}{3} = \frac{19}{35} < \frac{5}{9}. \end{aligned}$$

Note that \(v>3\) implies \(s\ge 7\) since \(s>v\). Hence, the only possibility to attain \({\mathbb {P}}(a,b,c)\le 1/9\) is \(s = 5\) and \(v = 3\). From the definition of r, s, u, and v, this implies that \(a/c = 1/5\) and \(b/c = 1/3\). We conclude that \(c=5a\) and \(c=3b\), which implies \(b=5a/3\). Thus, we consider triples of the form \(k\cdot \{a,5a/3,5a\}\). Recall that \(\text {gcd}(a,b,c) = 1\), so we must have \(a=3\), and \(\{3,5,15\}\) is the only possibility. A direct check with Lemma 2.2 shows that \({\mathbb {P}}(3,5,15)>1/9\). \(\square \)

Proof of Main Result

By Proposition 2.1, 1/9 is achieved by \(k\cdot \{1,3,9\}\) for any \(k\in {\mathbb {N}}\). We show that no other choices of abc can attain \({\mathbb {P}}(a,b,c)\le 1/9\). It suffices to consider \(a< b< c\) with \(\gcd (a,b,c)=1\). Recall from Lemma 2.7 that if \({\mathbb {P}}(a,b,c) \le 1/9\), then ab,  and c are odd and

$$\begin{aligned} \frac{1}{|pq|}+ \frac{1}{|rs|}+\frac{1}{|uv|} \ge \frac{5}{9}. \end{aligned}$$

In addition, Lemma 2.8 shows that \(a = 1\), which forces \(p = r = 1\), \(q = b\), and \(s = c\). Since \(b < c\), we also have \(u \ge 1\) and \(v \ge 3\). Additionally, c is odd, so \(c \ge b+2\). Combined, we see that

$$\begin{aligned} \frac{1}{|pq|}+ \frac{1}{|rs|}+\frac{1}{|uv|}&\le \frac{1}{b}+ \frac{1}{b+2}+\frac{1}{3}. \end{aligned}$$

Note that for \(b \ge 9\), we have

$$\begin{aligned} \frac{1}{b}+ \frac{1}{b+2}+\frac{1}{3}&\le \frac{1}{9}+ \frac{1}{11}+\frac{1}{3}= \frac{53}{99}< \frac{5}{9}. \end{aligned}$$

Hence, we must have \(b < 9\), and since b cannot be even, it suffices to consider \(b\le 7\). Since \({\mathbb {P}}(a,b)\ge 1/3\) for any ab, it follows from Lemma 2.3 that \(c \le 12b \le 84\). Therefore, if \({\mathbb {P}}(a,b,c)\le 1/9\), we must have \(a=1\), \(b\le 7\), and \(c\le 84\). Computer verification using Lemma 2.2 then establishes the result.