{
  "id": "2969",
  "ident": "NS.02969",
  "slug": "erdos-710",
  "title": "Erdős Problem 710",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be minimal such that in $(n,n+f(n))$ there exist distinct integers $a_1,\\ldots,a_n$\nsuch that $k\\mid a_k$ for all $1\\leq k\\leq n$. Obtain an asymptotic formula for $f(n)$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos710.erdos_710",
  "statement_lean": "theorem erdos_710 : (fun n ↦ (f n : ℝ)) ~[atTop] erdos_710.answer",
  "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\npublic import FormalConjectures.ErdosProblems.«711»\n\n/-!\n# Erdős Problem 710\n\n*References:*\n- [erdosproblems.com/710](https://www.erdosproblems.com/710)\n- [ErPo80] Erdős, P. and Pomerance, C., *Matching the natural numbers up to $n$ with distinct\n  multiples in another interval*. Nederl. Akad. Wetensch. Indag. Math. 42 (1980), 147-161.\n  [PDF](https://www.renyi.hu/~p_erdos/1980-13.pdf)\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos710\n\n/-- $f(n)$: the least $L$ such that the open interval $(n,n+L)$ contains distinct integers\n$a_1,\\ldots,a_n$ with $k \\mid a_k$ for all $1 \\leq k \\leq n$. This is\n`Erdos711.HasDivisibleDistinctTuple n n L`.\n\nThe set of such $L$ is nonempty for every $n$ (take $a_k = k(n+1)$ and $L = n^2+1$), so `sInf`\nis the true minimum. For $n = 0$ there is nothing to choose and $f(0) = 0$. -/\nnoncomputable def f (n : ℕ) : ℕ :=\n  sInf {L : ℕ | Erdos711.HasDivisibleDistinctTuple n n L}\n\n/-- Any admissible interval length is an upper bound for $f(n)$. -/\n@[category API, AMS 11]\ntheorem f_le {n L : ℕ} (h : Erdos711.HasDivisibleDistinctTuple n n L) : f n ≤ L :=\n  Nat.sInf_le h\n\n/-- The tuple $a_k = k(n+1)$ shows that the set defining $f(n)$ is nonempty. -/\n@[category API, AMS 11]\ntheorem hasDivisibleDistinctTuple_sq (n : ℕ) :\n    Erdos711.HasDivisibleDistinctTuple n n (n ^ 2 + 1) := by\n  refine ⟨fun i ↦ (i.val + 1) * (n + 1), fun i j hij ↦ ?_, fun i ↦ ⟨?_, ?_, ?_⟩⟩\n  · have hij' : (i.val + 1) * (n + 1) = (j.val + 1) * (n + 1) := hij\n    have := mul_right_cancel₀ (by omega : n + 1 ≠ 0) hij'\n    exact Fin.ext (by omega)\n  · show n < (i.val + 1) * (n + 1)\n    nlinarith [Nat.zero_le (i.val * n)]\n  · show (i.val + 1) * (n + 1) < n + (n ^ 2 + 1)\n    have := Nat.mul_le_mul_right (n + 1) (show i.val + 1 ≤ n from i.isLt)\n    nlinarith\n  · exact dvd_mul_right _ _\n\n/-- The example $11, 22, 21, 16, 15, 12, 14, 24, 18, 20$ of [ErPo80, p. 147] shows $f(10) \\leq 15$.\n[ErPo80] use the interval $(n, f(n)]$, where this reads $f(10) = 24$. -/\n@[category test, AMS 11]\ntheorem f_ten_le : f 10 ≤ 15 :=\n  f_le ⟨![11, 22, 21, 16, 15, 12, 14, 24, 18, 20], by decide, by decide⟩\n\ndef erdos_710.answer : ℕ → ℝ := sorry\n\n/--\nLet $f(n)$ be minimal such that in $(n,n+f(n))$ there exist distinct integers $a_1,\\ldots,a_n$\nsuch that $k\\mid a_k$ for all $1\\leq k\\leq n$. Obtain an asymptotic formula for $f(n)$.\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_710 : (fun n ↦ (f n : ℝ)) ~[atTop] erdos_710.answer := by\n  sorry\n\n/--\nErdős and Pomerance [ErPo80] proved\n$$\\left(\\frac{2}{\\sqrt{e}}+o(1)\\right)n\\left(\\frac{\\log n}{\\log\\log n}\\right)^{1/2}\n\\leq f(n) \\leq (1.7398\\cdots+o(1))n(\\log n)^{1/2}.$$\n\nThis is the lower bound [ErPo80, Theorem 2].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_710.variants.lower_bound :\n    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (2 / Real.sqrt (Real.exp 1) - ε) * n *\n        Real.sqrt (Real.log n / Real.log (Real.log n)) ≤ (f n : ℝ) := by\n  sorry\n\n/--\nErdős and Pomerance [ErPo80] proved\n$$\\left(\\frac{2}{\\sqrt{e}}+o(1)\\right)n\\left(\\frac{\\log n}{\\log\\log n}\\right)^{1/2}\n\\leq f(n) \\leq (1.7398\\cdots+o(1))n(\\log n)^{1/2}.$$\n\nThis is the upper bound. Here $1.7398\\cdots = \\sqrt{r}/(1-r)$, where $r$ is the solution of\n$e^{-r} = r$ [ErPo80, (11), p. 154].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_710.variants.upper_bound :\n    ∃ r : ℝ, Real.exp (-r) = r ∧ ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (f n : ℝ) ≤ (Real.sqrt r / (1 - r) + ε) * n * Real.sqrt (Real.log n) := by\n  sorry\n\nend Erdos710\n",
  "statement_hash": "5773a422da58915c754b0ae68cddd5482a0c1ae9a6a490f6d6d44420357e1996",
  "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."
}