{
  "id": "664",
  "ident": "NS.00664",
  "slug": "erdos-1100",
  "title": "Erdős Problem 1100",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "If $1=d_1<\\cdots<d_{\\tau(n)}=n$ are the divisors of $n$, then let $\\tau_\\perp(n)$ count the number\nof $i$ for which $(d_i,d_{i+1})=1$.\n\nIs it true that $\\tau_\\perp(n)/\\omega(n)\\to \\infty$ for almost all $n$?\n\nThis is the first part, asked by Erdős and Hall [ErHa78, p. 483]. We read it as: for every $C$ the\nset of $n$ with $\\tau_\\perp(n)\\leq C\\omega(n)$ has natural density $0$. This is equivalent to\n$\\tau_\\perp(n)/\\omega(n)\\to\\infty$ along a set of density $1$, and it avoids dividing by\n$\\omega(1)=0$.\n\nThe answer is yes. By [ErTe89, Corollary 2, p. 288], $\\tau_\\perp(n)\\geq(\\log n)^{\\log 3-1+o(1)}$\nfor almost all $n$ (see `erdos_1100.variants.normal_order`), while $\\omega(n)\\sim\\log\\log n$ for\nalmost all $n$ (Hardy-Ramanujan).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1100.erdos_1100.parts.i",
  "statement_lean": "theorem erdos_1100.parts.i :\n    ∀ C : ℝ, {n : ℕ | (tauPerp n : ℝ) ≤ C * (ω n : ℝ)}.HasDensity 0",
  "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 1100\n\n*References:*\n- [erdosproblems.com/1100](https://www.erdosproblems.com/1100)\n- [ErHa78] Erdős, P. and Hall, R. R., *On some unconventional problems on the divisors of\n  integers*. J. Austral. Math. Soc. Ser. A 25 (1978), 479-485.\n  [PDF](https://www.renyi.hu/~p_erdos/1978-26.pdf)\n- [Er81h] Erdős, P., *Some problems and results on additive and multiplicative number theory*.\n  Analytic number theory (Philadelphia, Pa., 1980) (1981), 171-182.\n  [PDF](https://www.renyi.hu/~p_erdos/1981-33.pdf)\n- [ErTe89] Erdős, P. and Tenenbaum, G., *Sur les fonctions arithmétiques liées aux diviseurs\n  consécutifs*. J. Number Theory 31 (1989), 285-311.\n  [PDF](https://www.renyi.hu/~p_erdos/1989-37.pdf)\n\nThe function $\\tau_\\perp(n)$ is called $\\tau_r(n)$ in [Er81h] and $f(n)$ in [ErHa78] and [ErTe89].\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\nopen scoped ArithmeticFunction.omega\n\nnamespace Erdos1100\n\n/-- $\\tau_\\perp(n)$ is the number of indices $i$ such that the divisors $d_i<d_{i+1}$ of $n$ that\nare consecutive in increasing order are coprime. As in `Erdos1099`, `Nat.nth (· ∣ n) i` is the\n$(i+1)$-th smallest divisor of `n` (counting from $0$), and `i` runs over the $\\tau(n)-1$ pairs of\nconsecutive divisors. For $n = 0$ and $n = 1$ there are no such pairs and the value is $0$. -/\nnoncomputable def tauPerp (n : ℕ) : ℕ :=\n  (Finset.univ.filter fun i : Fin (n.divisors.card - 1) ↦\n    Nat.Coprime (Nat.nth (· ∣ n) i) (Nat.nth (· ∣ n) ((i : ℕ) + 1))).card\n\n/-- $g(k)$ is the maximum of $\\tau_\\perp(n)$ over the squarefree $n$ with $\\omega(n)=k$. The set of\nvalues is nonempty (take $n$ a product of $k$ distinct primes) and bounded by $2^k$, because\n$\\tau_\\perp(n)<\\tau(n)=2^k$, so `sSup` is a true maximum. -/\nnoncomputable def g (k : ℕ) : ℕ :=\n  sSup {t : ℕ | ∃ n : ℕ, Squarefree n ∧ ω n = k ∧ tauPerp n = t}\n\n/--\nIf $1=d_1<\\cdots<d_{\\tau(n)}=n$ are the divisors of $n$, then let $\\tau_\\perp(n)$ count the number\nof $i$ for which $(d_i,d_{i+1})=1$.\n\nIs it true that $\\tau_\\perp(n)/\\omega(n)\\to \\infty$ for almost all $n$?\n\nThis is the first part, asked by Erdős and Hall [ErHa78, p. 483]. We read it as: for every $C$ the\nset of $n$ with $\\tau_\\perp(n)\\leq C\\omega(n)$ has natural density $0$. This is equivalent to\n$\\tau_\\perp(n)/\\omega(n)\\to\\infty$ along a set of density $1$, and it avoids dividing by\n$\\omega(1)=0$.\n\nThe answer is yes. By [ErTe89, Corollary 2, p. 288], $\\tau_\\perp(n)\\geq(\\log n)^{\\log 3-1+o(1)}$\nfor almost all $n$ (see `erdos_1100.variants.normal_order`), while $\\omega(n)\\sim\\log\\log n$ for\nalmost all $n$ (Hardy-Ramanujan).\n-/\n@[category research solved, question, AMS 11]\ntheorem erdos_1100.parts.i :\n    ∀ C : ℝ, {n : ℕ | (tauPerp n : ℝ) ≤ C * (ω n : ℝ)}.HasDensity 0 := by\n  sorry\n\n/--\nIf $1=d_1<\\cdots<d_{\\tau(n)}=n$ are the divisors of $n$, then let $\\tau_\\perp(n)$ count the number\nof $i$ for which $(d_i,d_{i+1})=1$.\n\nIs it true that\n$$\\tau_\\perp(n)< \\exp((\\log n)^{o(1)})$$\nfor all $n$?\n\nThis is the second part. Erdős and Hall [ErHa78, p. 483] say it would be reasonable to expect\nthat for every $\\epsilon>0$ one has $\\tau_\\perp(n)<\\exp((\\log n)^{\\epsilon})$; the problem page\nasks it as a question. We read $o(1)$ as: for every $\\epsilon>0$ and all sufficiently large $n$.\nThis is equivalent to a bound for all $n$ with an exponent that tends to $0$. A bound for all $n$\nwith a fixed small $\\epsilon$ fails: for example $\\tau_\\perp(30)=4>\\exp((\\log 30)^{0.1})$.\n\nThe answer is no. Erdős and Tenenbaum [ErTe89, Theorem 4, p. 289] proved\n$\\max_{n\\leq x}\\tau_\\perp(n)\\geq\\exp\\bigl(((\\log 2)^2+o(1))\\log x/(\\log\\log x)^2\\bigr)$ (see\n`erdos_1100.variants.erdos_tenenbaum_max`). This gives infinitely many $n$ with\n$\\tau_\\perp(n)>\\exp((\\log n)^{1/2})$.\n-/\n@[category research solved, question, AMS 11]\ntheorem erdos_1100.parts.ii :\n    ¬ ∀ ε : ℝ, 0 < ε → ∀ᶠ n : ℕ in atTop, (tauPerp n : ℝ) < Real.exp (Real.log n ^ ε) := by\n  sorry\n\ndef erdos_1100.parts.iii.answer : ℕ → ℝ := sorry\n\n/--\nLet\n$$g(k) = \\max_{\\omega(n)=k}\\tau_\\perp(n),$$\nwhere $\\omega(n)$ counts the number of distinct prime divisors of $n$, and $n$ is restricted to\nsquarefree integers. Determine the growth of $g(k)$.\n\nThis is the third part. We read \"determine the growth\" as $g(k)=\\Theta(\\texttt{answer}\\ k)$. Known\nbounds are $(\\sqrt2+o(1))^k<g(k)<(2-c)^k$ [Er81h, p. 173] (see\n`erdos_1100.variants.erdos_simonovits`), and $g(k)\\leq 3\\cdot(3\\cdot 2^{-2/3})^k$\n[ErTe89, Theorem 1] (see `erdos_1100.variants.erdos_tenenbaum_g`). So $g$ is at most exponential,\nthe lower bound announced in [Er81h] would make it exponential, and already the base of the\nexponential is open.\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_1100.parts.iii :\n    (fun k : ℕ ↦ (g k : ℝ)) =Θ[atTop] erdos_1100.parts.iii.answer := by\n  sorry\n\n/--\nIt is trivial that $\\tau_\\perp(n)\\geq \\omega(n)$ [ErHa78, p. 480], [ErTe89, (1.9), p. 288]: each\nprime divisor of $n$ is the larger member of a coprime pair of consecutive divisors.\n-/\n@[category textbook, AMS 11]\ntheorem erdos_1100.variants.omega_le : ∀ n : ℕ, 0 < n → ω n ≤ tauPerp n := by\n  sorry\n\n/--\nThere is equality $\\tau_\\perp(n)=\\omega(n)$ for infinitely many $n$: Erdős and Hall [ErHa78, p. 480]\nnote equality when $n=p_1\\cdots p_k$ and $p_i>p_1\\cdots p_{i-1}$ for $2\\leq i\\leq k$. Such $n$\nexist for every $k$, which we state.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1100.variants.eq_omega (k : ℕ) :\n    ∃ n : ℕ, Squarefree n ∧ ω n = k ∧ tauPerp n = k := by\n  sorry\n\n/--\nErdős and Hall [ErHa78, Theorem 1, p. 480] prove, for all $\\epsilon>0$ and sufficiently large $x$,\n$$\\max_{n<x} \\tau_\\perp(n) > \\exp((\\log\\log x)^{2-\\epsilon}).$$\nWe write the maximum as: some $n<x$ has $\\tau_\\perp(n)$ above the bound.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1100.variants.erdos_hall : ∀ ε : ℝ, 0 < ε → ∀ᶠ x : ℝ in atTop,\n    ∃ n : ℕ, (n : ℝ) < x ∧ Real.exp (Real.log (Real.log x) ^ (2 - ε)) < (tauPerp n : ℝ) := by\n  sorry\n\n/--\nErdős and Tenenbaum [ErTe89, Theorem 4, p. 289] improved this considerably: for $x\\geq 3$,\n$$\\max_{n\\leq x}\\tau_\\perp(n)\\geq \\exp\\Bigl(\\bigl((\\log 2)^2+o(1)\\bigr)\n\\frac{\\log x}{(\\log\\log x)^2}\\Bigr).$$\nWe write $o(1)$ as an arbitrarily small $\\delta>0$ and the maximum as: some $n\\leq x$ has\n$\\tau_\\perp(n)$ above the bound.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1100.variants.erdos_tenenbaum_max : ∀ δ : ℝ, 0 < δ → ∀ᶠ x : ℝ in atTop,\n    ∃ n : ℕ, (n : ℝ) ≤ x ∧\n      Real.exp (((Real.log 2) ^ 2 - δ) * Real.log x / (Real.log (Real.log x)) ^ 2) ≤\n        (tauPerp n : ℝ) := by\n  sorry\n\n/--\nErdős and Tenenbaum [ErTe89, Corollary 2, p. 288] proved that for almost all $n$ (that is, on a set\nof density $1$)\n$$(\\log n)^{\\log 3-1+o(1)}\\leq \\tau_\\perp(n)\\leq (\\log n)^{\\log 2-1/2+o(1)}.$$\nThe paper credits the upper bound to an earlier work of the same authors (Bull. Soc. Math. France\n111 (1983)). We write $o(1)$ as: for every $\\epsilon>0$ the set of $n$ with\nboth bounds, with exponents shifted by $\\mp\\epsilon$, has density $1$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1100.variants.normal_order : ∀ ε : ℝ, 0 < ε →\n    {n : ℕ | Real.log n ^ (Real.log 3 - 1 - ε) ≤ (tauPerp n : ℝ) ∧\n      (tauPerp n : ℝ) ≤ Real.log n ^ (Real.log 2 - 1 / 2 + ε)}.HasDensity 1 := by\n  sorry\n\n/--\nErdős and Simonovits (see [Er81h, p. 173]) proved\n$$(2^{1/2}+o(1))^k < g(k) < (2-c)^k$$\nfor some constant $c>0$. We write the lower bound as: every fixed $0\\leq r<\\sqrt2$ satisfies\n$r^k<g(k)$ for all large $k$, and the upper bound for all large $k$.\n\n[Er81h] announces this without proof, and [ErTe89, p. 291] calls the argument of Erdős and\nSimonovits for squarefree $n$, which it uses for the upper bound, unpublished. The upper bound also\nfollows from `erdos_1100.variants.erdos_tenenbaum_g`.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1100.variants.erdos_simonovits :\n    (∀ r : ℝ, 0 ≤ r → r < Real.sqrt 2 → ∀ᶠ k : ℕ in atTop, r ^ k < (g k : ℝ)) ∧\n      ∃ c : ℝ, 0 < c ∧ ∀ᶠ k : ℕ in atTop, (g k : ℝ) < (2 - c) ^ k := by\n  sorry\n\n/--\nFor squarefree $n$ with $\\omega(n)=k$ the bound $f(n)\\leq 3\\tau(n)B_1^{\\omega_1(n)}$ of\n[ErTe89, Theorem 1, (1.3), p. 287], with $B_1=3\\cdot 2^{-5/3}$, gives\n$$g(k)\\leq 3\\left(3\\cdot 2^{-2/3}\\right)^k,$$\nand $3\\cdot 2^{-2/3}=1.88988\\ldots<2$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_1100.variants.erdos_tenenbaum_g (k : ℕ) :\n    (g k : ℝ) ≤ 3 * (3 / (2 : ℝ) ^ ((2 : ℝ) / 3)) ^ k := by\n  sorry\n\nend Erdos1100\n",
  "statement_hash": "5908d38ea17eef99e9de8ad4c899b2fe6033efbdb4846bb2944d4cd35a2a7b59",
  "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."
}