/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Erdős Problem 535

References:

    erdosproblems.com/535

    [Er64] P. Erdős, On a problem in elementary number theory and a combinatorial problem. Math. Comp. (1964), 644–646.

    [AbHa70] H. L. Abbott and D. Hanson, An extremal problem in number theory. Bull. London Math. Soc. (1970), 324–326.

    [Er73] P. Erdős, Problems and results on combinatorial number theory, in A Survey of Combinatorial Theory, North-Holland, 1973.

open ArithmeticFunctionopen Filter Realopen scoped omega Omega namespace Erdos535

No r-subset has constant pairwise GCD with coprime quotients.

def NoConstantPairwiseGcdCoprimeSubsets (r : ) (A : Finset ) : Prop := S A, S.card = r ¬ ( d, 0 < d (S : Set ).Pairwise (fun a b => Nat.gcd a b = d) a S, b, a = d * b Nat.gcd b d = 1)

All elements of A are positive and have exactly k prime factors, counted with multiplicity.

Erdős [Er73] explains that Abbott pointed out the ordinary sunflower conjecture does not seem to suffice for Problem 535; the corrected stronger auxiliary statement uses $Ω$, not $ω$.

def AllBigOmega (k : ) (A : Finset ) : Prop := a A, 1 a Ω a = k

f r N is the maximum size of a subset A ⊆ {1,…,N} such that no r-element subset of A has constant pairwise GCD.

noncomputable def f (r N : ) : := sSup {k : | A : Finset , A Finset.Icc 1 N ( S A, S.card = r ¬ ( d, (S : Set ).Pairwise fun a b => Nat.gcd a b = d)) A.card = k}

Let $r \geq 3$, and let $f_r(N)$ denote the size of the largest subset of ${1,\ldots,N}$ such that no subset of size $r$ has the same pairwise greatest common divisor between all elements. Erdős [Er64] proved that $f_3(N) > N^{c/\log\log N}$ for some constant $c > 0$, and conjectured this should also be an upper bound; here we state the conjectural upper bound for all $r \geq 3$.

See also [536].

@[category research open, AMS 5 11] theorem declaration uses 'sorry'erdos_535 : r 3, c > (0 : ), ∀ᶠ (N : ) in atTop, (f r N : ) (N : ) ^ (c / log (log (N : ))) := r 3, c > 0, ∀ᶠ (N : ) in atTop, (f r N) N ^ (c / Real.log (Real.log N)) All goals completed! 🐙

The first open case of Erdős Problem 535 is $r = 3$: there should exist $c > 0$ such that $f_3(N) \leq N^{c/\log\log N}$ for all sufficiently large $N$.

@[category research open, AMS 5 11] theorem declaration uses 'sorry'erdos_535.variants.first_open_case : c > (0 : ), ∀ᶠ (N : ) in atTop, (f 3 N : ) (N : ) ^ (c / log (log (N : ))) := c > 0, ∀ᶠ (N : ) in atTop, (f 3 N) N ^ (c / Real.log (Real.log N)) All goals completed! 🐙

Erdős [Er64] proved that $f_r(N) \leq N^{3/4+o(1)}$ for all $r \geq 3$.

@[category research solved, AMS 5 11] theorem declaration uses 'sorry'erdos_535.variants.erdos_upper_bound {r : } (hr : 3 r) : ε > (0 : ), ∀ᶠ (N : ) in atTop, (f r N : ) (N : ) ^ ((3 : ) / 4 + ε) := r:hr:3 r ε > 0, ∀ᶠ (N : ) in atTop, (f r N) N ^ (3 / 4 + ε) All goals completed! 🐙

Erdős [Er64] proved that $f_3(N) > N^{c/\log\log N}$ for some constant $c > 0$.

@[category research solved, AMS 5 11] theorem declaration uses 'sorry'erdos_535.variants.lower_bound : c > (0 : ), ∀ᶠ (N : ) in atTop, (N : ) ^ (c / log (log (N : ))) (f 3 N : ) := c > 0, ∀ᶠ (N : ) in atTop, N ^ (c / Real.log (Real.log N)) (f 3 N) All goals completed! 🐙

Abbott and Hanson [AbHa70] improved Erdős's upper bound to $f_r(N) \leq N^{1/2+o(1)}$ for all $r \geq 3$.

@[category research solved, AMS 5 11] theorem declaration uses 'sorry'erdos_535.variants.abbott_hanson {r : } (hr : 3 r) : ε > (0 : ), ∀ᶠ (N : ) in atTop, (f r N : ) (N : ) ^ ((1 : ) / 2 + ε) := r:hr:3 r ε > 0, ∀ᶠ (N : ) in atTop, (f r N) N ^ (1 / 2 + ε) All goals completed! 🐙

Erdős [Er73] records that Abbott pointed out the ordinary sunflower conjecture does not seem to suffice here. The stronger auxiliary conjecture uses $Ω(n)=k$, i.e. prime factors counted with multiplicity; this stronger statement would imply the conjectured upper bound for $f_r(N)$.

@[category research open, AMS 5 11] theorem declaration uses 'sorry'erdos_535.variants.sunflower_strong {r : } (hr : 3 r) : c_r > (0 : ), k : , A : Finset , AllBigOmega k A NoConstantPairwiseGcdCoprimeSubsets r A (A.card : ) c_r ^ k := r:hr:3 r c_r > 0, (k : ) (A : Finset ), AllBigOmega k A NoConstantPairwiseGcdCoprimeSubsets r A A.card c_r ^ k All goals completed! 🐙

For the stronger $Ω(n)=k$ variant above, the Erdős–Rado method gives the weaker bound $c_r^k \cdot k!$; see Erdős [Er73].

@[category research solved, AMS 5 11] theorem declaration uses 'sorry'erdos_535.variants.sunflower_erdos_rado {r : } (hr : 3 r) : c_r > (0 : ), k : , A : Finset , AllBigOmega k A NoConstantPairwiseGcdCoprimeSubsets r A (A.card : ) c_r ^ k * (Nat.factorial k) := r:hr:3 r c_r > 0, (k : ) (A : Finset ), AllBigOmega k A NoConstantPairwiseGcdCoprimeSubsets r A A.card c_r ^ k * k.factorial All goals completed! 🐙 end Erdos535