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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Partial sums of (−1)k−Ω(k)(-1)^{k - \Omega(k)}

Source:OEIS conjectures
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

"On May 16 2012, Zhi-Wei Sun conjectured that a(n)a(n) is positive for each n>4n > 4."

  • Zhi-Wei Sun, May 19 2012
Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.05290 [math.NT] · NS.05290v1 for this version
Declaration:OeisA212496.conjecture_1
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:78a55d8502e7ca07da22d9885bfbf3c55e21d534fb5e7c431eb65bea72fcea45
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/212496.lean

Formal statement

theorem conjecture_1 (n : ℕ) (hn : 4 < n) : 0 < a n
Show the full Challenge.lean (117 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Partial sums of $(-1)^{k - \Omega(k)}$

The sequence $a(n) = \sum_{k=1}^n (-1)^{k - \Omega(k)}$, where $\Omega(k)$ is the total number of
prime factors of $k$ counted with multiplicity.

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

@[expose] public section

namespace OeisA212496

open scoped ArithmeticFunction.Omega

/-- $a(n) = \sum_{k=1}^n (-1)^{k - \Omega(k)}$. -/
def a (n : ℕ) : ℤ :=
  ∑ k ∈ Finset.Icc 1 n, if (k + Ω k) % 2 = 0 then 1 else -1

@[category test, AMS 11]
theorem a_1 : a 1 = -1 := by
  simp only [a, ArithmeticFunction.cardFactors_apply]; decide +kernel

@[category test, AMS 11]
theorem a_2 : a 2 = -2 := by
  simp only [a, ArithmeticFunction.cardFactors_apply]; decide +kernel

@[category test, AMS 11]
theorem a_3 : a 3 = -1 := by
  simp only [a, ArithmeticFunction.cardFactors_apply]; decide +kernel

@[category test, AMS 11]
theorem a_4 : a 4 = 0 := by
  simp only [a, ArithmeticFunction.cardFactors_apply]; decide +kernel

@[category test, AMS 11]
theorem a_5 : a 5 = 1 := by
  simp only [a, ArithmeticFunction.cardFactors_apply]; decide +kernel

/-- Auxiliary sequence $b(n) = \sum_{k=1}^n \frac{(-1)^{k - \Omega(k)}}{k}$. -/
def b (n : ℕ) : ℚ :=
  ∑ k ∈ Finset.Icc 1 n, (if (k + Ω k) % 2 = 0 then (1 : ℚ) else -1) / (k : ℚ)

/--
"On May 16 2012, Zhi-Wei Sun conjectured that $a(n)$ is positive for each $n > 4$."
- _Zhi-Wei Sun_, May 19 2012
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : 4 < n) : 0 < a n := by
  sorry

/--
"Moreover, he guessed that $a(n) > \sqrt{n}$ for any $n > 324$."
- _Zhi-Wei Sun_, May 19 2012
-/
@[category research open, AMS 11]
theorem conjecture_2 (n : ℕ) (hn : 324 < n) :
    Real.sqrt (n : ℝ) < (a n : ℝ) := by
  sorry

/--
"He also guessed that $a(n) < \sqrt{n}\log(\log(n))$ for $n > 5892$."
- _Zhi-Wei Sun_, May 19 2012
-/
@[category research open, AMS 11]
theorem conjecture_3 (n : ℕ) (hn : 5892 < n) :
    (a n : ℝ) < Real.sqrt (n : ℝ) * Real.log (Real.log (n : ℝ)) := by
  sorry

/--
"Sun also conjectured that $b(n) = \sum_{k=1}^n (-1)^{k-\Omega(k)}/k < 0$ for all $n=1,2,3,\dots$"
- _Zhi-Wei Sun_, May 19 2012
-/
@[category research open, AMS 11]
theorem conjecture_4 (n : ℕ) (hn : 0 < n) : b n < 0 := by
  sorry

/--
"Moreover, he guessed that $b(n) < -1/\sqrt{n}$ for all $n > 1$."
- _Zhi-Wei Sun_, May 19 2012
-/
@[category research open, AMS 11]
theorem conjecture_5 (n : ℕ) (hn : 1 < n) :
    (b n : ℝ) < -1 / Real.sqrt (n : ℝ) := by
  sorry

/--
"He also guessed that $b(n) > -\log(\log(n))/\sqrt{n}$ for $n > 2008$."
- _Zhi-Wei Sun_, May 19 2012
-/
@[category research open, AMS 11]
theorem conjecture_6 (n : ℕ) (hn : 2008 < n) :
    -Real.log (Real.log (n : ℝ)) / Real.sqrt (n : ℝ) < (b n : ℝ) := by
  sorry

end OeisA212496

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