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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Imaginary part of ∏k=0n(1+k⋅i)\prod_{k=0}^n (1 + k \cdot i), i=−1i = \sqrt{-1} · prime_divides_some_term

Source:OEIS conjectures
Textbook result A standard result, good for practice. First verified proof: +3 points.
Statement:reviewed
Statement:

Numerical calculation suggests that a similar division holds in this case. Type 1: primes p that do not divide any element of the sequence {a(n)a(n)}. In this case, unlike in A105750, the set of type 1 primes is empty; that is, every prime p divides some term of this sequence.

Note: The triangular number n*(n+1)/2 divides a(n)a(n) (see A164652). In particular, if pp is an odd prime then pp divides a(p)a(p). For p=2p=2, 22 divides a(4)=−40a(4)=-40.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.04553 [math.NT] · NS.04553v1 for this version
Declaration:OeisA105751.prime_divides_some_term
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 3; accepted critique: up to 100
Statement hash:4a6b0767ee8f18f4614659232e18ec035b56169b0c47cc78d3519a3de2f3c735
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/105751.lean

Formal statement

theorem prime_divides_some_term (p : ℕ) (hp : p.Prime) :
    ∃ n : ℕ, a n ≠ 0 ∧ (p : ℤ) ∣ a n
Show the full Challenge.lean (101 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Imaginary part of $\prod_{k=0}^n (1 + k \cdot i)$, $i = \sqrt{-1}$

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

@[expose] public section

open Complex Filter Topology Nat

namespace OeisA105751

/--
The primary defining sequence `a`.
a n is the imaginary part of $\prod_{k=0}^n (1 + k \cdot i)$, where $i = \sqrt{-1}$.
-/
noncomputable def a (n : ℕ) : ℤ :=
  let productTerm (k : ℕ) : ℂ := 1 + (k : ℂ) * I
  Int.floor (((Finset.range (n + 1)).prod productTerm).im)

/-- Term theorems verifying the first few values of the sequence against the official OEIS b-file -/
@[category test, AMS 11]
theorem a_0 : a 0 = 0 := by
  delta a; norm_num [Finset.prod]

@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by
  delta a; norm_num [Finset.prod]

@[category test, AMS 11]
theorem a_2 : a 2 = 3 := by
  delta a; norm_num [Finset.prod]

@[category test, AMS 11]
theorem a_3 : a 3 = 0 := by
  delta a; norm_num [Finset.prod]

@[category test, AMS 11]
theorem a_4 : a 4 = -40 := by
  delta a; norm_num [Finset.prod]

/--
Numerical calculation suggests that a similar division holds in this case.
Type 1: primes p that do not divide any element of the sequence {$a(n)$}.
In this case, unlike in A105750, the set of type 1 primes is empty;
that is, every prime p divides some term of this sequence.

Note: The triangular number n*(n+1)/2 divides $a(n)$ (see A164652).
In particular, if $p$ is an odd prime then $p$ divides $a(p)$. For $p=2$, $2$ divides $a(4)=-40$.
-/
@[category textbook, AMS 11]
theorem prime_divides_some_term (p : ℕ) (hp : p.Prime) :
    ∃ n : ℕ, a n ≠ 0 ∧ (p : ℤ) ∣ a n := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Moll's conjecture 5.5 extends to this sequence and takes the form:
(i) the $2$-adic valuation $\nu_2(a(n)) \sim n/4$ as n -> oo.
-/
@[category research solved, AMS 11,
  formal_proof using formal_conjectures at
    "https://github.com/KitaKen1/oeis-a105751-two-adic/blob/a9692d90078c4dff1478acaaa70be2fba06a3ef9/lean/OeisA105751TwoAdicFC.lean#L980-L985"]
theorem conjecture :
    Tendsto (fun n ↦ (4 : ℚ) * (padicValInt 2 (a n) : ℚ) / (n : ℚ)) atTop (nhds 1) := by
  sorry

/--
Moll's conjecture 5.5 extends to this sequence and takes the form:
(ii) for the other primes of type $2$, the p-adic valuation
$\nu_p(a(n)) \sim n/(p - 1)$ as $n \rightarrow \infty$.

(Type 2 primes consists of primes p == 1 (mod 4))
-/
@[category research open, AMS 11]
theorem conjecture.variants.moll_p_mod_4_eq_1 {p : ℕ} (hp : p.Prime) (h_mod : p % 4 = 1) :
    Tendsto (fun n ↦ ((p - 1 : ℚ) * (padicValInt p (a n) : ℚ)) / (n : ℚ)) atTop (nhds 1) := by
  sorry

end OeisA105751

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA105751.prime_divides_some_term with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_prime_divides_some_term : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk oeis-105751--prime-divides-some-term      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-105751--prime-divides-some-term
nosorry submit oeis-105751--prime-divides-some-term nosorry/oeis-105751--prime-divides-some-term/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.