{
  "id": "4508",
  "ident": "NS.04508",
  "slug": "oeis-103885",
  "title": "$a(n) = [x^{2n}] \\left(\\frac{1 + x}{1 - x}\\right)^n$",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "The recurrence given below can be rewritten in the form\n$$(2n+1)(2n+2)P(2,n)a(n+1) - (2n-1)(2n-2)P(2,-n)a(n-1) = Q(2,n^2)a(n),$$\nwhere the polynomial $Q(2,n) = 4(55n^2 - 34n + 3)$ and the polynomial $P(2,n) = 5n^2 - 5n + 1$\nsatisfies the symmetry condition $P(2,n) = P(2,1-n)$ and has real zeros.\nMore generally, for fixed $m = 1,2,3, \\ldots$, we conjecture that the sequence $b(n) := a(mn)$\nsatisfies a recurrence of the form\n$$( \\prod_{k = 1}^{2m} (2mn + k) )P(2m,n)b(n+1) + (-1)^m( \\prod_{k = 1}^{2*m} (2mn - k) )\n  P(2m,-n)b(n-1) = Q(2m,n^2)b(n),$$\nwhere the polynomials $P(2m,n)$ and $Q(2m,n)$ have degree $2m$. Conjecturally, the polynomial\n$P(2m,n) = P(2m,1-n)$ and has real zeros in the interval [0, 1].\nThe $4m$ zeros of the polynomial $Q(2m,n^2)$ seem to belong to the interval $[-1, 1]$ and\n$4m - 2$ of these zeros appear to be approximated by the rational numbers\n$\\pm k/(3m)$, where $1 \\le k \\le 3m - 2$, $k$ not a multiple of $3$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA103885.conjecture",
  "statement_lean": "theorem conjecture (m : ℕ) (hm : 1 ≤ m) :\n    ∃ (P Q : Polynomial ℝ),\n      -- P and Q have degree 2m\n      P.degree = (2 * m : ℕ) ∧ Q.degree = (2 * m : ℕ) ∧\n      -- The recurrence relation holds for all n >= 1\n      (∀ (n : ℕ) (hn : 1 ≤ n),\n        (prodFactorPlus m n * P.eval (n : ℝ)) * (aSubsequenceReal m (n + 1)) +\n\n        ((-1 : ℝ) ^ m * prodFactorMinus m n * P.eval (-(n : ℝ))) * (aSubsequenceReal m (n - 1)) =\n\n        (Q.eval ((n : ℝ)^2)) * (aSubsequenceReal m n)) ∧\n\n      -- P symmetry: P(x) = P(1-x)\n      (∀ x : ℝ, P.eval x = P.eval (1 - x)) ∧\n\n      -- P has real zeros in [0, 1]: all complex zeros are real and in [0, 1]\n      (∀ z : ℂ, (P.map (algebraMap ℝ ℂ)).eval z = 0 → z.im = 0 ∧ z.re ∈ (Set.Icc 0 1)) ∧\n\n      -- Q zero properties: The zeros of Q(x^2) are real and in [-1, 1].\n      (∀ z : ℂ, (Q.map (algebraMap ℝ ℂ)).eval (z^2) = 0 → z.im = 0 ∧ z.re ∈ (Set.Icc (-1) 1))",
  "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# $a(n) = [x^{2n}] \\left(\\frac{1 + x}{1 - x}\\right)^n$\n\nThe sequence is given by the combinatorial identity:\n$a(n) = \\sum_{k = 0}^n \\binom{n}{k} \\binom{2n+k-1}{n-1}$\nwith $a(0) = 1$.\n\n*References:*\n- [A103885](https://oeis.org/A103885)\n-/\n\n@[expose] public section\n\nnamespace OeisA103885\n\nopen Nat Finset Polynomial\nopen scoped BigOperators ComplexConjugate\n\n/-- The primary defining sequence `a`.\n$a(n) = [x^{2n}] \\left(\\frac{1 + x}{1 - x}\\right)^n$, given by the combinatorial identity:\n$a(n) = \\sum_{k = 0}^n \\binom{n}{k} \\binom{2n+k-1}{n-1}$\nwith $a(0) = 1$. -/\ndef a (n : ℕ) : ℕ :=\n  if n = 0 then 1\n  else\n    let r : ℕ := n - 1\n    (range (n + 1)).sum (fun k => (n.choose k) * ((2 * n + k - 1).choose r))\n\n/-- Term theorems verifying the first few values of the sequence against the official OEIS b-file -/\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 2 := by decide\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 16 := by decide\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 146 := by decide\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 1408 := by decide\n\n/-- The sequence $b(n) = a(m*n)$ lifted to ℝ -/\nnoncomputable def aSubsequenceReal (m n : ℕ) : ℝ :=\n  (a (m * n) : ℝ)\n\n/-- The indices $k = 1$ to $2m$, used in the product -/\ndef productIndices (m : ℕ) : Finset ℕ :=\n  Finset.Ioc 0 (2 * m)\n\n/-- The factor $\\prod_{k=1}^{2m} (2mn + k)$ -/\nnoncomputable def prodFactorPlus (m n : ℕ) : ℝ :=\n  (productIndices m).prod fun k =>\n    ((2 * m * n : ℝ) + (k : ℝ))\n\n/-- The factor $\\prod_{k=1}^{2m} (2mn - k)$ -/\nnoncomputable def prodFactorMinus (m n : ℕ) : ℝ :=\n  (productIndices m).prod fun k =>\n    ((2 * m * n : ℝ) - (k : ℝ))\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe recurrence given below can be rewritten in the form\n$$(2n+1)(2n+2)P(2,n)a(n+1) - (2n-1)(2n-2)P(2,-n)a(n-1) = Q(2,n^2)a(n),$$\nwhere the polynomial $Q(2,n) = 4(55n^2 - 34n + 3)$ and the polynomial $P(2,n) = 5n^2 - 5n + 1$\nsatisfies the symmetry condition $P(2,n) = P(2,1-n)$ and has real zeros.\nMore generally, for fixed $m = 1,2,3, \\ldots$, we conjecture that the sequence $b(n) := a(mn)$\nsatisfies a recurrence of the form\n$$( \\prod_{k = 1}^{2m} (2mn + k) )P(2m,n)b(n+1) + (-1)^m( \\prod_{k = 1}^{2*m} (2mn - k) )\n  P(2m,-n)b(n-1) = Q(2m,n^2)b(n),$$\nwhere the polynomials $P(2m,n)$ and $Q(2m,n)$ have degree $2m$. Conjecturally, the polynomial\n$P(2m,n) = P(2m,1-n)$ and has real zeros in the interval [0, 1].\nThe $4m$ zeros of the polynomial $Q(2m,n^2)$ seem to belong to the interval $[-1, 1]$ and\n$4m - 2$ of these zeros appear to be approximated by the rational numbers\n$\\pm k/(3m)$, where $1 \\le k \\le 3m - 2$, $k$ not a multiple of $3$.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/epoch-research/LeanOpenProblems-results/blob/f02efd9a8c5fc6a735d2a90c33e24f7278ce0ffc/runs/oeis-lite-200usd-sol-nk5wh4g0vh3546nm/oeis_a103885_conjecture_0/Submission/Spec.lean#L2587\"]\ntheorem conjecture (m : ℕ) (hm : 1 ≤ m) :\n    ∃ (P Q : Polynomial ℝ),\n      -- P and Q have degree 2m\n      P.degree = (2 * m : ℕ) ∧ Q.degree = (2 * m : ℕ) ∧\n      -- The recurrence relation holds for all n >= 1\n      (∀ (n : ℕ) (hn : 1 ≤ n),\n        (prodFactorPlus m n * P.eval (n : ℝ)) * (aSubsequenceReal m (n + 1)) +\n\n        ((-1 : ℝ) ^ m * prodFactorMinus m n * P.eval (-(n : ℝ))) * (aSubsequenceReal m (n - 1)) =\n\n        (Q.eval ((n : ℝ)^2)) * (aSubsequenceReal m n)) ∧\n\n      -- P symmetry: P(x) = P(1-x)\n      (∀ x : ℝ, P.eval x = P.eval (1 - x)) ∧\n\n      -- P has real zeros in [0, 1]: all complex zeros are real and in [0, 1]\n      (∀ z : ℂ, (P.map (algebraMap ℝ ℂ)).eval z = 0 → z.im = 0 ∧ z.re ∈ (Set.Icc 0 1)) ∧\n\n      -- Q zero properties: The zeros of Q(x^2) are real and in [-1, 1].\n      (∀ z : ℂ, (Q.map (algebraMap ℝ ℂ)).eval (z^2) = 0 → z.im = 0 ∧ z.re ∈ (Set.Icc (-1) 1)) := by\n  sorry\n\nend OeisA103885\n",
  "statement_hash": "de668b50112addb454c0f277471b26c3ec0b2c6512df9b68862d9ef396f35a38",
  "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."
}