{
  "id": "6288",
  "ident": "NS.06288",
  "slug": "oeis-357513",
  "title": "Numerator of a sum involving binomial coefficients",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "We have  $a(p-1) \\equiv 0 \\pmod{p^4}$ for all primes $p \\ge 3$ except $p=7$.\n\nproved by AlphaProof",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA357513.a357513_supercongruence",
  "statement_lean": "theorem a357513_supercongruence (p : ℕ) (hp : p.Prime) (h_ge3 : p ≥ 3) (h_neq7 : p ≠ 7) :\n    (a (p - 1) : ℤ) ≡ 0 [ZMOD (p : ℤ) ^ 4]",
  "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# Numerator of a sum involving binomial coefficients\n\n$a(n)$ is the numerator of\n$\\sum_{k = 1}^n \\frac{1}{k^3} \\binom{n}{k}^2 \\binom{n+k}{k}^2$ for $n \\ge 1$\nwith $a(0) = 0$.\n\n*References:*\n- [A357513](https://oeis.org/A357513)\n-/\n\n@[expose] public section\nnamespace OeisA357513\n\nopen Nat\n\n/--\nA357513: $a(n) = \\text{numerator of }\n\\sum_{k = 1..n} \\frac{1}{k^3} \\binom{n}{k}^2 \\binom{n+k}{k}^2\n\\text{ for } n \\ge 1 \\text{ with } a(0) = 0$.\n-/\ndef a (n : ℕ) : ℕ :=\n ∑ k ∈ (Finset.Icc 1 n), ((n.choose k : ℚ) ^ 2 * ((n + k).choose k : ℚ) ^ 2) / k ^ 3 |>.num.natAbs\n\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 0 := rfl\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 4 := by\n  unfold a\n  norm_num only [Nat.choose, Finset.sum_Icc_succ_top, Finset.Icc_self, Finset.sum_singleton]\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 81 := by\n  unfold a\n  norm_num only [Nat.choose, Finset.sum_Icc_succ_top, Finset.Icc_self, Finset.sum_singleton]\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 14651 := by\n  unfold a\n  norm_num only [Nat.choose, Finset.sum_Icc_succ_top, Finset.Icc_self, Finset.sum_singleton]\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 956875 := by\n  unfold a\n  norm_num only [Nat.choose, Finset.sum_Icc_succ_top, Finset.Icc_self, Finset.sum_singleton]\n\n@[category test, AMS 11]\ntheorem a_5 : a 5 = 1335793103 := by\n  unfold a\n  norm_num only [Nat.choose, Finset.sum_Icc_succ_top, Finset.Icc_self, Finset.sum_singleton]\n\nset_option linter.style.formal_proof_palomar false in\n/--\nWe have  $a(p-1) \\equiv 0 \\pmod{p^4}$ for all primes $p \\ge 3$ except $p=7$.\n\nproved by AlphaProof\n-/\n@[category research solved, AMS 11,\n  formal_proof using formal_conjectures at\n    \"https://github.com/google-deepmind/formal-conjectures/blob/9c7f21e7d4445637538bc1817b058b9b3f31bd2b/FormalConjectures/OEIS/357513.lean#L232\"]\ntheorem a357513_supercongruence (p : ℕ) (hp : p.Prime) (h_ge3 : p ≥ 3) (h_neq7 : p ≠ 7) :\n    (a (p - 1) : ℤ) ≡ 0 [ZMOD (p : ℤ) ^ 4] := by\n  sorry\n\n/--\nLet m be a nonnegative integer and set $u(n)$ = the numerator of\n$$\\sum{k=1}^{n} \\frac{1}{k^{2m+1}} \\binom{n}{k}^2 \\binom{n+k}{k}^2$$\n(seems like a typo in the OEIS entry: the sum starts with $k=0$ there. In order\nto avoid a division by zero, we replace start the sum at $k=1$.)\n-/\nnoncomputable def u (m : ℕ) (n : ℕ) : ℕ :=\n  ∑ k ∈ (Finset.Icc 1 n),\n    ((n.choose k : ℚ) ^ 2 * ((n + k).choose k : ℚ) ^ 2) / k ^ (2 * m + 1) |>.num.natAbs\n\n/--\nWe conjecture that $u(p-1) == 0 (mod p^4)$ for all primes $p$,\nwith a finite number of exceptions that depend on $m$.\n-/\n@[category research open, AMS 11]\ntheorem general_supercongruence (m : ℕ) : ∃ (exceptions : Finset ℕ), ∀ p, p.Prime →\n    p ∉ exceptions → u m (p - 1) = (0 : ZMod (p ^ 4)) := by\n  sorry\n\n@[category test, AMS 11]\ntheorem general_supercongruence_one_of_a357513_supercongruence :\n  type_of% a357513_supercongruence → type_of% (general_supercongruence 1) := by\n  intro h\n  use {2, 7}\n  intro p hp h_exception\n  convert h p hp ?_ ?_\n  · unfold a u\n    zify [ZMod.intCast_zmod_eq_zero_iff_dvd, Int.modEq_zero_iff_dvd, ZMod.natCast_eq_zero_iff]\n  · apply hp.two_le.lt_of_ne (by bound)\n  · simp_all\n\nend OeisA357513\n",
  "statement_hash": "45746ab005de648f4da15a92db295902b317dc51c1b2e935989e5a962ab4f7cb",
  "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."
}