Title:Numerator - denominator in -th harmonic number · a_4
Statement:No informal statement.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.06696 [math.NT] · NS.06696v1 for this version |
| Declaration: | OeisA64169.a_4 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 1; accepted critique: up to 100 |
| Statement hash: | ba078f6b85675f6aee9bd727b15996a0adccc402d506057318556e56a376cbff |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/64169.lean |
Formal statement
theorem a_4 : a 4 = 13Show the full Challenge.lean (73 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Numerator - denominator in $n$-th harmonic number
$a(n) = \text{numerator}(H_n) - \text{denominator}(H_n)$, where
$H_n = 1 + 1/2 + \dots + 1/n$.
*References:*
- [A064169](https://oeis.org/A064169)-/
@[expose] public section
namespace OeisA64169
/-- The $n$-th harmonic number $H_n = \sum_{k=1}^n \frac{1}{k}$ as a rational number. -/
def H (n : ℕ) : ℚ :=
∑ k ∈ Finset.Icc 1 n, 1 / (k : ℚ)
/-- $a(n) = \text{numerator}(H_n) - \text{denominator}(H_n)$. -/
def a (n : ℕ) : ℤ :=
(H n).num - (H n).den
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by
decide +native
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by
decide +native
@[category test, AMS 11]
theorem a_3 : a 3 = 5 := by
decide +native
@[category test, AMS 11]
theorem a_4 : a 4 = 13 := by
decide +native
@[category test, AMS 11]
theorem a_5 : a 5 = 77 := by
decide +native
set_option linter.style.formal_proof_palomar false in
/--
"Conjecture: for $n > 2$, $n$ divides $a(n-2)$ if and only if $n$ is a prime.
Checked up to 20000. - _Amiram Eldar_ and _Thomas Ordowski_, Jul 27 2019
This is false for the composite number $16843^2$.-/
@[category research solved, AMS 11,
formal_proof using lean4 at "https://github.com/epoch-research/LeanOpenProblems-results/blob/f02efd9a8c5fc6a735d2a90c33e24f7278ce0ffc/runs/oeis-full-50usd-ant-j0j0g4uzligm1k41/oeis_64169_conjecture_0/Submission/Spec.lean#L514"]
theorem conjecture : ¬ ∀ (n : ℕ), 2 < n → ((n : ℤ) ∣ a (n - 2) ↔ n.Prime) := by
sorry
end OeisA64169
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA64169.a_4 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_4 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk oeis-64169--a-4 # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch oeis-64169--a-4 nosorry submit oeis-64169--a-4 nosorry/oeis-64169--a-4/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.