{
  "id": "6465",
  "ident": "NS.06465",
  "slug": "oeis-384222",
  "title": "Lengths of the 2-dense sublists of divisors of $n$",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "\"Conjecture 1: row n is a palindromic composition of A000005(n).\"\n\nA composition of $A000005(n)$ is a list of positive integers with sum $A000005(n)$, the number\nof divisors of $n$.\n\nSolved by Claude (Anthropic) prompted by otoinobuo. The map $d \\mapsto n/d$ reverses the list\nof divisors and preserves the ratio of consecutive divisors.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA384222.conjecture_1",
  "statement_lean": "theorem conjecture_1 (n : ℕ) (hn : 0 < n) :\n    (∀ k ∈ row n, 0 < k) ∧ (row n).sum = n.divisors.card ∧ (row n).reverse = row n",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Lengths of the 2-dense sublists of divisors of $n$\n\nWrite the divisors of $n$ in increasing order and split this list between consecutive divisors\n$d < d'$ with $d' > 2d$. The pieces are the 2-dense sublists of divisors of $n$. Row $n$ of the\ntriangle lists their lengths. Row $n$ of A384225 lists the numbers of odd terms in them.\n\n*References:*\n- [A384222](https://oeis.org/A384222)\n- [A384225](https://oeis.org/A384225)\n-/\n\n@[expose] public section\n\nnamespace OeisA384222\n\n/-- The divisors of $n$ in increasing order. -/\ndef divisorList (n : ℕ) : List ℕ := (List.range' 1 n).filter (· ∣ n)\n\n/-- The 2-dense sublists of divisors of $n$. -/\ndef denseSublists (n : ℕ) : List (List ℕ) :=\n  (divisorList n).splitBy fun d d' => d' ≤ 2 * d\n\n/-- Row $n$ of the triangle: the lengths of the 2-dense sublists of divisors of $n$. -/\ndef row (n : ℕ) : List ℕ := (denseSublists n).map List.length\n\n/-- Row $n$ of A384225: the numbers of odd terms in the 2-dense sublists of divisors of $n$. -/\ndef oddRow (n : ℕ) : List ℕ := (denseSublists n).map (List.countP fun d => d % 2 = 1)\n\n@[category test, AMS 11]\ntheorem row_1 : row 1 = [1] := by decide\n\n@[category test, AMS 11]\ntheorem row_3 : row 3 = [1, 1] := by decide\n\n@[category test, AMS 11]\ntheorem row_6 : row 6 = [4] := by decide\n\n@[category test, AMS 11]\ntheorem row_9 : row 9 = [1, 1, 1] := by decide\n\n@[category test, AMS 11]\ntheorem row_10 : row 10 = [2, 2] := by decide\n\n@[category test, AMS 11]\ntheorem row_70 : row 70 = [2, 4, 2] := by decide\n\n@[category test, AMS 11]\ntheorem oddRow_70 : oddRow 70 = [1, 2, 1] := by decide\n\nset_option linter.style.formal_proof_palomar false in\n/--\n\"Conjecture 1: row n is a palindromic composition of A000005(n).\"\n\nA composition of $A000005(n)$ is a list of positive integers with sum $A000005(n)$, the number\nof divisors of $n$.\n\nSolved by Claude (Anthropic) prompted by otoinobuo. The map $d \\mapsto n/d$ reverses the list\nof divisors and preserves the ratio of consecutive divisors.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/otoi-lab/oeis-lean-proofs/blob/14f275b8b370bcf76213de10bb3f8fda84a6461e/OeisProofs/FC/A384222.lean#L26-L31\"]\ntheorem conjecture_1 (n : ℕ) (hn : 0 < n) :\n    (∀ k ∈ row n, 0 < k) ∧ (row n).sum = n.divisors.card ∧ (row n).reverse = row n := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\n\"T(n,k) = A384225(n,k) * A001511(n) = A384225(n,k) * A000005(n) / A001227(n). (conjectured).\"\n- Omar E. Pol, Apr 13 2026\n\nThis formalizes the first equality. The ruler function is $A001511(n) = \\nu_2(n) + 1$.\n\nSolved by Claude (Anthropic) prompted by otoinobuo. If $d$ and $2d$ divide $n$, then they lie\nin the same 2-dense sublist. So each sublist is a union of sets $\\{o, 2o, \\dots, 2^{\\nu_2(n)} o\\}$\nwith $o$ odd.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/otoi-lab/oeis-lean-proofs/blob/14f275b8b370bcf76213de10bb3f8fda84a6461e/OeisProofs/FC/A384222.lean#L33-L36\"]\ntheorem conjecture_formula (n : ℕ) (hn : 0 < n) :\n    row n = (oddRow n).map ((padicValNat 2 n + 1) * ·) := by\n  sorry\n\nend OeisA384222\n",
  "statement_hash": "182c8e480bd7b5a53b3eafd05a487b0b041cf1f5b071f4ea70374e44e0ebea19",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}