{
  "id": "5057",
  "ident": "NS.05057",
  "slug": "oeis-179524--conjecture3",
  "title": "Central binomial sum $a(n) = \\sum_{k=0}^n (-4)^k \\binom{n}{k}^2 \\binom{n-k}{k}^2$ · conjecture3",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "If $p$ is a prime with $p \\equiv 11, 13, 17, 19 \\pmod{20}$,\nthen $\\sum_{k=0}^{p-1} a(k) \\equiv 0 \\pmod{p^2}$.\n- _Zhi-Wei Sun_, Jul 01 2010",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA179524.conjecture3",
  "statement_lean": "theorem conjecture3 (p : ℕ) (hp : p.Prime)\n    (h_mod : (p : ℤ) ≡ 11 [ZMOD 20] ∨ (p : ℤ) ≡ 13 [ZMOD 20] ∨\n      (p : ℤ) ≡ 17 [ZMOD 20] ∨ (p : ℤ) ≡ 19 [ZMOD 20]) :\n    ∑ k ∈ Finset.range p, a k ≡ 0 [ZMOD (p : ℤ) ^ 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# Central binomial sum $a(n) = \\sum_{k=0}^n (-4)^k \\binom{n}{k}^2 \\binom{n-k}{k}^2$\n\nThe sequence is defined by\n$$a(n) = \\sum_{k=0}^n (-4)^k \\binom{n}{k}^2 \\binom{n-k}{k}^2.$$\n\n*References:*\n- [A179524](https://oeis.org/A179524)\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 OeisA179524\n\n/-- The sequence $a(n) = \\sum_{k=0}^n (-4)^k \\binom{n}{k}^2 \\binom{n-k}{k}^2$. -/\ndef a (n : ℕ) : ℤ :=\n  ∑ k ∈ Finset.range (n + 1), (-4 : ℤ) ^ k * (n.choose k : ℤ) ^ 2 * ((n - k).choose k : ℤ) ^ 2\n\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = -15 := by decide\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = -143 := by decide\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 1 := by decide\n\n/--\nIf $p$ is a prime with $p \\equiv 1, 9 \\pmod{20}$ and $p = x^2 + 5y^2$ with $x, y$ integers,\nthen $\\sum_{k=0}^{p-1} a(k) \\equiv 4x^2 - 2p \\pmod{p^2}$.\n- _Zhi-Wei Sun_, Jul 01 2010\n-/\n@[category research open, AMS 11]\ntheorem conjecture1 (p : ℕ) (hp : p.Prime)\n    (h_mod : (p : ℤ) ≡ 1 [ZMOD 20] ∨ (p : ℤ) ≡ 9 [ZMOD 20])\n    (x y : ℤ) (h_sq : (p : ℤ) = x ^ 2 + 5 * y ^ 2) :\n    ∑ k ∈ Finset.range p, a k ≡ 4 * x ^ 2 - 2 * (p : ℤ) [ZMOD (p : ℤ) ^ 2] := by\n  sorry\n\n/--\nIf $p$ is a prime with $p \\equiv 3, 7 \\pmod{20}$ and $2p = x^2 + 5y^2$ with $x, y$ integers,\nthen $\\sum_{k=0}^{p-1} a(k) \\equiv 2x^2 - 2p \\pmod{p^2}$.\n- _Zhi-Wei Sun_, Jul 01 2010\n-/\n@[category research open, AMS 11]\ntheorem conjecture2 (p : ℕ) (hp : p.Prime)\n    (h_mod : (p : ℤ) ≡ 3 [ZMOD 20] ∨ (p : ℤ) ≡ 7 [ZMOD 20])\n    (x y : ℤ) (h_sq : 2 * (p : ℤ) = x ^ 2 + 5 * y ^ 2) :\n    ∑ k ∈ Finset.range p, a k ≡ 2 * x ^ 2 - 2 * (p : ℤ) [ZMOD (p : ℤ) ^ 2] := by\n  sorry\n\n/--\nIf $p$ is a prime with $p \\equiv 11, 13, 17, 19 \\pmod{20}$,\nthen $\\sum_{k=0}^{p-1} a(k) \\equiv 0 \\pmod{p^2}$.\n- _Zhi-Wei Sun_, Jul 01 2010\n-/\n@[category research open, AMS 11]\ntheorem conjecture3 (p : ℕ) (hp : p.Prime)\n    (h_mod : (p : ℤ) ≡ 11 [ZMOD 20] ∨ (p : ℤ) ≡ 13 [ZMOD 20] ∨\n      (p : ℤ) ≡ 17 [ZMOD 20] ∨ (p : ℤ) ≡ 19 [ZMOD 20]) :\n    ∑ k ∈ Finset.range p, a k ≡ 0 [ZMOD (p : ℤ) ^ 2] := by\n  sorry\n\n/--\n$\\sum_{k=0}^{n-1}(20k+17)a(k) \\equiv 0 \\pmod n$ for all $n=1,2,3,\\dots$.\n- _Zhi-Wei Sun_, Jul 01 2010\n-/\n@[category research open, AMS 11]\ntheorem conjecture4 (n : ℕ) (hn : 1 ≤ n) :\n    (n : ℤ) ∣ ∑ k ∈ Finset.range n, ((20 * (k : ℤ) + 17) * a k) := by\n  sorry\n\n/--\n$\\sum_{k=0}^{p-1}(20k+17)a(k) \\equiv p(10(-1/p)+7) \\pmod{p^2}$ for any odd prime $p$.\n- _Zhi-Wei Sun_, Jul 01 2010\n-/\n@[category research open, AMS 11]\ntheorem conjecture5 (p : ℕ) [hp : Fact p.Prime] (_hp2 : p ≠ 2) :\n    (∑ k ∈ Finset.range p, ((20 * (k : ℤ) + 17) * a k)) ≡\n      (p : ℤ) * (10 * legendreSym p (-1) + 7) [ZMOD (p : ℤ) ^ 2] := by\n  sorry\n\nend OeisA179524\n",
  "statement_hash": "f84521fc3f4cdc997736aa8ef7c5984f07cd0040067c03a52b3c2571cb24a121",
  "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."
}