Title:Numerator of .
Statement:Conjecture: for , if and only if n is prime.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.04624 [math.NT] · NS.04624v1 for this version |
| Declaration: | OeisA108866.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 9b6abdf05b5158b21a83c09ea59ab6b47c3c9375f81c9c8d161503af2eabd464 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/108866.lean |
Formal statement
theorem conjecture {n : ℕ} (hn : n > 3) :
(ratExpression n).num ≡ 0 [ZMOD (n^2 : ℤ)] ↔ n.PrimeShow the full Challenge.lean (81 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Numerator of $\sum_{k=1}^n 2^k/k$.
Conjecture: for $n > 3$,
$\textrm{numerator}(-2/n + \sum_{k=1}^{n} \frac{2^k}{k}) == 0 (\textrm{mod} n^2)$
if and only if n is prime.
*References:*
- [A108866](https://oeis.org/A108866)
-/
@[expose] public section
namespace OeisA108866
/--
The primary defining sequence `a`.
a n is the numerator of $\sum_{k=1}^n \frac{2^k}{k}$.
-/
noncomputable def a (n : ℕ) : ℕ :=
(∑ i ∈ Finset.range n, (2 : ℚ) ^ (i + 1) / ((i + 1) : ℚ)).num.natAbs
local macro "eval_a" : tactic => `(tactic| (delta a; norm_num))
/-- 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 decide
@[category test, AMS 11]
theorem a_1 : a 1 = 2 := by eval_a
@[category test, AMS 11]
theorem a_2 : a 2 = 4 := by eval_a
@[category test, AMS 11]
theorem a_3 : a 3 = 20 := by eval_a
@[category test, AMS 11]
theorem a_4 : a 4 = 32 := by eval_a
/--
The rational number inside the numerator function in the conjecture.
$$ -\frac{2}{n} + \sum_{k=1}^n \frac{2^k}{k} $$
-/
noncomputable def ratExpression (n : ℕ) : ℚ :=
if n > 0 then
(-2 : ℚ) / (n : ℚ) + ∑ i ∈ (Finset.range n), (2 : ℚ) ^ (i + 1) / ((i + 1) : ℚ)
else
0
/--
Conjecture: for $n > 3$,
$\textrm{numerator}(-2/n + \sum_{k=1}^{n} \frac{2^k}{k}) == 0 (\textrm{mod} n^2)$
if and only if n is prime.
-/
@[category research open, AMS 11]
theorem conjecture {n : ℕ} (hn : n > 3) :
(ratExpression n).num ≡ 0 [ZMOD (n^2 : ℤ)] ↔ n.Prime := by
sorry
end OeisA108866
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA108866.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-108866 nosorry submit oeis-108866 nosorry/oeis-108866/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.