{
  "id": "5260",
  "ident": "NS.05260",
  "slug": "oeis-211417",
  "title": "Integrality and supercongruences of the factorial ratio $\\frac{(6n)! n!}{(3n)! (2n)!^2}$",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "It appears that $a(n)/(30n - 1)$ is integral for all $n$ (checked up to $n = 1000$). - _Peter Bala_, Aug 28 2025\n\nA formal proof has been found with the methods described in\n[arxiv/2605.22763](https://arxiv.org/abs/2605.22763).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA211417.thirty_mul_sub_one_dvd_a",
  "statement_lean": "theorem thirty_mul_sub_one_dvd_a (n : ℕ) : (30 * (n : ℤ) - 1) ∣ (a n : ℤ)",
  "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# Integrality and supercongruences of the factorial ratio $\\frac{(6n)! n!}{(3n)! (2n)!^2}$\n\nIntegral factorial ratio sequence:\n$$a(n) = \\frac{(30n)! n!}{(15n)! (10n)! (6n)!}$$\n\n*References:*\n- [A211417](https://oeis.org/A211417)\n- [arxiv/2605.22763](https://arxiv.org/abs/2605.22763) *Advancing Mathematics Research with AI-Driven Formal Proof Search* by George Tsoukalas et al.\n- [Me11] R. Meštrović, *Wolstenholme's theorem: Its Generalizations and Extensions in the last\n  hundred and fifty years (1862-2012)*, [arXiv:1111.3057](https://arxiv.org/abs/1111.3057) (2011).\n-/\n\n@[expose] public section\n\nnamespace OeisA211417\n\n\n/--\nIntegral factorial ratio sequence:\n$$a(n) = \\frac{(30n)! n!}{(15n)! (10n)! (6n)!}$$\n-/\ndef a (n : ℕ) : ℕ :=\n  (Nat.factorial (30 * n) * Nat.factorial n) /\n  (Nat.factorial (15 * n) * Nat.factorial (10 * n) * Nat.factorial (6 * n))\n\nopen Nat Int Finset\n\ndef coprimeIndices (r : ℕ) : Finset ℕ :=\n  (Finset.range (r + 1)).filter (fun i => 1 ≤ i ∧ Nat.gcd i 30 = 1)\n\n/--\nThe product term in the denominator of the general conjecture:\n$$\\prod_{i = 1..r, i \\text{ coprime to } 30} (30n - i)$$\nWe define this in ℤ to handle the $n=0$ case where $30n-i$ in the product might be negative.\n-/\ndef divisorProduct (n r : ℕ) : ℤ :=\n  (coprimeIndices r).prod (fun i : ℕ => 30 * (n : ℤ) - (i : ℤ))\n\n\n@[category test, AMS 11]\nlemma a_0 : a 0 = 1 := by rfl\n\n@[category test, AMS 11]\nlemma a_1 : a 1 = 77636318760 := by rfl\n\n@[category test, AMS 11]\nlemma a_2 : a 2 = 53837289804317953893960 := by rfl\n\n@[category test, AMS 11]\nlemma a_3 : a 3 = 43880754270176401422739454033276880 := by rfl\n\n@[category test, AMS 11]\nlemma a_4 : a 4 = 38113558705192522309151157825210540422513019720 := by rfl\n\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIt appears that $a(n)/(30n - 1)$ is integral for all $n$ (checked up to $n = 1000$). - _Peter Bala_, Aug 28 2025\n\nA formal proof has been found with the methods described in\n[arxiv/2605.22763](https://arxiv.org/abs/2605.22763).\n-/\n@[category research solved, AMS 11, formal_proof using formal_conjectures at\n\"https://github.com/mo271/formal-conjectures/blob/a32396489dcb8f86c3549b93aa358ac6a10a3a1f/FormalConjectures/OEIS/211417.wip.lean#L243\"]\ntheorem thirty_mul_sub_one_dvd_a (n : ℕ) : (30 * (n : ℤ) - 1) ∣ (a n : ℤ) := by\n    sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nConjecture: \"7*a(n)/(2*n + 1) ... [is an] integer for all n (checked up to n = 1000).\"\n- _Peter Bala_, Aug 28 2025\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/oeis-a211417/blob/cad1fb228b5b80573cab3eeb92c8be57fd73c506/lean/OeisA211417FC.lean#L866-L868\"]\ntheorem seven_mul_a_dvd_two_mul_add_one (n : ℕ) :\n    (2 * (n : ℤ) + 1) ∣ 7 * (a n : ℤ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nConjecture: \"a(n)/(3*n + 1) ... [is an] integer for all n (checked up to n = 1000).\"\n- _Peter Bala_, Aug 28 2025\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/oeis-a211417/blob/cad1fb228b5b80573cab3eeb92c8be57fd73c506/lean/OeisA211417FC.lean#L1173-L1175\"]\ntheorem a_dvd_three_mul_add_one (n : ℕ) :\n    (3 * (n : ℤ) + 1) ∣ (a n : ℤ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nConjecture: \"a(n)/(5*n + 1) ... [is an] integer for all n (checked up to n = 1000).\"\n- _Peter Bala_, Aug 28 2025\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/oeis-a211417/blob/cad1fb228b5b80573cab3eeb92c8be57fd73c506/lean/OeisA211417FC.lean#L1446-L1448\"]\ntheorem a_dvd_five_mul_add_one (n : ℕ) :\n    (5 * (n : ℤ) + 1) ∣ (a n : ℤ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nConjecture: \"42*a(n)/((2*n + 1)*(3*n + 1)*(5*n + 1)) [is an] integer for all n\n(checked up to n = 1000).\" - _Peter Bala_, Aug 28 2025\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/oeis-a211417/blob/cad1fb228b5b80573cab3eeb92c8be57fd73c506/lean/OeisA211417FC.lean#L1514-L1524\"]\ntheorem forty_two_mul_a_dvd_product (n : ℕ) :\n    ((2 * (n : ℤ) + 1) * (3 * (n : ℤ) + 1) * (5 * (n : ℤ) + 1)) ∣\n      42 * (a n : ℤ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nConjecture: \"More generally, for r >= 1, we conjecture that there exists a constant D(r) such that\nD(r)*a(n)/Product_{i = 1..r, i coprime to 30} (30*n - i) is integral for all n.\"\n- _Peter Bala_, Aug 28 2025\n\nThis generalizes `thirty_mul_sub_one_dvd_a` (the $r = 1$ case where $D(1) = 1$).\n\n**Proof sketch** (kernel-checked development at the `formal_proof` permalink below, which\nproves the non-vacuous form with the explicit positive witness $D = (r!)^{r^2}$):\nLegendre-valuation analysis of the Landau step function\n$\\Delta(x) = \\lfloor 30x \\rfloor + \\lfloor x \\rfloor - \\lfloor 15x \\rfloor -\n\\lfloor 10x \\rfloor - \\lfloor 6x \\rfloor$, whose values lie in $\\{0, 1\\}$. Three\ningredients: a unit-class rigidity lemma ($\\Delta_c = 1$ for every unit class $c$ modulo\n$30$), a witness-uniqueness bound for prime powers $p^k > r$ (at most one factor of the\ndivisor product is divisible by $p^k$), and a uniform low-layer budget for $p^k \\le r$\nabsorbed by the witness constant.\n-/\n@[category research solved, AMS 11, formal_proof using formal_conjectures at\n\"https://github.com/chy4pro/formal-conjectures/blob/fbc6706451b0e80787580d91ee6c252c121e0165/FormalConjectures/OEIS/211417.lean#L555\"]\ntheorem general_divisibility (r : ℕ) (hr : 1 ≤ r) :\n    ∃ D : ℤ, 0 < D ∧ ∀ n : ℕ, (divisorProduct n r) ∣ (D * (a n : ℤ)) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSupercongruence: \"a(p^k) == a(p^(k-1)) ( mod p^(3*k) ) for any prime p >= 5 and any positive\ninteger k.\" - _Peter Bala_, Jan 24 2020\n\nMore generally, \"the congruences a(n*p^k) == a(n*p^(k-1)) ( mod p^(3*k) ) may hold for any\nprime p >= 5 and any positive integers n and k.\"\n\nThe same OEIS comment (Peter Bala, Jan 24 2020) already sketches an informal proof of the\nsupercongruence: write\n$a(n) = \\binom{30n}{15n}\\binom{15n}{5n} / \\binom{6n}{n}$ and apply [Me11, eq. (39), p. 12].\n\nSolved: a Lean 4 proof, derived from the Atlas proofs in\n[facebookresearch/atlas-lean](https://github.com/facebookresearch/atlas-lean), is linked in\n`formal_proof`.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at\n    \"https://github.com/niketp03/atlas-fc-verified/blob/15e4b3a7584e218cec531aeaf71cce72a8a9ecb1/AtlasFCSolutions/OeisA211417.lean#L848\"]\ntheorem supercongruence (p k : ℕ) (hp : p.Prime) (hp5 : 5 ≤ p) (hk : 0 < k) :\n    (p : ℤ) ^ (3 * k) ∣ ((a (p ^ k) : ℤ) - (a (p ^ (k - 1)) : ℤ)) := by\n  sorry\n\nend OeisA211417\n",
  "statement_hash": "9abf148756dfe75243f76e8450d2fab3ef7f9fcbbbd0261341b866516d899fba",
  "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."
}