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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Linear recurrence a(n)=5a(n−1)−8a(n−2)a(n) = 5a(n-1) - 8a(n-2) with a(0)=0,a(1)=1a(0)=0, a(1)=1 · conjecture_2

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

Conjecture: Let S(p):=∑k=0p−1a(4k)(2kk)3/(−4096)kS(p) := \sum_{k=0}^{p-1} a(4k) \binom{2k}{k}^3 / (-4096)^k. Then S(p)≡0(modp3)S(p) \equiv 0 \pmod{p^3} for any odd prime p≡1,2,4(mod7)p \equiv 1, 2, 4 \pmod 7.

  • Zhi-Wei Sun, Mar 13 2013
Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.05166 [math.NT] · NS.05166v1 for this version
Declaration:OeisA190969.conjecture_2
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:5f0d8b626ec6b79ea14345c26807af296429a4efcd4196cc83a4850f4faff6e4
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/190969.lean

Formal statement

theorem conjecture_2 (p : ℕ) (hp : p.Prime) (hp2 : p ≠ 2)
    (h7 : p % 7 ∈ ({1, 2, 4} : Finset ℕ)) :
    sMod p 3 = 0
Show the full Challenge.lean (90 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Linear recurrence $a(n) = 5a(n-1) - 8a(n-2)$ with $a(0)=0, a(1)=1$

The sequence $a(n)$ satisfies the linear recurrence relation $a(n) = 5a(n-1) - 8a(n-2)$
with initial values $a(0) = 0$ and $a(1) = 1$.

*References:*
- [A190969](https://oeis.org/A190969)
- [Conjectures involving primes and quadratic forms](https://arxiv.org/abs/1211.1588)
  by *Zhi-Wei Sun*, arXiv:1211.1588 (2012)
-/

@[expose] public section

namespace OeisA190969

/--
The sequence defined by $a(0) = 0$, $a(1) = 1$, and $a(n+2) = 5a(n+1) - 8a(n)$.
-/
def a : ℕ → ℤ
  | 0 => 0
  | 1 => 1
  | n + 2 => 5 * a (n + 1) - 8 * a n

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

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

@[category test, AMS 11]
theorem a_2 : a 2 = 5 := by rfl

@[category test, AMS 11]
theorem a_3 : a 3 = 17 := by rfl

@[category test, AMS 11]
theorem a_4 : a 4 = 45 := by rfl

/--
The modular sum $S(p) = \sum_{k=0}^{p-1} \frac{a(4k) \binom{2k}{k}^3}{(-4096)^k}$ evaluated in
$\mathbb{Z}/p^m\mathbb{Z}$.
-/
def sMod (p m : ℕ) : ZMod (p ^ m) :=
  ∑ k ∈ Finset.range p,
    (a (4 * k) : ZMod (p ^ m)) * ((2 * k).choose k : ZMod (p ^ m)) ^ 3 *
      ((-4096 : ZMod (p ^ m)) ^ k)⁻¹

/--
Conjecture: Let $S(p) := \sum_{k=0}^{p-1} a(4k) \binom{2k}{k}^3 / (-4096)^k$.
Then $S(p) \equiv 0 \pmod{p^2}$ for every odd prime $p$.
- _Zhi-Wei Sun_, Mar 13 2013
-/
@[category research open, AMS 11]
theorem conjecture_1 (p : ℕ) (hp : p.Prime) (hp2 : p ≠ 2) :
    sMod p 2 = 0 := by
  sorry

/--
Conjecture: Let $S(p) := \sum_{k=0}^{p-1} a(4k) \binom{2k}{k}^3 / (-4096)^k$.
Then $S(p) \equiv 0 \pmod{p^3}$ for any odd prime $p \equiv 1, 2, 4 \pmod 7$.
- _Zhi-Wei Sun_, Mar 13 2013
-/
@[category research open, AMS 11]
theorem conjecture_2 (p : ℕ) (hp : p.Prime) (hp2 : p ≠ 2)
    (h7 : p % 7 ∈ ({1, 2, 4} : Finset ℕ)) :
    sMod p 3 = 0 := by
  sorry

end OeisA190969

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

nosorry fetch oeis-190969--conjecture-2
nosorry submit oeis-190969--conjecture-2 nosorry/oeis-190969--conjecture-2/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.