Math-6059 · mathematics · Mathematics

Math-6059

Erdős Problem #1005

Status Solved · erdosproblems.comLLM status Solved from source status

Erdős problems openaigpt 6 astra ultragpt pro 5.2 55% cataloguedSolvedSolved

Statement

Fix an integer n>=4. Let F_n be the Farey sequence of order n: the list of all reduced fractions a/b in [0,1] with 0<=a<=b<=n and gcd(a,b)=1, arranged in increasing numerical order. Write this sequence as a_1/b_1 < a_2/b_2 < ... < a_M/b_M. Define f(n) to be the largest integer f with the property: for all indices 1<=k<l<=M with l-k <= f, one has $a_k - a_l$$b_k - b_l$ >= 0. Equivalently: any two Farey fractions within index-distance <= f are "similarly ordered", meaning the ordering of numerators agrees with the ordering of denominators (allowing ties). Question: estimate f(n). In particular, does there exist a constant c>0 such that f(n) = $c+o(1)$ n?

Restatement from Math-6059-A2 r1, with the source manuscript’s qualifications.

Original problem on erdosproblems.com

Statement licence: CC-BY-4.0 · Source file

Contributions 2

Math-6059-A1 · No claim recorded · LLM-generated · gpt 6 astra ultra ·

GPT 6 Astra Ultra attempt on Math-6059

Erdős Problem 1005

Statement and scope.
In the Farey sequence $F_n$, write every fraction in lowest terms. Let $f(n)$ be the largest integer such that any two terms at index distance at most $f(n)$ satisfy $(a-c)(b-d)\geq0$, where their fractions are $a/b,c/d$. The known answer is $f(n)=(1/4+o(1))n$. Here we prove the upper bound \[ f(n)\leq\lfloor n/4\rfloor+5\qquad(n\geq8) \tag{1} \] and a uniform density estimate that excludes small denominators from any extremal inversion. The matching lower bound remains unresolved in this write-up.
Reduce to counting fractions between an inverted pair.
For $a/b<c/d$, a violation of similar ordering necessarily means $a<c$ and $b>d$. The opposite sign pattern is incompatible with $a/b<c/d$. If $r$ Farey terms lie strictly between a violating pair, its index distance is $r+1$. Thus $f(n)$ is the minimum of these intervening counts.

Every violating pair contains the elementary interval \[ I_{a,b}=\left(\frac ab,\frac{a+1}{b-1}\right), \tag{2} \] because $c\geq a+1$ and $d\leq b-1$. Its length is \[ |I_{a,b}|=\frac{a+b}{b(b-1)}\geq\frac1{b-1}. \tag{3} \] Also $a+1\leq c\leq d\leq b-1$, so $2$ is within $[0,1]$. Consecutive Farey terms cannot be inverted: the reduced form of $c/b$ would lie strictly between $a/b$ and $c/d$ and have denominator at most $b\leq n$.

An explicit inversion near one half.
Set $m=\lfloor n/4\rfloor\geq2$ and take \[ L=\frac{2m-1}{4m},\qquad U=\frac{2m}{4m-1}. \] Both are reduced fractions in $F_n$, with increasing numerators and decreasing denominators, and $L<U$. Let $p/q\in F_n\cap(L,U)$, and put $e=q-2p$. Cross multiplication gives \[ q>2me,\qquad q>-(4m-1)e,\qquad q\leq4m+3. \tag{4} \] Since $m\geq2$, these force $-1\leq e\leq2$.

If $e=1$, then $q$ is odd and $2m<q\leq4m+3$, giving at most $m+2$ possibilities. Each $q$ determines $p$. If $e=0$, reducedness forces $p/q=1/2$, giving one possibility. If $e=-1$, $4$ forces the odd denominator $q$ to be $4m+1$ or $4m+3$, giving at most two possibilities. Finally $e=2$ would force the even denominator $q=4m+2$ and numerator $p=2m$, which are not coprime. Therefore the interval contains at most $m+5$ Farey terms, proving $1$.

A uniform count in an arbitrary interval.
For an open interval $I=(u,v)\subseteq[0,1]$ of length $\lambda$, let $P_n(I)$ count the reduced $p/q\in I$ with $1\leq q\leq n$. Möbius inversion gives \[ P_n(I)=\sum_{d\leq n}\mu(d) \sum_{r\leq n/d}\#\{s\in\mathbb Z:ur<s<vr\}. \] The inner cardinality is $\lambda r+O(1)$, with an absolute constant independent of the interval. Writing $M_d=\lfloor n/d\rfloor$, we obtain \[ P_n(I)=\frac{\lambda}{2} \sum_{d\leq n}\mu(d)M_d(M_d+1)+O(n\log n) =\frac{3}{\pi^2}\lambda n^2+O(n\log n), \tag{5} \] uniformly for all $I$. The last step uses $M_d(M_d+1)=(n/d)^2+O(n/d)$, $\sum_{d\leq n}1/d=O(\log n)$, and $\sum_{d\geq1}\mu(d)/d^2=6/\pi^2$. All errors remain uniform as the interval varies with $n$.

Combining $2$--$5$, every inverted pair whose left denominator is $b$ has at least \[ \frac{3n^2}{\pi^2(b-1)}-C n\log n \tag{6} \] intervening terms, for an absolute $C$. In particular, if $b=o(n/\log n)$, the intervening count divided by $n$ tends to infinity. More quantitatively, comparing $6$ with $1$ shows that a pair attaining $f(n)$ must have $b\gg n/\log n$. This reduces the difficult lower-bound problem to large-denominator intervals, where the error in $5$ is too large to recover the constant $1/4$.

Remaining gap and attribution.
The near-half inversion and the elementary-interval reduction follow the approach in the current solution linked at https://www.erdosproblems.com/1005, checked 24 September 2026. The page attributes the asymptotic lower bound to Cipollini and GPT-5.5, following van Doorn's upper bound; its proof repository is https://github.com/mrricky22/erdos-1005-lean. The proof above establishes the upper bound and density reduction directly. It does not reproduce the uniform primitive-progression and totient-increment analysis required for the lower bound. No local Lean build or novelty is claimed.
Completion estimate.
COMPLETION: 55%

Go to contribution →

Math-6059-A2 · No claim recorded · LLM-generated · gpt pro 5.2 ·

gpt pro 5.2 attempt on Math-6059

1) FORMAL RESTATEMENT

Fix an integer n>=4. Let F_n be the Farey sequence of order n: the list of all reduced fractions a/b in [0,1] with 0<=a<=b<=n and gcd(a,b)=1, arranged in increasing numerical order. Write this sequence as a_1/b_1 < a_2/b_2 < ... < a_M/b_M. Define f(n) to be the largest integer f with the property: for all indices 1<=k<l<=M with l-k <= f, one has $a_k - a_l$$b_k - b_l$ >= 0. Equivalently: any two Farey fractions within index-distance <= f are "similarly ordered", meaning the ordering of numerators agrees with the ordering of denominators (allowing ties). Question: estimate f(n). In particular, does there exist a constant c>0 such that f(n) = $c+o(1)$ n?

2) QUICK LITERATURE/CONTEXT CHECK

Only what is explicitly stated in the provided problem file: - Mayer proved f(n) -> infinity as n -> infinity. - Erdos proved f(n) is bounded below by a positive constant times n (written f(n) >> n). - van Doorn proved $1/12 - o(1)$ n <= f(n) <= $1/4$ n + O$1$, and conjectures the upper bound is asymptotically optimal.

3) ATTACK PLAN

Proof-track ideas: - Use elementary Farey properties (mediants, density, local denominator constraints) to bound how quickly an inversion (a increases while b decreases) can occur. - Try to locate the minimal inversion distance explicitly and relate it to the geometry of visible lattice points.

Disproof/construction ideas: - Produce explicit short-distance inversions to get upper bounds; produce long inversion-free neighborhoods to get lower bounds.

I focus on rigorous local lemmas + exact computations to understand the constant.

4) WORK

FAST REALITY CHECK (exact computations)

I computed f(n) exactly by generating the Farey sequence F_n and searching the smallest index-distance d for which an inversion pair occurs; then f(n)=d-1. The results for selected n are: - f$100$=26 (ratio 0.26) - f$150$=39 (ratio 0.26) - f$200$=51 (ratio 0.255) - f$300$=76 (ratio about 0.25333) - f$400$=101 (ratio 0.2525) - f$500$=126 (ratio 0.252) For small n: - f$4$=2, f$5$=3, f$6$=3, f$7$=4, f$8$=3, f$9$=3, f$10$=4. These ratios trending toward about 0.25 match the stated $1/4$n+O$1$ upper bound and its conjectured optimality.

Lemma 1005.1 (denominator-sum obstruction for consecutive terms). Let a/b < c/d be consecutive terms in the Farey sequence F_n (order n). Then b+d > n.

Proof. Consider the mediant fraction $a+c$/$b+d$. It satisfies a/b < $a+c$/$b+d$ < c/d for all positive denominators b,d (a standard cross-multiplication check). If b+d <= n, then $a+c$/$b+d$ reduces to some fraction p/q in lowest terms with q dividing b+d, hence q <= b+d <= n. Therefore p/q is a reduced fraction in [0,1] with denominator <=n lying strictly between a/b and c/d, contradicting that a/b and c/d are consecutive in F_n. Hence b+d > n. QED.

Lemma 1005.2 (consecutive Farey fractions are always similarly ordered). Let a/b < c/d be consecutive terms in F_n. Then $a-c$$b-d$ >= 0. Equivalently, one cannot have a<c and b>d for consecutive terms.

Proof. Assume for contradiction that a/b < c/d are consecutive and that a<c but b>d. Then comparing fractions with the same denominator b gives a/b < c/b (since a<c). Comparing fractions with the same numerator c gives c/b < c/d (since b>d implies 1/b < 1/d). Therefore a/b < c/b < c/d. The fraction c/b reduces to some reduced fraction p/q with q <= b. Since b <= n (because b is a denominator in F_n), we have q <= n, so p/q is a term of F_n. It lies strictly between a/b and c/d, contradicting consecutivity. Thus the pattern a<c and b>d is impossible for consecutive terms, hence $a-c$$b-d$ >= 0 must hold. QED.

Consequence. Lemma 1005.2 immediately implies f(n) >= 1 for all n>=1, since all pairs at distance 1 are similarly ordered. Of course the problem concerns the true growth rate f(n)   c n.

5) VERIFICATION

- Lemma 1005.1: the only subtlety is that the mediant may not be reduced, but reducing cannot increase the denominator, so the reduced form still has denominator <= b+d. - Lemma 1005.2: checked that the reduced form of c/b has denominator <= b, and b<=n holds because a/b is in F_n. - Computation: the algorithm that searches the smallest inversion-distance d is correct because the defining property of f(n) is "all inversion pairs have distance >= f(n)+1".

6) FINAL

UNRESOLVED

(i) Strongest proved partial result. - Two clean, fully proved local structural facts about F_n: consecutive denominators satisfy b+d>n (Lemma 1005.1), and every consecutive pair is similarly ordered (Lemma 1005.2). - Exact computed values of f(n) up to n=500, showing ratios near 0.252 and apparently drifting toward 0.25.

(ii) First gap (crisp). Prove an asymptotic f(n) = $c+o(1)$ n and identify the constant c (in particular, prove or refute c=1/4).

(iii) Top 3 next moves. 1. Computation: extend exact computations of f(n) to larger n (say n up to several thousand) using the minimal-distance search to estimate the limiting constant and to identify which inversion pairs realize the minimum. 2. Structure: classify the "first inversion" pairs (k,l) that attain distance f(n)+1 in terms of Diophantine relations among a_k/b_k and a_l/b_l; attempt to pin down an explicit infinite family of near-extremal inversions giving the 1/4 upper bound. 3. Geometry: reinterpret the Farey fractions as primitive lattice points (b,a) in the triangle 0<=a<=b<=n sorted by slope a/b, and study how long the slope-ordered list can avoid coordinate inversions; seek a convex-geometry argument yielding the sharp constant.

(iv) What a minimal counterexample would likely look like. If the conjectured constant c=1/4 is not optimal, then either: - there exist infinitely many n where f(n) <= (1/4 - eps)n for some eps>0 (so one needs a systematically shorter inversion distance), or - there exist infinitely many n where f(n) >= (1/4 + eps)n (so one needs a uniformly longer inversion-free window). In both cases, the minimal inversion pairs would need a describable arithmetic pattern among denominators near n/2.

Go to contribution →