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 · a_2

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

No informal statement.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.04557 [math.NT] · NS.04557v1 for this version
Declaration:OeisA105801.a_2
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
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 a_2 : a 2 = 2
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.a_2 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_2 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk oeis-105801--a-2      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-105801--a-2
nosorry submit oeis-105801--a-2 nosorry/oeis-105801--a-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.