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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Lengths of the 2-dense sublists 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 1: row n is a palindromic composition of A000005(n)."

A composition of A000005(n)A000005(n) is a list of positive integers with sum A000005(n)A000005(n), the number of divisors of nn.

Solved by Claude (Anthropic) prompted by otoinobuo. The map d↦n/dd \mapsto n/d reverses the list of divisors and preserves the ratio of consecutive divisors.

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

Formal statement

theorem conjecture_1 (n : ℕ) (hn : 0 < n) :
    (∀ k ∈ row n, 0 < k) ∧ (row n).sum = n.divisors.card ∧ (row n).reverse = row n
Show the full Challenge.lean (104 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Lengths of the 2-dense sublists 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$. Row $n$ of the
triangle lists their lengths. Row $n$ of A384225 lists the numbers of odd terms in them.

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

@[expose] public section

namespace OeisA384222

/-- 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

/-- Row $n$ of the triangle: the lengths of the 2-dense sublists of divisors of $n$. -/
def row (n : ℕ) : List ℕ := (denseSublists n).map List.length

/-- Row $n$ of A384225: the numbers of odd terms in the 2-dense sublists of divisors of $n$. -/
def oddRow (n : ℕ) : List ℕ := (denseSublists n).map (List.countP fun d => d % 2 = 1)

@[category test, AMS 11]
theorem row_1 : row 1 = [1] := by decide

@[category test, AMS 11]
theorem row_3 : row 3 = [1, 1] := by decide

@[category test, AMS 11]
theorem row_6 : row 6 = [4] := by decide

@[category test, AMS 11]
theorem row_9 : row 9 = [1, 1, 1] := by decide

@[category test, AMS 11]
theorem row_10 : row 10 = [2, 2] := by decide

@[category test, AMS 11]
theorem row_70 : row 70 = [2, 4, 2] := by decide

@[category test, AMS 11]
theorem oddRow_70 : oddRow 70 = [1, 2, 1] := by decide

set_option linter.style.formal_proof_palomar false in
/--
"Conjecture 1: row n is a palindromic composition of A000005(n)."

A composition of $A000005(n)$ is a list of positive integers with sum $A000005(n)$, the number
of divisors of $n$.

Solved by Claude (Anthropic) prompted by otoinobuo. The map $d \mapsto n/d$ reverses the list
of divisors and preserves the ratio of consecutive divisors.
-/
@[category research solved, AMS 11,
  formal_proof using lean4 at "https://github.com/otoi-lab/oeis-lean-proofs/blob/14f275b8b370bcf76213de10bb3f8fda84a6461e/OeisProofs/FC/A384222.lean#L26-L31"]
theorem conjecture_1 (n : ℕ) (hn : 0 < n) :
    (∀ k ∈ row n, 0 < k) ∧ (row n).sum = n.divisors.card ∧ (row n).reverse = row n := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
"T(n,k) = A384225(n,k) * A001511(n) = A384225(n,k) * A000005(n) / A001227(n). (conjectured)."
- Omar E. Pol, Apr 13 2026

This formalizes the first equality. 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/A384222.lean#L33-L36"]
theorem conjecture_formula (n : ℕ) (hn : 0 < n) :
    row n = (oddRow n).map ((padicValNat 2 n + 1) * ·) := by
  sorry

end OeisA384222

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