{
  "id": "3513",
  "ident": "NS.03513",
  "slug": "erdos-885",
  "title": "Erdős Problem 885",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is it true that, for every $k \\geq 1$, there exist integers $N_1 < \\dots < N_k$ such that\n$|\\cap_i D(N_i)| \\geq k$?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos885.erdos_885",
  "statement_lean": "theorem erdos_885 : ∀ k ≥ 1,\n    ∃ Ns : Finset ℕ,\n      (∀ n ∈ Ns, 1 ≤ n) ∧\n      Ns.card = k ∧\n      (⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ k",
  "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 885\n\n*References:*\n- [erdosproblems.com/885](https://www.erdosproblems.com/885)\n- [ErRo97] Erdős, P. and Rosenfeld, M., The factor-difference set of integers. (1997)\n- [Ji99] Jiménez-Urroz, J., A note on a conjecture of Erdős and {R}osenfeld. (1999)\n- [Br19] Bremner, A., On a problem of Erdős related to common factor differences. (2019)\n-/\n\n@[expose] public section\n\nopen Nat Set Finset\n\nnamespace Erdos885\n\n/--\nFor integer $n \\geq 1$ we define the factor difference set of $n$ by\n$D(n) = \\{|a-b| : n=ab\\}$.\n-/\ndef factorDifferenceSet (n : ℕ) : Set ℕ :=\n  {d | ∃ a b : ℕ, n = a * b ∧ (d : ℤ) = |(a : ℤ) - b|}\n\n@[category API, AMS 11]\nlemma mem_factorDifferenceSet_of_eq {n d b : ℕ} (h : n = b * (b + d)) :\n    d ∈ factorDifferenceSet n :=\n  ⟨b, b + d, h, by push_cast; rw [show (b : ℤ) - (b + d) = -d by ring, abs_neg,\n    abs_of_nonneg (by positivity)]⟩\n\n@[category API, AMS 11]\nlemma factorDifferenceSet_finite {n : ℕ} (hn : 1 ≤ n) : (factorDifferenceSet n).Finite := by\n  refine (Set.finite_Iic n).subset ?_\n  rintro d ⟨a, b, rfl, hd⟩\n  have ha : 1 ≤ a := Nat.pos_of_ne_zero (by rintro rfl; simp at hn)\n  have hb : 1 ≤ b := Nat.pos_of_ne_zero (by rintro rfl; simp at hn)\n  have h1 : (a : ℤ) ≤ a * b := by exact_mod_cast Nat.le_mul_of_pos_right a hb\n  have h2 : (b : ℤ) ≤ a * b := by exact_mod_cast Nat.le_mul_of_pos_left b ha\n  have : (d : ℤ) ≤ a * b := hd ▸ abs_sub_le_iff.2 ⟨by linarith, by linarith⟩\n  exact_mod_cast this\n\n/--\nIs it true that, for every $k \\geq 1$, there exist integers $N_1 < \\dots < N_k$ such that\n$|\\cap_i D(N_i)| \\geq k$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_885 : ∀ k ≥ 1,\n    ∃ Ns : Finset ℕ,\n      (∀ n ∈ Ns, 1 ≤ n) ∧\n      Ns.card = k ∧\n      (⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ k := by\n  sorry\n\n/--\nErdős and Rosenfeld [ErRo97] proved this is true for $k=2$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_885.variants.k_eq_2 :\n    ∃ Ns : Finset ℕ,\n      (∀ n ∈ Ns, 1 ≤ n) ∧\n      Ns.card = 2 ∧\n      (⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ 2 := by\n  refine ⟨{12, 42}, by decide, by decide, ?_⟩\n  have hsub : ({1, 11} : Set ℕ) ⊆\n      ⋂ n ∈ ({12, 42} : Finset ℕ), factorDifferenceSet n := by\n    simp only [Set.subset_def, Set.mem_insert_iff, Set.mem_singleton_iff, Set.mem_iInter,\n      Finset.mem_insert, Finset.mem_singleton]\n    rintro d (rfl | rfl) n (rfl | rfl)\n    · exact ⟨3, 4, by norm_num, by norm_num⟩\n    · exact ⟨6, 7, by norm_num, by norm_num⟩\n    · exact ⟨1, 12, by norm_num, by norm_num⟩\n    · exact ⟨3, 14, by norm_num, by norm_num⟩\n  have hfin : (⋂ n ∈ ({12, 42} : Finset ℕ), factorDifferenceSet n).Finite :=\n    (factorDifferenceSet_finite (by norm_num)).subset (Set.iInter₂_subset 12 (by simp))\n  have h2 : ({1, 11} : Set ℕ).ncard = 2 := Set.ncard_pair (by norm_num)\n  exact h2 ▸ Set.ncard_le_ncard hsub hfin\n\n/--\nJiménez-Urroz [Ji99] proved this for $k=3$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_885.variants.k_eq_3 :\n    ∃ Ns : Finset ℕ,\n      (∀ n ∈ Ns, 1 ≤ n) ∧\n      Ns.card = 3 ∧\n      (⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ 3 := by\n  refine ⟨{1936, 4900, 32400}, by decide, by decide, ?_⟩\n  have hsub : ({0, 105, 480} : Set ℕ) ⊆\n      ⋂ n ∈ ({1936, 4900, 32400} : Finset ℕ), factorDifferenceSet n := by\n    simp only [Set.subset_def, Set.mem_insert_iff, Set.mem_singleton_iff, Set.mem_iInter,\n      Finset.mem_insert, Finset.mem_singleton]\n    rintro d (rfl | rfl | rfl) n (rfl | rfl | rfl)\n    · exact ⟨44, 44, by norm_num, by norm_num⟩\n    · exact ⟨70, 70, by norm_num, by norm_num⟩\n    · exact ⟨180, 180, by norm_num, by norm_num⟩\n    · exact ⟨16, 121, by norm_num, by norm_num⟩\n    · exact ⟨35, 140, by norm_num, by norm_num⟩\n    · exact ⟨135, 240, by norm_num, by norm_num⟩\n    · exact ⟨4, 484, by norm_num, by norm_num⟩\n    · exact ⟨10, 490, by norm_num, by norm_num⟩\n    · exact ⟨60, 540, by norm_num, by norm_num⟩\n  have hfin : (⋂ n ∈ ({1936, 4900, 32400} : Finset ℕ), factorDifferenceSet n).Finite :=\n    (factorDifferenceSet_finite (by norm_num)).subset (Set.iInter₂_subset 1936 (by simp))\n  have h3 : ({0, 105, 480} : Set ℕ).ncard = 3 :=\n    Set.ncard_eq_three.mpr ⟨0, 105, 480, by norm_num, by norm_num, by norm_num, rfl⟩\n  exact h3 ▸ Set.ncard_le_ncard hsub hfin\n\n/--\nBremner [Br19] proved this for $k=4$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_885.variants.k_eq_4 :\n    ∃ Ns : Finset ℕ,\n      (∀ n ∈ Ns, 1 ≤ n) ∧\n      Ns.card = 4 ∧\n      (⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ 4 := by\n  refine ⟨{65984625, 508032000, 1578963456, 2505664000}, by simp, by decide, ?_⟩\n  have hsub : (↑({5040, 27720, 68880, 164976} : Finset ℕ) : Set ℕ) ⊆\n      ⋂ n ∈ ({65984625, 508032000, 1578963456, 2505664000} : Finset ℕ),\n        factorDifferenceSet n := by\n    intro d hd\n    simp only [Finset.coe_insert, Finset.coe_singleton, Set.mem_insert_iff,\n      Set.mem_singleton_iff] at hd\n    simp only [Set.mem_iInter, Finset.mem_insert, Finset.mem_singleton]\n    rintro n (rfl | rfl | rfl | rfl) <;> rcases hd with rfl | rfl | rfl | rfl\n    -- `N = b * (b + d)`, with `b` listed per `N` in the order `d = 5040, 27720, 68880, 164976`\n    exacts [mem_factorDifferenceSet_of_eq (b := 5985) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 2205) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 945) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 399) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 20160) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 12600) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 6720) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 3024) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 37296) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 28224) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 18144) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 9072) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 47600) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 38080) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 26320) (by norm_num),\n      mem_factorDifferenceSet_of_eq (b := 14000) (by norm_num)]\n  have hfin : (⋂ n ∈ ({65984625, 508032000, 1578963456, 2505664000} : Finset ℕ),\n      factorDifferenceSet n).Finite :=\n    (factorDifferenceSet_finite (by norm_num : 1 ≤ 65984625)).subset\n      (Set.iInter₂_subset 65984625 (by simp))\n  calc 4 = (↑({5040, 27720, 68880, 164976} : Finset ℕ) : Set ℕ).ncard := by\n        rw [Set.ncard_coe_finset]; decide\n    _ ≤ _ := Set.ncard_le_ncard hsub hfin\n\nend Erdos885\n",
  "statement_hash": "e656e948f8f036c6af8980efcb21495b970973922dbe8affc5fe687a466fdebf",
  "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."
}