{
  "id": "5042",
  "ident": "NS.05042",
  "slug": "oeis-176477",
  "title": "Recurrence with fourth powers of binomial coefficients",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Each term $a(n)$ is a positive integer.\n- _Zhi-Wei Sun_, Apr 06 2010\n\nProved in the OEIS Open project, see T. Adamczewski, OEIS Open: How many conjectures can\nlanguage models turn into theorems?, [arXiv:2608.11941](https://arxiv.org/abs/2608.11941).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA176477.conjecture1",
  "statement_lean": "theorem conjecture1 (n : ℕ) (hn : 1 ≤ n) : (a n).den = 1 ∧ 0 < 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# Recurrence with fourth powers of binomial coefficients\n\nThe sequence is defined by $a(1) = 2$, and for $n \\ge 2$,\n$$(2n+1)^3 a(n) = 32n^3 a(n-1) + (21n^3 + 22n^2 + 8n + 1) \\binom{2n-1}{n}^4.$$\n\n*References:*\n- [A176477](https://oeis.org/A176477)\n- Z.-W. Sun, \"Open Conjectures on Congruences\", arXiv preprint\n  [arXiv:0911.5665](https://arxiv.org/abs/0911.5665) [math.NT], 2009-2011.\n- T. Adamczewski, \"OEIS Open: How many conjectures can language models turn into theorems?\",\n  [arXiv:2608.11941](https://arxiv.org/abs/2608.11941) [cs.AI], 2026.\n-/\n\n@[expose] public section\n\nnamespace OeisA176477\n\n/-- Rational recurrence sequence $a(n)$. -/\ndef a : ℕ → ℚ\n  | 0 => 0\n  | 1 => 2\n  | n + 2 =>\n    let idx : ℚ := n + 2\n    let prev := a (n + 1)\n    (32 * idx ^ 3 * prev +\n      (21 * idx ^ 3 + 22 * idx ^ 2 + 8 * idx + 1) *\n        ((2 * (n + 2) - 1).choose (n + 2) : ℚ) ^ 4) /\n      (2 * idx + 1) ^ 3\n\n/-- Value of the sequence `a` at 1. -/\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 2 := by rfl\n\n/-- Value of the sequence `a` at 2. -/\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 181 := by decide +native\n\nset_option linter.style.formal_proof_palomar false in\n/--\nEach term $a(n)$ is a positive integer.\n- _Zhi-Wei Sun_, Apr 06 2010\n\nProved in the OEIS Open project, see T. Adamczewski, OEIS Open: How many conjectures can\nlanguage models turn into theorems?, [arXiv:2608.11941](https://arxiv.org/abs/2608.11941).\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/epoch-research/LeanOpenProblems-results/blob/fd09021e79869476ef83cda231312f1a2a89c8d7/runs/oeis-open-lite-gpt6astra-37ly1phzfwj2ech4/oeis_a176477_conjecture/Submission/Spec.lean#L58383\"]\ntheorem conjecture1 (n : ℕ) (hn : 1 ≤ n) : (a n).den = 1 ∧ 0 < a n := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\n$a(n)$ is odd if and only if $n = 2, 2^2, 2^3, \\dots$.\n- _Zhi-Wei Sun_, Apr 06 2010\n\nProved in the OEIS Open project, see T. Adamczewski, OEIS Open: How many conjectures can\nlanguage models turn into theorems?, [arXiv:2608.11941](https://arxiv.org/abs/2608.11941).\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/epoch-research/LeanOpenProblems-results/blob/fd09021e79869476ef83cda231312f1a2a89c8d7/runs/oeis-open-lite-gpt6astra-37ly1phzfwj2ech4/oeis_a176477_conjecture/Submission/Spec.lean#L58383\"]\ntheorem conjecture2 (n : ℕ) (hn : 1 ≤ n) :\n    ((a n).den = 1 ∧ Odd (a n).num) ↔ ∃ m : ℕ, 1 ≤ m ∧ n = 2 ^ m := by\n  sorry\n\nend OeisA176477\n\n",
  "statement_hash": "8522a6850de40705a0ce4415ba9d57b81a376b328669aa9d14b8d762e1723701",
  "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."
}