{
  "id": "6559",
  "ident": "NS.06559",
  "slug": "oeis-46969--conjecture2",
  "title": "Denominators of coefficients in Stirling's expansion for $\\log(\\Gamma(z))$ · conjecture2",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Conjecture II: if $\\frac{a(n)}{12}$ is prime, then $\\frac{a(n-1)}{12} - (n-1)$,\n$\\frac{a(n)}{12} - n$ and $\\frac{a(n+2)}{12} - (n+2)$ are multiples of 6.\n- Lorenzo Sauras Altuzarra, Oct 13 2020\n\nThis is false for $n = 236791$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA46969.conjecture2",
  "statement_lean": "theorem conjecture2 :\n    ¬ ∀ (n : ℕ), 2 ≤ n → 12 ∣ a n → Nat.Prime (a n / 12) →\n      12 ∣ a (n - 1) → 12 ∣ a (n + 2) →\n      6 ∣ ((a (n - 1) / 12 : ℤ) - (n - 1 : ℤ)) ∧\n      6 ∣ ((a n / 12 : ℤ) - (n : ℤ)) ∧\n      6 ∣ ((a (n + 2) / 12 : ℤ) - (n + 2 : ℤ))",
  "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# Denominators of coefficients in Stirling's expansion for $\\log(\\Gamma(z))$\n\nThe $n$-th term is the denominator of $\\frac{B_{2n}}{2n(2n-1)}$ where $B_{2n}$ is the $2n$-th\nBernoulli number.\n\n*References:*\n- [A046969](https://oeis.org/A046969)-/\n\n@[expose] public section\n\nnamespace OeisA46969\n\n/-- Denominators of coefficients in Stirling's expansion for $\\log(\\Gamma(z))$. -/\ndef a (n : ℕ) : ℕ :=\n  if n = 0 then 0\n  else\n    let m := 2 * n\n    let k := m * (m - 1)\n    (bernoulli m / (k : ℚ)).den\n\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 0 := by rfl\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 12 := by\n  dsimp [a]\n  rw [bernoulli_two]\n  norm_num\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 360 := by\n  dsimp [a]\n  rw [bernoulli_eq_bernoulli'_of_ne_one (by decide), bernoulli'_four]\n  norm_num\n\n@[category API, AMS 11]\nlemma bernoulli'_six : bernoulli' 6 = 1 / 42 := by\n  have hchoose2 : Nat.choose 6 2 = 15 := by decide\n  have hchoose3 : Nat.choose 6 3 = 20 := by decide\n  have hchoose4 : Nat.choose 6 4 = 15 := by decide\n  have h5 : bernoulli' 5 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)\n  rw [bernoulli'_def]\n  norm_num [Finset.sum_range_succ, Finset.sum_range_zero, bernoulli'_two, bernoulli'_three,\n    bernoulli'_four, h5, hchoose2, hchoose3, hchoose4]\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 1260 := by\n  dsimp [a]\n  rw [bernoulli_eq_bernoulli'_of_ne_one (by decide), bernoulli'_six]\n  norm_num\n\n@[category API, AMS 11]\nlemma bernoulli'_eight : bernoulli' 8 = -1 / 30 := by\n  have hchoose2 : Nat.choose 8 2 = 28 := by decide\n  have hchoose3 : Nat.choose 8 3 = 56 := by decide\n  have hchoose4 : Nat.choose 8 4 = 70 := by decide\n  have hchoose5 : Nat.choose 8 5 = 56 := by decide\n  have hchoose6 : Nat.choose 8 6 = 28 := by decide\n  have h3 : bernoulli' 3 = 0 := bernoulli'_three\n  have h5 : bernoulli' 5 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)\n  have h7 : bernoulli' 7 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)\n  rw [bernoulli'_def]\n  norm_num [Finset.sum_range_succ, Finset.sum_range_zero, bernoulli'_two, h3,\n    bernoulli'_four, h5, bernoulli'_six, h7,\n    hchoose2, hchoose3, hchoose4, hchoose5, hchoose6]\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 1680 := by\n  dsimp [a]\n  rw [bernoulli_eq_bernoulli'_of_ne_one (by decide), bernoulli'_eight]\n  norm_num\n\n@[category API, AMS 11]\nlemma bernoulli'_ten : bernoulli' 10 = 5 / 66 := by\n  have hchoose2 : Nat.choose 10 2 = 45 := by decide\n  have hchoose3 : Nat.choose 10 3 = 120 := by decide\n  have hchoose4 : Nat.choose 10 4 = 210 := by decide\n  have hchoose5 : Nat.choose 10 5 = 252 := by decide\n  have hchoose6 : Nat.choose 10 6 = 210 := by decide\n  have hchoose7 : Nat.choose 10 7 = 120 := by decide\n  have hchoose8 : Nat.choose 10 8 = 45 := by decide\n  have h3 : bernoulli' 3 = 0 := bernoulli'_three\n  have h5 : bernoulli' 5 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)\n  have h7 : bernoulli' 7 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)\n  have h9 : bernoulli' 9 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)\n  rw [bernoulli'_def]\n  norm_num [Finset.sum_range_succ, Finset.sum_range_zero, bernoulli'_two, h3,\n    bernoulli'_four, h5, bernoulli'_six, h7, bernoulli'_eight, h9,\n    hchoose2, hchoose3, hchoose4, hchoose5, hchoose6, hchoose7, hchoose8]\n\n@[category test, AMS 11]\ntheorem a_5 : a 5 = 1188 := by\n  dsimp [a]\n  rw [bernoulli_eq_bernoulli'_of_ne_one (by decide), bernoulli'_ten]\n  norm_num\n\n/--\nConjecture I: if $n > 2$, then $\\frac{a(\\text{A005382}(n))}{12}$ is prime,\nwhere A005382 is the sequence of primes $p$ such that $2p-1$ is also prime.\nSince $\\text{A005382}(1) = 2$, $\\text{A005382}(2) = 3$ and $\\text{A005382}(3) = 7$, this says\nthat $\\frac{a(p)}{12}$ is prime for every prime $p > 3$ such that $2p-1$ is also prime.\n- Lorenzo Sauras Altuzarra, Oct 13 2020\n-/\n@[category research open, AMS 11]\ntheorem conjecture1 (p : ℕ) (hp : p.Prime) (hp' : (2 * p - 1).Prime) (h3 : 3 < p) :\n    (a p / 12).Prime := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nConjecture II: if $\\frac{a(n)}{12}$ is prime, then $\\frac{a(n-1)}{12} - (n-1)$,\n$\\frac{a(n)}{12} - n$ and $\\frac{a(n+2)}{12} - (n+2)$ are multiples of 6.\n- Lorenzo Sauras Altuzarra, Oct 13 2020\n\nThis is false for $n = 236791$.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/epoch-research/LeanOpenProblems-results/blob/f02efd9a8c5fc6a735d2a90c33e24f7278ce0ffc/runs/oeis-full-50usd-ant-j0j0g4uzligm1k41/oeis_a046969_conjecture_2/Submission/Spec.lean#L845\"]\ntheorem conjecture2 :\n    ¬ ∀ (n : ℕ), 2 ≤ n → 12 ∣ a n → Nat.Prime (a n / 12) →\n      12 ∣ a (n - 1) → 12 ∣ a (n + 2) →\n      6 ∣ ((a (n - 1) / 12 : ℤ) - (n - 1 : ℤ)) ∧\n      6 ∣ ((a n / 12 : ℤ) - (n : ℤ)) ∧\n      6 ∣ ((a (n + 2) / 12 : ℤ) - (n + 2 : ℤ)) := by\n  sorry\n\nend OeisA46969\n",
  "statement_hash": "0ec066f19fb83f401b9ff7500a9ed177084764763b836c5a1821d7daf9594f77",
  "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."
}