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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Maximum number of terms in a 2-dense sublist of divisors of nn

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: a(n) is the product of the ruler function of n and the maximum number of odd terms in a 2-dense sublist of divisors of n."

"Conjecture: a(n) = A001511(n) * A400195(n)."

The ruler function is A001511(n)=ν2(n)+1A001511(n) = \nu_2(n) + 1.

Solved by Claude (Anthropic) prompted by otoinobuo. If dd and 2d2d divide nn, then they lie in the same 2-dense sublist. So each sublist is a union of sets {o,2o,…,2ν2(n)o}\{o, 2o, \dots, 2^{\nu_2(n)} o\} with oo odd.

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

Formal statement

theorem conjecture (n : ℕ) (hn : 0 < n) : a n = (padicValNat 2 n + 1) * b n
Show the full Challenge.lean (90 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Maximum number of terms in a 2-dense sublist of divisors of $n$

Write the divisors of $n$ in increasing order and split this list between consecutive divisors
$d < d'$ with $d' > 2d$. The pieces are the 2-dense sublists of divisors of $n$. The sequence
gives the maximum number of terms in such a sublist.

*References:*
- [A400194](https://oeis.org/A400194)
- [A400195](https://oeis.org/A400195)
- [A384222](https://oeis.org/A384222)
-/

@[expose] public section

namespace OeisA400194

/-- The divisors of $n$ in increasing order. -/
def divisorList (n : ℕ) : List ℕ := (List.range' 1 n).filter (· ∣ n)

/-- The 2-dense sublists of divisors of $n$. -/
def denseSublists (n : ℕ) : List (List ℕ) :=
  (divisorList n).splitBy fun d d' => d' ≤ 2 * d

/-- The maximum number of terms in a 2-dense sublist of divisors of $n$. -/
def a (n : ℕ) : ℕ := ((denseSublists n).map List.length).foldr max 0

/-- The maximum number of odd terms in a 2-dense sublist of divisors of $n$ (A400195). -/
def b (n : ℕ) : ℕ := ((denseSublists n).map (List.countP fun d => d % 2 = 1)).foldr max 0

@[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_4 : a 4 = 3 := by decide

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

@[category test, AMS 11]
theorem a_12 : a 12 = 6 := by decide

@[category test, AMS 11]
theorem a_36 : a 36 = 9 := by decide

@[category test, AMS 11]
theorem b_30 : b 30 = 4 := by decide

set_option linter.style.formal_proof_palomar false in
/--
"Conjecture: a(n) is the product of the ruler function of n and the maximum number of odd terms
in a 2-dense sublist of divisors of n."

"Conjecture: a(n) = A001511(n) * A400195(n)."

The ruler function is $A001511(n) = \nu_2(n) + 1$.

Solved by Claude (Anthropic) prompted by otoinobuo. If $d$ and $2d$ divide $n$, then they lie
in the same 2-dense sublist. So each sublist is a union of sets $\{o, 2o, \dots, 2^{\nu_2(n)} o\}$
with $o$ odd.
-/
@[category research solved, AMS 11,
  formal_proof using lean4 at "https://github.com/otoi-lab/oeis-lean-proofs/blob/14f275b8b370bcf76213de10bb3f8fda84a6461e/OeisProofs/FC/A400194.lean#L26-L27"]
theorem conjecture (n : ℕ) (hn : 0 < n) : a n = (padicValNat 2 n + 1) * b n := by
  sorry

end OeisA400194

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA400194.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-400194
nosorry submit oeis-400194 nosorry/oeis-400194/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.