{
  "id": "1959",
  "ident": "NS.01959",
  "slug": "erdos-388",
  "title": "Erdős Problem 388",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Are there only finitely many solutions of\n$$\\prod_{1\\leq i\\leq k_1}(m_1+i)=\\prod_{1\\leq j\\leq k_2}(m_2+j)$$\nwith $k_1,k_2>3$ and $m_1+k_1\\leq m_2$?\n\nHere $m_1, m_2 \\geq 0$, so every factor is positive and the condition $m_1 + k_1 \\leq m_2$ makes the\ntwo blocks disjoint. Negative $m_1$ would give trivial solutions such as\n$(-5)(-4)(-3)(-2) = 2 \\cdot 3 \\cdot 4 \\cdot 5$. The source also asks to classify all solutions;\nsee `Erdos388.erdos_388.variants.classification`.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos388.erdos_388",
  "statement_lean": "theorem erdos_388 :\n    {(m₁, k₁, m₂, k₂) : ℕ × ℕ × ℕ × ℕ | 3 < k₁ ∧ 3 < k₂ ∧ m₁ + k₁ ≤ m₂ ∧\n      ∏ i ∈ Finset.Icc 1 k₁, (m₁ + i) = ∏ j ∈ Finset.Icc 1 k₂, (m₂ + j)}.Finite",
  "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 388\n\n*References:*\n- [erdosproblems.com/388](https://www.erdosproblems.com/388)\n- [Er76d] Erdős, P., *Problems and results on number theoretic properties of consecutive integers\n  and related questions*. Proceedings of the Fifth Manitoba Conference on Numerical Mathematics\n  (Univ. Manitoba, Winnipeg, Man., 1975) (1976), 25-44.\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- [Er92e] Erdős, Pál, *Some Unsolved problems in Geometry, Number Theory and Combinatorics*.\n  Eureka (1992), 44-48.\n-/\n\n@[expose] public section\n\nnamespace Erdos388\n\n/--\nAre there only finitely many solutions of\n$$\\prod_{1\\leq i\\leq k_1}(m_1+i)=\\prod_{1\\leq j\\leq k_2}(m_2+j)$$\nwith $k_1,k_2>3$ and $m_1+k_1\\leq m_2$?\n\nHere $m_1, m_2 \\geq 0$, so every factor is positive and the condition $m_1 + k_1 \\leq m_2$ makes the\ntwo blocks disjoint. Negative $m_1$ would give trivial solutions such as\n$(-5)(-4)(-3)(-2) = 2 \\cdot 3 \\cdot 4 \\cdot 5$. The source also asks to classify all solutions;\nsee `Erdos388.erdos_388.variants.classification`.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_388 :\n    {(m₁, k₁, m₂, k₂) : ℕ × ℕ × ℕ × ℕ | 3 < k₁ ∧ 3 < k₂ ∧ m₁ + k₁ ≤ m₂ ∧\n      ∏ i ∈ Finset.Icc 1 k₁, (m₁ + i) = ∏ j ∈ Finset.Icc 1 k₂, (m₂ + j)}.Finite := by\n  sorry\n\ndef erdos_388.variants.classification.answer : Set (ℕ × ℕ × ℕ × ℕ) := sorry\n\n/--\nCan one classify all solutions of\n$$\\prod_{1\\leq i\\leq k_1}(m_1+i)=\\prod_{1\\leq j\\leq k_2}(m_2+j)$$\nwith $k_1,k_2>3$ and $m_1+k_1\\leq m_2$?\n\nA solution must supply the set of all solutions $(m_1, k_1, m_2, k_2)$. Whether a description of\nthis set is a satisfactory classification is up to human judgement.\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_388.variants.classification :\n    {(m₁, k₁, m₂, k₂) : ℕ × ℕ × ℕ × ℕ | 3 < k₁ ∧ 3 < k₂ ∧ m₁ + k₁ ≤ m₂ ∧\n      ∏ i ∈ Finset.Icc 1 k₁, (m₁ + i) = ∏ j ∈ Finset.Icc 1 k₂,\n        (m₂ + j)} = erdos_388.variants.classification.answer := by\n  sorry\n\n/--\nMore generally, if $k_1>2$ then for fixed $a$ and $b$ the equation\n$$a\\prod_{1\\leq i\\leq k_1}(m_1+i)=b\\prod_{1\\leq j\\leq k_2}(m_2+j)$$\nshould have only finitely many solutions.\n\nThe source states no condition on $a$, $b$, $k_2$ or the position of the blocks, so this is our\nreading: $a$ and $b$ are positive integers, we keep the condition $m_1+k_1\\leq m_2$ of the main\nproblem (the $k_1$-block lies below the $k_2$-block), and we assume $k_2 > 2$ as well. Without\nthese conditions there are infinite families of solutions:\n- for $k_2 = 1$ and $b = 1$, take $m_2 + 1 = a\\prod_{1\\leq i\\leq k_1}(m_1+i)$;\n- for $k_2 = 2$, $a = 1$ and $b = 4$, the identity $(n+1)(n+2)(n+3)(n+4) = Y(Y+2)$ with\n  $Y = (n+1)(n+4)$ even gives a solution with $m_2 + 1 = Y/2$ for every $n \\geq 2$;\n- overlapping blocks give $2\\prod_{1\\leq i\\leq k}(k-1+i)=\\prod_{1\\leq j\\leq k}(k+j)$ for every\n  $k \\geq 2$.\n-/\n@[category research open, AMS 11]\ntheorem erdos_388.variants.general (a b : ℕ) (ha : 0 < a) (hb : 0 < b) :\n    {(m₁, k₁, m₂, k₂) : ℕ × ℕ × ℕ × ℕ | 2 < k₁ ∧ 2 < k₂ ∧ m₁ + k₁ ≤ m₂ ∧\n      a * ∏ i ∈ Finset.Icc 1 k₁, (m₁ + i) = b * ∏ j ∈ Finset.Icc 1 k₂, (m₂ + j)}.Finite := by\n  sorry\n\nend Erdos388\n",
  "statement_hash": "6308bd49d53bd3b40f84ab34c27679762be709b5d28a1ce97b2b62b408d8978e",
  "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."
}