{
  "id": "5067",
  "ident": "NS.05067",
  "slug": "oeis-179537--conjecture3",
  "title": "Central binomial sum $a(n) = \\sum_{k=0}^n \\binom{n}{k}^2 \\binom{n-k}{k}^2 (-16)^k$ · conjecture3",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "$\\sum_{k=0}^{n-1} (42k + 37) (-1)^k a(k) \\equiv 0 \\pmod n$ for all $n \\ge 1$.\n- _Zhi-Wei Sun_, Jul 17 2010",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA179537.conjecture3",
  "statement_lean": "theorem conjecture3 (n : ℕ) (hn : 1 ≤ n) :\n    (n : ℤ) ∣ ∑ k ∈ Finset.range n, ((42 * (k : ℤ) + 37) * (-1 : ℤ) ^ k * a k)",
  "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# Central binomial sum $a(n) = \\sum_{k=0}^n \\binom{n}{k}^2 \\binom{n-k}{k}^2 (-16)^k$\n\nThe sequence is defined by\n$$a(n) = \\sum_{k=0}^n \\binom{n}{k}^2 \\binom{n-k}{k}^2 (-16)^k.$$\n\n*References:*\n- [A179537](https://oeis.org/A179537)\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\n@[expose] public section\n\nnamespace OeisA179537\n\n/-- The sequence $a(n) = \\sum_{k=0}^n \\binom{n}{k}^2 \\binom{n-k}{k}^2 (-16)^k$. -/\ndef a (n : ℕ) : ℤ :=\n  ∑ k ∈ Finset.range (n + 1), (n.choose k : ℤ) ^ 2 * ((n - k).choose k : ℤ) ^ 2 * (-16 : ℤ) ^ k\n\n/-- Value of the sequence `a` at 0. -/\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 1 := by decide\n\n/-- Value of the sequence `a` at 1. -/\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := by decide\n\n/-- Value of the sequence `a` at 2. -/\n@[category test, AMS 11]\ntheorem a_2 : a 2 = -63 := by decide\n\n/-- Value of the sequence `a` at 3. -/\n@[category test, AMS 11]\ntheorem a_3 : a 3 = -575 := by decide\n\n/-- Value of the sequence `a` at 4. -/\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 6913 := by decide\n\n/--\nIf $p$ is a prime with $(p/7) = 1$ and $p = x^2 + 7y^2$ with $x, y$ integers, then\n$\\sum_{k=0}^{p-1} (-1)^k a(k) \\equiv 4x^2 - 2p \\pmod{p^2}$.\n- _Zhi-Wei Sun_, Jul 17 2010\n-/\n@[category research open, AMS 11]\ntheorem conjecture1 (p : ℕ) [Fact p.Prime] (hp7 : p ≠ 7)\n    (h_leg : letI : Fact (Nat.Prime 7) := ⟨by decide⟩; legendreSym 7 p = 1)\n    (x y : ℤ) (h_sq : (p : ℤ) = x ^ 2 + 7 * y ^ 2) :\n    (∑ k ∈ Finset.range p, (-1 : ℤ) ^ k * a k) ≡\n      4 * x ^ 2 - 2 * (p : ℤ) [ZMOD (p : ℤ) ^ 2] := by\n  sorry\n\n/--\nIf $p$ is a prime with $(p/7) = -1$, then\n$\\sum_{k=0}^{p-1} (-1)^k a(k) \\equiv 0 \\pmod{p^2}$.\n- _Zhi-Wei Sun_, Jul 17 2010\n-/\n@[category research open, AMS 11]\ntheorem conjecture2 (p : ℕ) [Fact p.Prime] (hp7 : p ≠ 7)\n    (h_leg : letI : Fact (Nat.Prime 7) := ⟨by decide⟩; legendreSym 7 p = -1) :\n    (∑ k ∈ Finset.range p, (-1 : ℤ) ^ k * a k) ≡ 0 [ZMOD (p : ℤ) ^ 2] := by\n  sorry\n\n/--\n$\\sum_{k=0}^{n-1} (42k + 37) (-1)^k a(k) \\equiv 0 \\pmod n$ for all $n \\ge 1$.\n- _Zhi-Wei Sun_, Jul 17 2010\n-/\n@[category research open, AMS 11]\ntheorem conjecture3 (n : ℕ) (hn : 1 ≤ n) :\n    (n : ℤ) ∣ ∑ k ∈ Finset.range n, ((42 * (k : ℤ) + 37) * (-1 : ℤ) ^ k * a k) := by\n  sorry\n\n/--\n$\\sum_{k=0}^{p-1} (42k + 37) (-1)^k a(k) \\equiv p(21(p/7) + 16) \\pmod{p^2}$ for any prime $p \\ne 7$.\n- _Zhi-Wei Sun_, Jul 17 2010\n-/\n@[category research open, AMS 11]\ntheorem conjecture4 (p : ℕ) [Fact p.Prime] (_hp7 : p ≠ 7) :\n    letI : Fact (Nat.Prime 7) := ⟨by decide⟩\n    (∑ k ∈ Finset.range p, ((42 * (k : ℤ) + 37) * (-1 : ℤ) ^ k * a k)) ≡\n      (p : ℤ) * (21 * legendreSym 7 p + 16) [ZMOD (p : ℤ) ^ 2] := by\n  sorry\n\n\nend OeisA179537\n",
  "statement_hash": "1af2244b48d774cc9f82ee203e8f53ca5325a792af8803fa69fb2d83cbdd5628",
  "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."
}