Title:Sum of over divisors equals harmonic number
Statement:The terms are not all positive. The first negative one is . Conjecture: if and only if A001221(n) is an odd number .
This conjecture is false. A counterexample is the product of all primes at most , which has distinct prime factors and a negative sequence value.
The counterexample and formal proof were developed by Codex (GPT-6), prompted by Samuel Schlesinger.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question, formal_proof |
| Cite as: | NS.06742 [math.NT] · NS.06742v1 for this version |
| Declaration: | OeisA67857.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | a0058a558e9948bd1d5bed57d8bf70f02a5e1f90d105c1d60ed1a65a4994c497 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/67857.lean |
Formal statement
theorem conjecture :
¬ ∀ n : ℕ, 0 < n →
(a n < 0 ↔ Odd (cardDistinctFactors n) ∧ 3 ≤ cardDistinctFactors n)Show the full Challenge.lean (92 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Sum of $a(k)/k!$ over divisors equals harmonic number
The sequence $a(n)$ satisfies $\sum_{k \mid n} \frac{a(k)}{k!} = \sum_{j=1}^n \frac{1}{j} = H_n$,
where the sum on the left is over positive divisors $k$ of $n$. By Möbius inversion,
$$a(n) = n! \sum_{d \mid n} \mu(n/d) H_d$$
where $H_d = \sum_{j=1}^d \frac{1}{j}$ is the $d$-th harmonic number.
*References:*
- [A067857](https://oeis.org/A067857)
- [A001221](https://oeis.org/A001221)
-/
@[expose] public section
namespace OeisA67857
open ArithmeticFunction Finset
/-- The sequence $a(n) = n! \sum_{d \mid n} \mu(n/d) H_d$ for $n \ge 1$, and $a(0) = 0$. -/
def a (n : ℕ) : ℚ :=
if n = 0 then 0
else
(n.factorial : ℚ) *
∑ d ∈ n.divisors, ((moebius (n / d) : ℤ) : ℚ) * harmonic d
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by
decide +kernel
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by
decide +kernel
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 5 := by
decide +kernel
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 14 := by
decide +kernel
/-- Value of the sequence `a` at 5. -/
@[category test, AMS 11]
theorem a_5 : a 5 = 154 := by
decide +kernel
set_option linter.style.formal_proof_palomar false in
/--
The terms are not all positive. The first negative one is
$a(30) = -22690644647302814715858124800000$.
Conjecture: $a(n) < 0$ if and only if A001221(n) is an odd number $\ge 3$.
This conjecture is false. A counterexample is the product of all primes at most $1000$,
which has $168$ distinct prime factors and a negative sequence value.
The counterexample and formal proof were developed by Codex (GPT-6),
prompted by Samuel Schlesinger.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
"https://github.com/SamuelSchlesinger/a067857-counterexample/blob/44317ddb5bd735f7a1f6764c22db10c455e4b584/Counterexample.lean#L89-L92"]
theorem conjecture :
¬ ∀ n : ℕ, 0 < n →
(a n < 0 ↔ Odd (cardDistinctFactors n) ∧ 3 ≤ cardDistinctFactors n) := by
sorry
end OeisA67857
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA67857.conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-67857 nosorry submit oeis-67857 nosorry/oeis-67857/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.