{
  "id": "2078",
  "ident": "NS.02078",
  "slug": "erdos-420",
  "title": "Erdős Problem 420",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "If $\\tau(n)$ counts the number of divisors of $n$ then let\n$$F(f,n)=\\frac{\\tau((n+\\lfloor f(n)\\rfloor)!)}{\\tau(n!)}.$$\nIs it true that\n$$\\lim_{n\\to \\infty}F((\\log n)^C,n)=\\infty$$\nfor large $C$?\n\n\"For large $C$\" means for all sufficiently large real $C$. Since $(\\log n)^C$ increases with $C$\nfor $n \\geq 3$ and $F(f,n)$ is nondecreasing in $f(n)$, this is equivalent to asking for one\nsuch $C$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos420.erdos_420.parts.i",
  "statement_lean": "theorem erdos_420.parts.i :\n    ∀ᶠ C : ℝ in atTop, Tendsto (F fun m ↦ Real.log m ^ C) atTop atTop",
  "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 420\n\n*References:*\n- [erdosproblems.com/420](https://www.erdosproblems.com/420)\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory*. Monographies de L'Enseignement Mathematique (1980).\n- [EGIP96] Erdős, P. and Graham, S. W. and Ivić, A. and Pomerance, C., *On the number of divisors\n  of $n!$*. Analytic number theory, Vol. 1 (Allerton Park, IL, 1995), Progr. Math. 138, Birkhäuser\n  Boston (1996), 337-355.\n\nIn the solved variants, $K(n)$ is the least $K \\geq 1$ with $\\tau((n+K)!) \\geq 2\\tau(n!)$, so that\n$K(n) > h$ if and only if $F(h, n) < 2$. These variants state Corollaries 2 and 3 of [EGIP96] as\nprinted; the stronger claims on erdosproblems.com are not stated.\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped ArithmeticFunction.sigma\n\nnamespace Erdos420\n\n/--\n`F f n` is\n$$F(f,n)=\\frac{\\tau((n+\\lfloor f(n)\\rfloor)!)}{\\tau(n!)},$$\nwhere $\\tau = \\sigma_0$ counts divisors. We use the natural floor `⌊f n⌋₊`, which agrees with\n$\\lfloor f(n) \\rfloor$ when $f(n) \\geq 0$ and is $0$ when $f(n) < 0$.\n-/\nnoncomputable def F (f : ℕ → ℝ) (n : ℕ) : ℝ :=\n  (σ 0 (n + ⌊f n⌋₊).factorial : ℝ) / (σ 0 n.factorial : ℝ)\n\n/-- If $f(n) < 1$ then the natural floor `⌊f n⌋₊` is $0$, so $F(f, n) = 1$. -/\n@[category test, AMS 11]\ntheorem F_eq_one_of_lt_one {f : ℕ → ℝ} {n : ℕ} (hf : f n < 1) : F f n = 1 := by\n  have h : (σ 0 n.factorial : ℝ) ≠ 0 := by\n    exact_mod_cast (ArithmeticFunction.sigma_pos 0 _ (Nat.factorial_ne_zero n)).ne'\n  rw [F, Nat.floor_eq_zero.2 hf, add_zero, div_self h]\n\n/-- $n!$ divides $(n + k)!$, so $F(f, n) \\geq 1$ always. -/\n@[category test, AMS 11]\ntheorem one_le_F (f : ℕ → ℝ) (n : ℕ) : 1 ≤ F f n := by\n  have h0 : (0 : ℝ) < σ 0 n.factorial := by\n    exact_mod_cast ArithmeticFunction.sigma_pos 0 _ (Nat.factorial_ne_zero n)\n  rw [F, one_le_div h0]\n  simp only [ArithmeticFunction.sigma_zero_apply]\n  exact_mod_cast Finset.card_le_card (Nat.divisors_subset_of_dvd (Nat.factorial_ne_zero _)\n    (Nat.factorial_dvd_factorial (Nat.le_add_right n _)))\n\n/-- If $p = n + 1$ is prime then $p$ does not divide $n!$, so $\\tau((n+1)!) = 2\\tau(n!)$ and\n$F(1, n) = 2$. -/\n@[category test, AMS 11]\ntheorem F_one_of_prime {n : ℕ} (hn : (n + 1).Prime) : F (fun _ ↦ 1) n = 2 := by\n  have hcop : Nat.Coprime (n + 1) n.factorial :=\n    (Nat.Prime.coprime_iff_not_dvd hn).2 fun h ↦ by\n      have := (Nat.Prime.dvd_factorial hn).1 h\n      omega\n  have h0 : (σ 0 n.factorial : ℝ) ≠ 0 := by\n    exact_mod_cast (ArithmeticFunction.sigma_pos 0 _ (Nat.factorial_ne_zero n)).ne'\n  have hp : σ 0 (n + 1) = 2 := by\n    simpa using ArithmeticFunction.sigma_zero_apply_prime_pow (i := 1) hn\n  simp only [F, Nat.floor_one, Nat.factorial_succ,\n    ArithmeticFunction.isMultiplicative_sigma.map_mul_of_coprime hcop, hp]\n  push_cast\n  field_simp\n\n/--\nIf $\\tau(n)$ counts the number of divisors of $n$ then let\n$$F(f,n)=\\frac{\\tau((n+\\lfloor f(n)\\rfloor)!)}{\\tau(n!)}.$$\nIs it true that\n$$\\lim_{n\\to \\infty}F((\\log n)^C,n)=\\infty$$\nfor large $C$?\n\n\"For large $C$\" means for all sufficiently large real $C$. Since $(\\log n)^C$ increases with $C$\nfor $n \\geq 3$ and $F(f,n)$ is nondecreasing in $f(n)$, this is equivalent to asking for one\nsuch $C$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_420.parts.i :\n    ∀ᶠ C : ℝ in atTop, Tendsto (F fun m ↦ Real.log m ^ C) atTop atTop := by\n  sorry\n\n/--\nIs it true that $F(\\log n,n)$ is everywhere dense in $(1,\\infty)$?\n\nThis asks that every point of $(1,\\infty)$ lies in the closure of the set of values\n$F(\\log n, n)$. Note that $F(f,n) \\geq 1$ always (`Erdos420.one_le_F`).\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_420.parts.ii :\n    Set.Ioi (1 : ℝ) ⊆ closure (Set.range (F fun m ↦ Real.log m)) := by\n  sorry\n\n/--\nMore generally, if $f(n)\\leq \\log n$ is a monotonic function such that $f(n)\\to \\infty$ as\n$n\\to \\infty$, then is $F(f,n)$ everywhere dense?\n\n\"Everywhere dense\" means dense in $(1,\\infty)$, as in `Erdos420.erdos_420.parts.ii`. Asking for\n$f(n) \\leq \\log n$ for all $n$, rather than for all large $n$, gives an equivalent question.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_420.parts.iii :\n    ∀ f : ℕ → ℝ, Monotone f → (∀ n, f n ≤ Real.log n) → Tendsto f atTop atTop →\n      Set.Ioi (1 : ℝ) ⊆ closure (Set.range (F f)) := by\n  sorry\n\n/--\nErdős, Graham, Ivić and Pomerance proved [EGIP96, Corollary 2] that $K(n)/\\log n$ is unbounded,\nwith $K(n)$ as in the module docstring. Equivalently, for every $c > 0$ we have\n$F(c\\log n, n) < 2$ for infinitely many $n$. In particular\n$\\liminf F(c\\log n, n) \\leq 2$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_420.variants.log_frequently_lt_two :\n    ∀ c > (0 : ℝ), ∃ᶠ n : ℕ in atTop, F (fun m ↦ c * Real.log m) n < 2 := by\n  sorry\n\n/--\nErdős, Graham, Ivić and Pomerance proved [EGIP96, Corollary 2] that for infinitely many $n$,\n$$K(n) > \\frac{\\log n \\cdot \\log\\log n \\cdot \\log\\log\\log\\log n}{9(\\log\\log\\log n)^3},$$\nwith $K(n)$ as in the module docstring. Equivalently,\n$F(f,n) < 2$ for infinitely many $n$, where $f(n)$ is the right-hand side.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_420.variants.rankin_frequently_lt_two :\n    ∃ᶠ n : ℕ in atTop, F (fun m ↦ Real.log m * Real.log (Real.log m) *\n      Real.log (Real.log (Real.log (Real.log m))) /\n        (9 * Real.log (Real.log (Real.log m)) ^ 3)) n < 2 := by\n  sorry\n\n/--\nErdős, Graham, Ivić and Pomerance proved [EGIP96, Corollary 3] that for all sufficiently large\n$n$ we have $K(n) < n^{4/9}$, with $K(n)$ as in the module docstring. Hence\n$F(n^{4/9}, n) \\geq 2$ for all large $n$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_420.variants.pow_four_ninths :\n    ∀ᶠ n : ℕ in atTop, 2 ≤ F (fun m ↦ (m : ℝ) ^ (4 / 9 : ℝ)) n := by\n  sorry\n\nend Erdos420\n",
  "statement_hash": "e789c9864e5bea68c2cd03be174029c7d54a96904ad35e4be75b07576c4608a0",
  "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."
}