Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:A binomial coefficient summation · a_3

Source:OEIS conjectures
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

Value of the sequence a at 3.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.06201 [math.NT] · NS.06201v1 for this version
Declaration:OeisA3162.a_3
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:c18fedb6f00f1a167c476e6a4d507997d809647cc4ac9689aa01a46777c9dbdf
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/3162.lean

Formal statement

theorem a_3 : a 3 = 3
Show the full Challenge.lean (103 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# A binomial coefficient summation

A binomial coefficient summation: $a(n) = S(3, n) / S(1, n)$, where for a positive integer $r$
we define
$$S(r,n) = \sum_{k=0}^{\lfloor n/2 \rfloor} \left( \binom{n}{k} - \binom{n}{k-1} \right)^r$$
with $\binom{n}{-1} = 0$.

*References:*
- [A003162](https://oeis.org/A003162)
- H. W. Gould, Problem E2384 (proposal), Amer. Math. Monthly, 81 (1974), 170-171
- [Li26] Wentao Li, [A supercongruence for A003162](https://github.com/VictorLiwentao/lean-oeis-proofs/blob/41f7b2ba762827a74f1651e76a2ad6d77be6a021/proofs/new-formalization/A003162/PROOF.md), 2026.
-/

@[expose] public section

namespace OeisA3162

/-- A binomial coefficient summation: $a(n) = S(3, n) / S(1, n)$. -/
def a (n : ℕ) : ℚ :=
  let numerator : ℚ := ∑ k ∈ Finset.range (n / 2 + 1),
    let diff : ℚ := (n.choose k : ℚ) - (if k = 0 then 0 else (n.choose (k - 1) : ℚ))
    diff ^ 3
  let denominator : ℚ := (n.choose (n / 2) : ℚ)
  numerator / denominator

macro "eval_a" : tactic =>
  `(tactic| (dsimp [a]
             norm_num [Finset.sum_range_succ, Nat.choose_succ_succ, Nat.choose_zero_succ]))

/-- Value of the sequence `a` at 0. -/
@[category test, AMS 11]
theorem a_0 : a 0 = 1 := by eval_a

/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by eval_a

/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by eval_a

/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 3 := by eval_a

/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 6 := by eval_a

/-- Auxiliary sequence $b(n) = a(2n-1)$. -/
def b (n : ℕ) : ℚ :=
  a (2 * n - 1)

/--
$a(n)$ is an integer for all $n \ge 0$.

Gould proposed this as Monthly Problem E2384. The 1974 reference in the module docstring
is that proposal, not a solution to it.

Lean formalization by Wentao Li, with AI assistance; see [Li26].
-/
@[category textbook, AMS 11,
  formal_proof using lean4 at "https://github.com/VictorLiwentao/lean-oeis-proofs/blob/41f7b2ba762827a74f1651e76a2ad6d77be6a021/LeanOeisProofs/NewFormalization/A003162.lean#L72"]
theorem a_is_integer (n : ℕ) : (a n).den = 1 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
"Conjecture: Let $b(n) = a(2n-1)$. Then the supercongruence
$b(np^k) \equiv b(np^{k-1}) \pmod{p^{3k}}$ holds for positive integers $n$ and $k$
and all primes $p \ge 5$."
- Peter Bala, Mar 26 2023.

Lean formalization by Wentao Li, with AI assistance; see [Li26].
-/
@[category research solved, AMS 11,
  formal_proof using lean4 at "https://github.com/VictorLiwentao/lean-oeis-proofs/blob/41f7b2ba762827a74f1651e76a2ad6d77be6a021/LeanOeisProofs/NewFormalization/A003162.lean#L115"]
theorem conjecture (n k p : ℕ) (hn : 0 < n) (hk : 0 < k) (hp : p.Prime) (hp_ge : 5 ≤ p) :
    (b (n * p ^ k)).num ≡ (b (n * p ^ (k - 1))).num [ZMOD (p : ℤ) ^ (3 * k)] := by
  sorry

end OeisA3162

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA3162.a_3 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_3 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk oeis-3162--a-3      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-3162--a-3
nosorry submit oeis-3162--a-3 nosorry/oeis-3162--a-3/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.