{
  "id": "6512",
  "ident": "NS.06512",
  "slug": "oeis-400194",
  "title": "Maximum number of terms in a 2-dense sublist of divisors of $n$",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "\"Conjecture: a(n) is the product of the ruler function of n and the maximum number of odd terms\nin a 2-dense sublist of divisors of n.\"\n\n\"Conjecture: a(n) = A001511(n) * A400195(n).\"\n\nThe 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.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA400194.conjecture",
  "statement_lean": "theorem conjecture (n : ℕ) (hn : 0 < n) : a n = (padicValNat 2 n + 1) * b 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# Maximum number of terms in a 2-dense sublist 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$. The sequence\ngives the maximum number of terms in such a sublist.\n\n*References:*\n- [A400194](https://oeis.org/A400194)\n- [A400195](https://oeis.org/A400195)\n- [A384222](https://oeis.org/A384222)\n-/\n\n@[expose] public section\n\nnamespace OeisA400194\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/-- The maximum number of terms in a 2-dense sublist of divisors of $n$. -/\ndef a (n : ℕ) : ℕ := ((denseSublists n).map List.length).foldr max 0\n\n/-- The maximum number of odd terms in a 2-dense sublist of divisors of $n$ (A400195). -/\ndef b (n : ℕ) : ℕ := ((denseSublists n).map (List.countP fun d => d % 2 = 1)).foldr max 0\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := by decide\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 2 := by decide\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 3 := by decide\n\n@[category test, AMS 11]\ntheorem a_6 : a 6 = 4 := by decide\n\n@[category test, AMS 11]\ntheorem a_12 : a 12 = 6 := by decide\n\n@[category test, AMS 11]\ntheorem a_36 : a 36 = 9 := by decide\n\n@[category test, AMS 11]\ntheorem b_30 : b 30 = 4 := by decide\n\nset_option linter.style.formal_proof_palomar false in\n/--\n\"Conjecture: a(n) is the product of the ruler function of n and the maximum number of odd terms\nin a 2-dense sublist of divisors of n.\"\n\n\"Conjecture: a(n) = A001511(n) * A400195(n).\"\n\nThe 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/A400194.lean#L26-L27\"]\ntheorem conjecture (n : ℕ) (hn : 0 < n) : a n = (padicValNat 2 n + 1) * b n := by\n  sorry\n\nend OeisA400194\n",
  "statement_hash": "7fbcb26bf6e54312c5586203f03a3b37a9fe4e0206f6c91dc5813130d07fb3cd",
  "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."
}