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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Balanced walks on a 4-dimensional cubic lattice with neighbor steps

Source:OEIS conjectures
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

"It appears that for primes p≥5p \ge 5, a(p)≡1(modp5)a(p) \equiv 1 \pmod{p^5}."

  • Peter Bala, Dec 12 2021
Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.05283 [math.NT] · NS.05283v1 for this version
Declaration:OeisA212334.conjecture_1
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:97e90571c17a1a4ea1f9e7f1c4277ff19bae9ed504615a9b2c395f4fdbb3700f
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/212334.lean

Formal statement

theorem conjecture_1 (p : ℕ) (hp : p.Prime) (hp5 : 5 ≤ p) :
    a p % (p ^ 5) = 1
Show the full Challenge.lean (81 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Balanced walks on a 4-dimensional cubic lattice with neighbor steps

The sequence $a(n)$ counts the words over a $4$-ary alphabet (either empty or starting with the
first letter) in which each letter occurs $n$ times and adjacent letters are equal or adjacent in
the alphabet. Equivalently,
$$a(n) = \sum_{k=0}^{n-1} \binom{n}{k} \binom{n-1}{k} \binom{n+k-1}{k}^2$$
for $n \ge 1$ and $a(0) = 1$.

*References:*
- [A212334](https://oeis.org/A212334)
-/

@[expose] public section

namespace OeisA212334

/-- Number of words over a $4$-ary alphabet where each letter occurs $n$ times and adjacent
letters are equal or neighbors, given by
$a(n) = \sum_{k=0}^{n-1} \binom{n}{k} \binom{n-1}{k} \binom{n+k-1}{k}^2$ for $n \ge 1$ and
$a(0) = 1$. -/
def a (n : ℕ) : ℕ :=
  if n = 0 then 1
  else
    ∑ k ∈ Finset.range n, n.choose k * (n - 1).choose k * (n + k - 1).choose k ^ 2

@[category test, AMS 11]
theorem a_0 : a 0 = 1 := by decide

@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by decide

@[category test, AMS 11]
theorem a_2 : a 2 = 9 := by decide

@[category test, AMS 11]
theorem a_3 : a 3 = 163 := by decide

@[category test, AMS 11]
theorem a_4 : a 4 = 3593 := by decide

/--
"It appears that for primes $p \ge 5$, $a(p) \equiv 1 \pmod{p^5}$."
- _Peter Bala_, Dec 12 2021
-/
@[category research open, AMS 11]
theorem conjecture_1 (p : ℕ) (hp : p.Prime) (hp5 : 5 ≤ p) :
    a p % (p ^ 5) = 1 := by
  sorry

/--
"Conjecture: for $r \ge 2$, and all primes $p \ge 5$,
$a(p^r) \equiv a(p^{r-1}) \pmod{p^{3r+3}}$."
- _Peter Bala_, Oct 13 2022
-/
@[category research open, AMS 11]
theorem conjecture_2 (p r : ℕ) (hp : p.Prime) (hp5 : 5 ≤ p) (hr2 : 2 ≤ r) :
    a (p ^ r) % (p ^ (3 * r + 3)) = a (p ^ (r - 1)) % (p ^ (3 * r + 3)) := by
  sorry

end OeisA212334

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

nosorry fetch oeis-212334
nosorry submit oeis-212334 nosorry/oeis-212334/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.