{
  "id": "476",
  "ident": "NS.00476",
  "slug": "erdos-1049",
  "title": "Erdős Problem 1049",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $t>1$ be a rational number. Is\n$\\sum_{n=1}^\\infty\\frac{1}{t^n-1}=\\sum_{n=1}^\\infty \\frac{\\tau(n)}{t^n}$ irrational, where\n$\\tau(n)$ counts the divisors of $n$?\n\nA conjecture of Chowla.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1049.erdos_1049",
  "statement_lean": "theorem erdos_1049 :\n    ∀ t : ℚ, t > 1 → Irrational (∑' n : ℕ+, 1 / ((t : ℝ) ^ (n : ℕ) - 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 1049\n\n*References:*\n- [erdosproblems.com/1049](https://www.erdosproblems.com/1049)\n- [Er48] Erdős, P., On arithmetical properties of Lambert series. J. Indian Math. Soc. (N.S.)\n  (1948), 63-66.\n-/\n\n@[expose] public section\n\nnamespace Erdos1049\n\nopen ArithmeticFunction Filter\n\n/--\nLet $t>1$ be a rational number. Is\n$\\sum_{n=1}^\\infty\\frac{1}{t^n-1}=\\sum_{n=1}^\\infty \\frac{\\tau(n)}{t^n}$ irrational, where\n$\\tau(n)$ counts the divisors of $n$?\n\nA conjecture of Chowla.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_1049 :\n    ∀ t : ℚ, t > 1 → Irrational (∑' n : ℕ+, 1 / ((t : ℝ) ^ (n : ℕ) - 1)) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nErdős [Er48] proved that this is true if $t\\geq 2$ is an integer.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/wcook04/plectis-erdos-lean/blob/c4eab2571b4692ee9c08d3ec138176f7fbfa09a9/verification/FCMergedIntegerAdapters/research/adapters/FormalConjecturesAdapter.lean#L96-L107\"]\ntheorem erdos_1049.variants.geq_2_integer :\n     ∀ t : ℤ, t ≥ 2 → Irrational (∑' n : ℕ+, 1 / ((t : ℝ) ^ (n : ℕ) - 1)) := by\n  sorry\n\n/--\nConvergent case (`|t| > 1`).\n\nSubstitute `r := t⁻¹` so `‖r‖ < 1`, then apply Mathlib's series identity\n`tsum_pow_div_one_sub_eq_tsum_sigma` at `k = 0`:\n$$\\sum_{n \\ge 1} \\frac{r^n}{1 - r^n} = \\sum_{n \\ge 1} \\sigma_0(n) \\cdot r^n.$$\nAfter clearing denominators, both sides match the Lambert identity:\nLHS becomes `1/(t^n - 1)` and RHS becomes `τ(n) / t^n`.\n-/\n@[category API, AMS 11]\nprivate lemma lambert_convergent (t : ℝ) (ht : 1 < |t|) :\n    ∑' n : ℕ+, 1 / (t ^ (n : ℕ) - 1) =\n    ∑' n : ℕ+, ((n : ℕ).divisors.card : ℝ) / (t ^ (n : ℕ)) := by\n  -- `|t| > 1` implies `t ≠ 0`, hence `t^n ≠ 0` for all n.\n  have ht0 : t ≠ 0 := fun h => by subst h; simp at ht; linarith [abs_nonneg (0:ℝ)]\n  have htn : ∀ n : ℕ, t ^ n ≠ 0 := fun n => pow_ne_zero n ht0\n  -- Substitution `r := t⁻¹`, so `|r| < 1`.\n  set r : ℝ := t⁻¹ with hr_def\n  have hr_norm : ‖r‖ < 1 := by\n    rw [Real.norm_eq_abs, hr_def, abs_inv]; exact inv_lt_one_of_one_lt₀ ht\n  -- Apply the Mathlib identity. Now reduce each side of our goal to its form.\n  have h := tsum_pow_div_one_sub_eq_tsum_sigma (k := 0) hr_norm\n  convert h using 1\n  -- LHS: show `1 / (t^n - 1) = r^n / (1 - r^n)`. After substituting `r = 1/t`,\n  -- this is the algebraic identity `1/(t^n - 1) = (1/t^n) / (1 - 1/t^n)`,\n  -- valid when `t^n ≠ 0` and `t^n ≠ 1`.\n  · apply tsum_congr; intro n\n    have hp : t ^ (n : ℕ) ≠ 0 := htn n\n    have hrn : r ^ (n : ℕ) = (t ^ (n : ℕ))⁻¹ := by rw [hr_def, inv_pow]\n    -- `t^n ≠ 1`: would imply `|t|^n = 1`, but `|t| > 1` gives `|t|^n > 1` since `n ≥ 1`.\n    have hne1 : t ^ (n : ℕ) - 1 ≠ 0 := by\n      intro hc\n      have ht1 : t ^ (n : ℕ) = 1 := by linarith [sub_eq_zero.mp hc]\n      have habs1 : |t| ^ (n : ℕ) = 1 := by rw [← abs_pow, ht1]; simp\n      have hlt : 1 < |t| ^ (n : ℕ) := one_lt_pow₀ ht n.pos.ne'\n      linarith\n    rw [hrn]; field_simp\n  -- RHS: `σ_0(n) · r^n = τ(n) / t^n` since `σ_0 = τ` and `r = 1/t`.\n  · apply tsum_congr; intro n\n    have hp : t ^ (n : ℕ) ≠ 0 := htn n\n    have hrn : r ^ (n : ℕ) = (t ^ (n : ℕ))⁻¹ := by rw [hr_def, inv_pow]\n    rw [hrn, ArithmeticFunction.sigma_zero_apply]; field_simp\n\n/--\nDivergent case (`|t| ≤ 1`).\n\nBoth `tsum`s equal `0` in this regime, but for different reasons in each\nsub-case. We split on `t ∈ {1, 0, -1}` and the generic `|t| < 1, t ≠ 0`\nremainder, and use the same `key` non-summability lemma below to handle\nthe cases where the series diverges.\n\n- `t = 1`: every LHS term is `1 / (1 - 1) = 0` (Lean convention), so the\n  LHS sum is trivially `0`. RHS is `Σ τ(n)`, non-summable.\n- `t = 0`: every RHS term is `τ(n) / 0 = 0` (Lean convention), so the RHS\n  sum is trivially `0`. LHS is `Σ (-1)`, non-summable.\n- `t = -1`: alternating; LHS vanishes at even `n` but odd `n` give terms\n  of magnitude `1/2`, an infinite set. RHS terms have magnitude `τ(n) ≥ 1`.\n- `|t| < 1, t ≠ 0`: standard; bounded denominator gives lower-bounded\n  reciprocal on LHS, and `|t^n| ≤ 1` plus `τ(n) ≥ 1` gives the RHS bound.\n\nIn every case, Lean's `tsum_eq_zero_of_not_summable` collapses the non-\nsummable side to `0`, matching the `0` on the other side.\n-/\n@[category API, AMS 11]\nprivate lemma lambert_divergent (t : ℝ) (ht : |t| ≤ 1) :\n    ∑' n : ℕ+, 1 / (t ^ (n : ℕ) - 1) =\n    ∑' n : ℕ+, ((n : ℕ).divisors.card : ℝ) / (t ^ (n : ℕ)) := by\n  -- `key`: a function with infinitely many terms bounded away from zero is\n  -- not summable. Standard contrapositive of `Summable.tendsto_cofinite_zero`.\n  have key : ∀ (f : ℕ+ → ℝ) (c : ℝ), 0 < c →\n      Set.Infinite {n : ℕ+ | c ≤ |f n|} → ¬Summable f := by\n    intro f c hc hinf hsum\n    have h := hsum.tendsto_cofinite_zero\n    rw [Metric.tendsto_nhds] at h\n    have h1 := h c hc\n    rw [Filter.eventually_cofinite] at h1\n    refine hinf (h1.subset fun n hn => ?_)\n    simp only [Set.mem_ofPred_eq, Real.dist_eq, sub_zero, not_lt]\n    exact hn\n  -- Number of divisors of `n ∈ ℕ+` is at least 1 (since `1 ∈ n.divisors`).\n  have hcard_pos : ∀ (n : ℕ+), (1 : ℝ) ≤ ((n : ℕ).divisors.card : ℝ) := by\n    intro n\n    have : 0 < (n : ℕ).divisors.card := by\n      apply Finset.card_pos.mpr\n      exact ⟨1, Nat.one_mem_divisors.mpr n.2.ne'⟩\n    exact_mod_cast this\n  -- Case t = 1: LHS terms are 1/0 = 0 by Lean's convention, so LHS sum = 0.\n  -- RHS terms are τ(n)/1 = τ(n) ≥ 1, so RHS is non-summable.\n  by_cases ht1 : t = 1\n  · subst ht1\n    have hLzero : ∀ n : ℕ+, (1 : ℝ) / ((1 : ℝ) ^ (n : ℕ) - 1) = 0 := by intro n; simp\n    rw [tsum_congr hLzero, tsum_zero]\n    symm; apply tsum_eq_zero_of_not_summable\n    apply key _ 1 (by norm_num)\n    convert Set.infinite_univ (α := ℕ+)\n    ext n\n    simp only [one_pow, div_one, Set.mem_ofPred_eq, Set.mem_univ, iff_true]\n    rw [abs_of_nonneg (by positivity)]; exact hcard_pos n\n  -- Case t = 0: RHS terms are τ(n)/0 = 0 by Lean's convention, so RHS sum = 0.\n  -- LHS terms are 1/(0 - 1) = -1, so LHS is non-summable.\n  by_cases ht0 : t = 0\n  · subst ht0\n    have hRzero : ∀ n : ℕ+, ((n : ℕ).divisors.card : ℝ) / ((0 : ℝ) ^ (n : ℕ)) = 0 := by\n      intro n; rw [zero_pow n.pos.ne']; simp\n    rw [tsum_congr hRzero, tsum_zero]\n    apply tsum_eq_zero_of_not_summable\n    apply key _ 1 (by norm_num)\n    convert Set.infinite_univ (α := ℕ+)\n    ext n\n    simp only [zero_pow n.pos.ne', zero_sub, Set.mem_ofPred_eq, Set.mem_univ, iff_true]\n    norm_num\n  -- Case t = -1: alternating signs make `1/(t^n - 1)` vanish at even n but\n  -- equal -1/2 at odd n. The set of odd `n ∈ ℕ+` is infinite, which is enough\n  -- to invoke `key` on the LHS. RHS magnitude is τ(n) ≥ 1 everywhere.\n  by_cases htneg1 : t = -1\n  · subst htneg1\n    -- Construct the infinite set of odd positive naturals via the injection\n    -- `k ↦ 2k + 1`, which lands in `ℕ+` and is always odd.\n    have hinf_odd : Set.Infinite {n : ℕ+ | Odd (n : ℕ)} := by\n      apply Set.infinite_of_injective_forall_mem\n        (f := fun k : ℕ => (⟨2 * k + 1, Nat.succ_pos _⟩ : ℕ+))\n      · intro a b hab; rw [Subtype.mk.injEq] at hab; omega\n      · intro k; show Odd (2 * k + 1); exact ⟨k, rfl⟩\n    have hL : ¬ Summable (fun n : ℕ+ => 1 / (((-1 : ℝ)) ^ (n : ℕ) - 1)) := by\n      apply key _ (1/2) (by norm_num)\n      apply hinf_odd.mono\n      intro n hn\n      -- For odd n: (-1)^n = -1, so 1/((-1)^n - 1) = 1/(-2), magnitude 1/2.\n      show (1/2 : ℝ) ≤ |1 / ((-1 : ℝ) ^ (n : ℕ) - 1)|\n      rw [Odd.neg_one_pow hn]; norm_num\n    have hR : ¬ Summable (fun n : ℕ+ => ((n : ℕ).divisors.card : ℝ) / ((-1 : ℝ) ^ (n : ℕ))) := by\n      apply key _ 1 (by norm_num)\n      convert Set.infinite_univ (α := ℕ+)\n      ext n\n      simp only [Set.mem_ofPred_eq, Set.mem_univ, iff_true]\n      -- |(-1)^n| = 1, so |τ(n) / (-1)^n| = τ(n) ≥ 1.\n      rw [abs_div, abs_pow, abs_neg, abs_one, one_pow, div_one]\n      rw [abs_of_nonneg (by positivity)]\n      exact hcard_pos n\n    rw [tsum_eq_zero_of_not_summable hL, tsum_eq_zero_of_not_summable hR]\n  -- Remaining case: |t| ≤ 1 with t ∉ {1, 0, -1}, equivalently |t| < 1 and t ≠ 0.\n  · -- First narrow `|t| ≤ 1` to `|t| < 1` using the case exclusions.\n    have habs_lt : |t| < 1 := by\n      rcases lt_or_eq_of_le ht with h | h\n      · exact h\n      · exfalso\n        rcases (abs_eq zero_le_one).mp h with rfl | rfl\n        · exact ht1 rfl\n        · exact htneg1 rfl\n    have habs_pos : 0 < |t| := abs_pos.mpr ht0\n    -- Since `|t| < 1`, `|t^n| ≤ 1` for all `n ∈ ℕ+`.\n    have hbound : ∀ (n : ℕ+), |t ^ (n : ℕ)| ≤ 1 := by\n      intro n; rw [abs_pow]; exact pow_le_one₀ (abs_nonneg _) (le_of_lt habs_lt)\n    -- Since `|t| < 1` strictly, `t^n ≠ 1` (else `|t|^n = 1` but `|t|^n ≤ |t| < 1`).\n    have htn_ne_one : ∀ (n : ℕ+), t ^ (n : ℕ) ≠ 1 := by\n      intro n hn\n      have h1 : |t ^ (n : ℕ)| = 1 := by rw [hn]; exact abs_one\n      rw [abs_pow] at h1\n      have hle : |t| ^ (n : ℕ) ≤ |t| := by\n        exact pow_le_of_le_one (abs_nonneg _) (le_of_lt habs_lt) n.pos.ne'\n      linarith\n    have htn_ne_zero : ∀ (n : ℕ+), t ^ (n : ℕ) ≠ 0 := fun n => pow_ne_zero _ ht0\n    -- LHS: `|t^n - 1| ≤ |t^n| + 1 ≤ 2`, so `|1 / (t^n - 1)| ≥ 1/2` everywhere.\n    have hL : ¬ Summable (fun n : ℕ+ => 1 / (t ^ (n : ℕ) - 1)) := by\n      apply key _ (1/2) (by norm_num)\n      convert Set.infinite_univ (α := ℕ+)\n      ext n\n      simp only [Set.mem_ofPred_eq, Set.mem_univ, iff_true]\n      have hden_bound : |t ^ (n : ℕ) - 1| ≤ 2 := by\n        calc |t ^ (n : ℕ) - 1| ≤ |t ^ (n : ℕ)| + |(1 : ℝ)| := abs_sub _ _\n          _ ≤ 1 + 1 := by have := hbound n; rw [abs_one]; linarith\n          _ = 2 := by norm_num\n      have hden_pos : 0 < |t ^ (n : ℕ) - 1| := by\n        rw [abs_pos, sub_ne_zero]; exact htn_ne_one n\n      rw [abs_div, abs_one, le_div_iff₀ hden_pos]; linarith\n    -- RHS: `|τ(n) / t^n| = τ(n) / |t^n| ≥ τ(n) ≥ 1` since `|t^n| ≤ 1`.\n    have hR : ¬ Summable (fun n : ℕ+ => ((n : ℕ).divisors.card : ℝ) / (t ^ (n : ℕ))) := by\n      apply key _ 1 (by norm_num)\n      convert Set.infinite_univ (α := ℕ+)\n      ext n\n      simp only [Set.mem_ofPred_eq, Set.mem_univ, iff_true]\n      rw [abs_div, le_div_iff₀ (abs_pos.mpr (htn_ne_zero n))]\n      rw [abs_of_nonneg (by positivity : (0:ℝ) ≤ ((n : ℕ).divisors.card : ℝ))]\n      have := hbound n\n      have := hcard_pos n\n      nlinarith\n    rw [tsum_eq_zero_of_not_summable hL, tsum_eq_zero_of_not_summable hR]\n\n/--\nThe classical Lambert series identity: $\\sum_{n=1}^\\infty \\frac{1}{t^n - 1} =\n\\sum_{n=1}^\\infty \\frac{\\tau(n)}{t^n}$, where $\\tau(n)$ counts the divisors of $n$.\n-/\n@[category textbook, AMS 11]\ntheorem lambert_series_eq_num_divisor_sum : ∀ t : ℚ,\n     ∑' n : ℕ+, 1 / ((t : ℝ) ^ (n : ℕ) - 1) =\n     ∑' n : ℕ+, (n : ℕ).divisors.card / ((t : ℝ) ^ (n : ℕ)) := by\n  intro t\n  obtain ht | ht := lt_or_ge 1 |(t : ℝ)|\n  · exact lambert_convergent (t : ℝ) ht\n  · exact lambert_divergent (t : ℝ) ht\n\nend Erdos1049\n",
  "statement_hash": "084e1b002c6c7c1ff45262f6e18643190998b6473d1c60ab6eb3d226dd90c139",
  "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."
}