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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Fibonacci-Collatz sequence

Source:OEIS conjectures
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Conjecture: for every k>0k > 0 there is an index mm such that all the a(n)a(n) with n>mn > m have the same residue  mod 3k\bmod 3^k.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.04561 [math.NT] · NS.04561v1 for this version
Declaration:OeisA105801.conjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:60e0440c5aa586403d88d4bf001aa8992bacb84391a913c14968b5d1f90e530c
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/105801.lean

Formal statement

theorem conjecture :
    ∀ k : ℕ, 0 < k → ∃ m : ℕ, ∀ n : ℕ, m < n → a n ≡ a (m + 1) [MOD (3^k)]
Show the full Challenge.lean (75 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Fibonacci-Collatz sequence

Fibonacci-Collatz sequence: $a(1)=1, a(2)=2$; for $n > 2$, let $\mathrm{fib} = a(n-1) + a(n-2)$;
if $\mathrm{fib}$ is odd then $a(n) = 3 \cdot \mathrm{fib} + 1$ else $a(n) = \mathrm{fib}/2$.

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

@[expose] public section

namespace OeisA105801

/-- The primary defining sequence `a`.
$a(n)$ is the Fibonacci-Collatz sequence: $a(1)=1, a(2)=2$; for $n > 2$,
let $\mathrm{fib} = a(n-1) + a(n-2)$;
if $\mathrm{fib}$ is odd then $a(n) = 3 \cdot \mathrm{fib} + 1$ else $a(n) = \mathrm{fib}/2$. -/
def a : ℕ → ℕ
  | 0 => 0 -- The sequence is 1-indexed, a(0) is a conventional filler.
  | 1 => 1
  | 2 => 2
  | n + 3 =>
    let fib := a (n + 2) + a (n + 1)
    if fib % 2 = 1 then 3 * fib + 1 else fib / 2

/-- Term theorems verifying the first few values of the sequence against the official OEIS b-file -/
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by decide

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

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

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

@[category test, AMS 11]
theorem a_5 : a 5 = 8 := by decide

set_option linter.style.formal_proof_palomar false in
/--
Conjecture: for every $k > 0$ there is an index $m$ such that all the $a(n)$ with $n > m$
have the same residue $\bmod 3^k$.
-/
@[category research solved, AMS 11,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/oeis-a105801-lean/blob/68642a80db062bee7061437b60d31c3e7d626595/lean/OeisA105801FC.lean#L323-L351"]
theorem conjecture :
    ∀ k : ℕ, 0 < k → ∃ m : ℕ, ∀ n : ℕ, m < n → a n ≡ a (m + 1) [MOD (3^k)] := by
  sorry

end OeisA105801

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

nosorry fetch oeis-105801
nosorry submit oeis-105801 nosorry/oeis-105801/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.