{
  "id": "4554",
  "ident": "NS.04554",
  "slug": "oeis-105751",
  "title": "Imaginary part of $\\prod_{k=0}^n (1 + k \\cdot i)$, $i = \\sqrt{-1}$",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Moll's conjecture 5.5 extends to this sequence and takes the form:\n(i) the $2$-adic valuation $\\nu_2(a(n)) \\sim n/4$ as n -> oo.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA105751.conjecture",
  "statement_lean": "theorem conjecture :\n    Tendsto (fun n ↦ (4 : ℚ) * (padicValInt 2 (a n) : ℚ) / (n : ℚ)) atTop (nhds 1)",
  "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# Imaginary part of $\\prod_{k=0}^n (1 + k \\cdot i)$, $i = \\sqrt{-1}$\n\n*References:*\n- [A105751](https://oeis.org/A105751)\n-/\n\n@[expose] public section\n\nopen Complex Filter Topology Nat\n\nnamespace OeisA105751\n\n/--\nThe primary defining sequence `a`.\na n is the imaginary part of $\\prod_{k=0}^n (1 + k \\cdot i)$, where $i = \\sqrt{-1}$.\n-/\nnoncomputable def a (n : ℕ) : ℤ :=\n  let productTerm (k : ℕ) : ℂ := 1 + (k : ℂ) * I\n  Int.floor (((Finset.range (n + 1)).prod productTerm).im)\n\n/-- Term theorems verifying the first few values of the sequence against the official OEIS b-file -/\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 0 := by\n  delta a; norm_num [Finset.prod]\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := by\n  delta a; norm_num [Finset.prod]\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 3 := by\n  delta a; norm_num [Finset.prod]\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 0 := by\n  delta a; norm_num [Finset.prod]\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = -40 := by\n  delta a; norm_num [Finset.prod]\n\n/--\nNumerical calculation suggests that a similar division holds in this case.\nType 1: primes p that do not divide any element of the sequence {$a(n)$}.\nIn this case, unlike in A105750, the set of type 1 primes is empty;\nthat is, every prime p divides some term of this sequence.\n\nNote: The triangular number n*(n+1)/2 divides $a(n)$ (see A164652).\nIn particular, if $p$ is an odd prime then $p$ divides $a(p)$. For $p=2$, $2$ divides $a(4)=-40$.\n-/\n@[category textbook, AMS 11]\ntheorem prime_divides_some_term (p : ℕ) (hp : p.Prime) :\n    ∃ n : ℕ, a n ≠ 0 ∧ (p : ℤ) ∣ a n := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nMoll's conjecture 5.5 extends to this sequence and takes the form:\n(i) the $2$-adic valuation $\\nu_2(a(n)) \\sim n/4$ as n -> oo.\n-/\n@[category research solved, AMS 11,\n  formal_proof using formal_conjectures at\n    \"https://github.com/KitaKen1/oeis-a105751-two-adic/blob/a9692d90078c4dff1478acaaa70be2fba06a3ef9/lean/OeisA105751TwoAdicFC.lean#L980-L985\"]\ntheorem conjecture :\n    Tendsto (fun n ↦ (4 : ℚ) * (padicValInt 2 (a n) : ℚ) / (n : ℚ)) atTop (nhds 1) := by\n  sorry\n\n/--\nMoll's conjecture 5.5 extends to this sequence and takes the form:\n(ii) for the other primes of type $2$, the p-adic valuation\n$\\nu_p(a(n)) \\sim n/(p - 1)$ as $n \\rightarrow \\infty$.\n\n(Type 2 primes consists of primes p == 1 (mod 4))\n-/\n@[category research open, AMS 11]\ntheorem conjecture.variants.moll_p_mod_4_eq_1 {p : ℕ} (hp : p.Prime) (h_mod : p % 4 = 1) :\n    Tendsto (fun n ↦ ((p - 1 : ℚ) * (padicValInt p (a n) : ℚ)) / (n : ℚ)) atTop (nhds 1) := by\n  sorry\n\nend OeisA105751\n",
  "statement_hash": "4a6b0767ee8f18f4614659232e18ec035b56169b0c47cc78d3519a3de2f3c735",
  "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."
}