{
  "id": "3031",
  "ident": "NS.03031",
  "slug": "erdos-731",
  "title": "Erdős Problem 731",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Find some reasonable function $f(n)$ such that, for almost all integers $n$, the least integer\n$m$ such that $m\\nmid \\binom{2n}{n}$ satisfies\n$$m\\sim f(n).$$\n\nHere \"almost all\" means natural density $1$, and $m \\sim f(n)$ means that for every\n$\\varepsilon>0$ the set of $n$ with $|m/f(n)-1|<\\varepsilon$ has density $1$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos731.erdos_731",
  "statement_lean": "theorem erdos_731 : ∀ ε > (0 : ℝ),\n    {n : ℕ | |(leastNonDivisor n : ℝ) / erdos_731.answer n - 1| < ε}.HasDensity 1",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 731\n\n*References:*\n- [erdosproblems.com/731](https://www.erdosproblems.com/731)\n- [EGRS75] Erdős, P. and Graham, R. L. and Ruzsa, I. Z. and Straus, E. G.,\n  *On the prime factors of $\\binom{2n}{n}$*. Math. Comp. 29 (1975), 83-92.\n  [PDF](https://www.renyi.hu/~p_erdos/1975-27.pdf)\n-/\n\n@[expose] public section\n\nnamespace Erdos731\n\n/-- The least integer $m \\geq 1$ such that $m \\nmid \\binom{2n}{n}$, denoted $A(n)$ in [EGRS75].\nThe set is nonempty, since it contains $\\binom{2n}{n}+1$ (see `leastNonDivisor_spec`), so `sInf`\nis the true minimum. The condition `0 < m` excludes `m = 0`. -/\nnoncomputable def leastNonDivisor (n : ℕ) : ℕ :=\n  sInf {m : ℕ | 0 < m ∧ ¬ m ∣ n.centralBinom}\n\n/-- `leastNonDivisor n` is a positive integer that does not divide $\\binom{2n}{n}$. -/\n@[category API, AMS 11]\ntheorem leastNonDivisor_spec (n : ℕ) :\n    0 < leastNonDivisor n ∧ ¬ leastNonDivisor n ∣ n.centralBinom := by\n  have h : {m : ℕ | 0 < m ∧ ¬ m ∣ n.centralBinom}.Nonempty :=\n    ⟨n.centralBinom + 1, by omega, Nat.not_dvd_of_pos_of_lt n.centralBinom_pos (by omega)⟩\n  exact Nat.sInf_mem h\n\n/-- $A(1)=3$, since $\\binom{2}{1}=2$ is divisible by $1$ and $2$ but not by $3$. -/\n@[category test, AMS 11]\ntheorem leastNonDivisor_one : leastNonDivisor 1 = 3 := by\n  have hc : (1 : ℕ).centralBinom = 2 := by decide +kernel\n  have h3 : 3 ∈ {m : ℕ | 0 < m ∧ ¬ m ∣ (1 : ℕ).centralBinom} :=\n    ⟨by norm_num, by rw [hc]; decide⟩\n  unfold leastNonDivisor\n  refine le_antisymm (Nat.sInf_le h3) (le_csInf ⟨3, h3⟩ fun m hm => ?_)\n  obtain ⟨hm0, hm⟩ := hm\n  rw [hc] at hm\n  by_contra! hlt\n  interval_cases m <;> simp at hm\n\ndef erdos_731.answer : ℕ → ℝ := sorry\n\n/--\nFind some reasonable function $f(n)$ such that, for almost all integers $n$, the least integer\n$m$ such that $m\\nmid \\binom{2n}{n}$ satisfies\n$$m\\sim f(n).$$\n\nHere \"almost all\" means natural density $1$, and $m \\sim f(n)$ means that for every\n$\\varepsilon>0$ the set of $n$ with $|m/f(n)-1|<\\varepsilon$ has density $1$.\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_731 : ∀ ε > (0 : ℝ),\n    {n : ℕ | |(leastNonDivisor n : ℝ) / erdos_731.answer n - 1| < ε}.HasDensity 1 := by\n  sorry\n\n/--\nA problem of Erdős, Graham, Ruzsa, and Straus [EGRS75], who say it is 'not hard to show that',\nfor almost all $n$, the minimal such $m$ satisfies\n$$m=\\exp((\\log n)^{1/2+o(1)}).$$\n\n[EGRS75, (8), p. 91] states this as: for every $\\varepsilon>0$, for all $n$ outside a set of\ndensity $0$, $\\exp((\\log n)^{1/2-\\varepsilon}) < m < \\exp((\\log n)^{1/2+\\varepsilon})$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_731.variants.egrs75 : ∀ ε > (0 : ℝ),\n    {n : ℕ | Real.exp (Real.log n ^ ((1 : ℝ) / 2 - ε)) < (leastNonDivisor n : ℝ) ∧\n      (leastNonDivisor n : ℝ) < Real.exp (Real.log n ^ ((1 : ℝ) / 2 + ε))}.HasDensity 1 := by\n  sorry\n\nend Erdos731\n",
  "statement_hash": "8721b0dd82f9ab5fe9c1bc68c36e5bab8e9234cdc90d4f53b33e7f245197bc1e",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}