Title:Position of -th partial sum of the harmonic series when jointly ranked with
Statement:"Conjecture: the difference sequence of A206911 consists of s and s."
- Clark Kimberling, Feb 13 2012
Proved in the OEIS Open project, see T. Adamczewski, OEIS Open: How many conjectures can language models turn into theorems?, arXiv:2608.11941.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05238 [math.NT] · NS.05238v1 for this version |
| Declaration: | OeisA206911.conjecture_1 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | fde025f71986628516d5917098b4b622a20d3cacfd8f6f5673d26a5bde94dea7 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/206911.lean |
Formal statement
theorem conjecture_1 (n : ℕ) (hn : 1 ≤ n) : diff n = 2 ∨ diff n = 3Show the full Challenge.lean (196 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Position of $n$-th partial sum of the harmonic series when jointly ranked with $\{\log(k+1)\}$
Position of $n$-th partial sum of the harmonic series when all the partial sums are jointly ranked
with the set $\{\log(k+1)\}$; complement of A206912.
*References:*
- [A206911](https://oeis.org/A206911)
- T. Adamczewski, "OEIS Open: How many conjectures can language models turn into theorems?",
[arXiv:2608.11941](https://arxiv.org/abs/2608.11941) [cs.AI], 2026.
-/
@[expose] public section
namespace OeisA206911
/-- Position of $n$-th partial sum of the harmonic series when all the partial sums are jointly
ranked with the set $\{\log(k+1)\}$. -/
noncomputable def a (n : ℕ) : ℕ :=
n + (Int.floor (Real.exp (harmonic n : ℝ) - 1)).toNat
@[category test, AMS 11]
theorem a_1 : a 1 = 2 := by
have h : ⌊Real.exp 1 - 1⌋ = 1 := by
rw [Int.floor_eq_iff]
constructor <;> { norm_num; linarith [Real.exp_one_gt_d9, Real.exp_one_lt_d9] }
have hsum : (harmonic 1 : ℝ) = 1 := by norm_num [harmonic]
unfold a
rw [hsum, h]
rfl
@[category test, AMS 11]
theorem a_2 : a 2 = 5 := by
have hexp : (4 : ℝ) < Real.exp (3 / 2) ∧ Real.exp (3 / 2) < 5 := by
have hgt := Real.exp_one_gt_d9
have hlt := Real.exp_one_lt_d9
have hpos : 0 < Real.exp (3 / 2) := Real.exp_pos _
have hsq : (Real.exp (3 / 2)) ^ 2 = (Real.exp 1) ^ 3 := by
rw [← Real.exp_nat_mul, ← Real.exp_nat_mul]
ring_nf
constructor
· nlinarith [sq_nonneg (Real.exp 1 - 2.7182818283)]
· nlinarith [sq_nonneg (2.7182818286 - Real.exp 1)]
have h : ⌊Real.exp (3 / 2) - 1⌋ = 3 := by
rw [Int.floor_eq_iff]
constructor <;> { norm_num; linarith [hexp.1, hexp.2] }
have hsum : (harmonic 2 : ℝ) = 3 / 2 := by
norm_num [harmonic, Finset.sum_range_succ]
unfold a
rw [hsum, h]
rfl
@[category test, AMS 11]
theorem a_3 : a 3 = 8 := by
have hexp : (6 : ℝ) < Real.exp (11 / 6) ∧ Real.exp (11 / 6) < 7 := by
have hgt := Real.exp_one_gt_d9
have hlt := Real.exp_one_lt_d9
have hpos : 0 < Real.exp (11 / 6) := Real.exp_pos _
have hpow : (Real.exp (11 / 6)) ^ 6 = (Real.exp 1) ^ 11 := by
rw [← Real.exp_nat_mul, ← Real.exp_nat_mul]
ring_nf
constructor
· have : (6 : ℝ) ^ 6 < (Real.exp (11 / 6)) ^ 6 := by
rw [hpow]
calc (6 : ℝ) ^ 6 < 2.7182818283 ^ 11 := by norm_num
_ < (Real.exp 1) ^ 11 := by gcongr
exact lt_of_pow_lt_pow_left₀ 6 hpos.le this
· have : (Real.exp (11 / 6)) ^ 6 < (7 : ℝ) ^ 6 := by
rw [hpow]
calc (Real.exp 1) ^ 11 < 2.7182818286 ^ 11 := by gcongr
_ < (7 : ℝ) ^ 6 := by norm_num
exact lt_of_pow_lt_pow_left₀ 6 (by norm_num) this
have h : ⌊Real.exp (11 / 6) - 1⌋ = 5 := by
rw [Int.floor_eq_iff]
constructor <;> { norm_num; linarith [hexp.1, hexp.2] }
have hsum : (harmonic 3 : ℝ) = 11 / 6 := by
norm_num [harmonic, Finset.sum_range_succ]
unfold a
rw [hsum, h]
rfl
@[category test, AMS 11]
theorem a_4 : a 4 = 11 := by
have hexp : (8 : ℝ) < Real.exp (25 / 12) ∧ Real.exp (25 / 12) < 9 := by
have hgt := Real.exp_one_gt_d9
have hlt := Real.exp_one_lt_d9
have hpos : 0 < Real.exp (25 / 12) := Real.exp_pos _
have hpow : (Real.exp (25 / 12)) ^ 12 = (Real.exp 1) ^ 25 := by
rw [← Real.exp_nat_mul, ← Real.exp_nat_mul]
ring_nf
constructor
· have : (8 : ℝ) ^ 12 < (Real.exp (25 / 12)) ^ 12 := by
rw [hpow]
calc (8 : ℝ) ^ 12 < 2.7182818283 ^ 25 := by norm_num
_ < (Real.exp 1) ^ 25 := by gcongr
exact lt_of_pow_lt_pow_left₀ 12 hpos.le this
· have : (Real.exp (25 / 12)) ^ 12 < (9 : ℝ) ^ 12 := by
rw [hpow]
calc (Real.exp 1) ^ 25 < 2.7182818286 ^ 25 := by gcongr
_ < (9 : ℝ) ^ 12 := by norm_num
exact lt_of_pow_lt_pow_left₀ 12 (by norm_num) this
have h : ⌊Real.exp (25 / 12) - 1⌋ = 7 := by
rw [Int.floor_eq_iff]
constructor <;> { norm_num; linarith [hexp.1, hexp.2] }
have hsum : (harmonic 4 : ℝ) = 25 / 12 := by
norm_num [harmonic, Finset.sum_range_succ]
unfold a
rw [hsum, h]
rfl
@[category test, AMS 11]
theorem a_5 : a 5 = 13 := by
have hexp : (9 : ℝ) < Real.exp (137 / 60) ∧ Real.exp (137 / 60) < 10 := by
have hgt := Real.exp_one_gt_d9
have hlt := Real.exp_one_lt_d9
have hpos : 0 < Real.exp (137 / 60) := Real.exp_pos _
have hpow : (Real.exp (137 / 60)) ^ 60 = (Real.exp 1) ^ 137 := by
rw [← Real.exp_nat_mul, ← Real.exp_nat_mul]
ring_nf
constructor
· have : (9 : ℝ) ^ 60 < (Real.exp (137 / 60)) ^ 60 := by
rw [hpow]
calc (9 : ℝ) ^ 60 < 2.7182818283 ^ 137 := by norm_num
_ < (Real.exp 1) ^ 137 := by gcongr
exact lt_of_pow_lt_pow_left₀ 60 hpos.le this
· have : (Real.exp (137 / 60)) ^ 60 < (10 : ℝ) ^ 60 := by
rw [hpow]
calc (Real.exp 1) ^ 137 < 2.7182818286 ^ 137 := by gcongr
_ < (10 : ℝ) ^ 60 := by norm_num
exact lt_of_pow_lt_pow_left₀ 60 (by norm_num) this
have h : ⌊Real.exp (137 / 60) - 1⌋ = 8 := by
rw [Int.floor_eq_iff]
constructor <;> { norm_num; linarith [hexp.1, hexp.2] }
have hsum : (harmonic 5 : ℝ) = 137 / 60 := by
norm_num [harmonic, Finset.sum_range_succ]
unfold a
rw [hsum, h]
rfl
/-- The difference sequence $d(n) = a(n+1) - a(n)$. -/
noncomputable def diff (n : ℕ) : ℤ :=
(a (n + 1) : ℤ) - (a n : ℤ)
/-- The number of $3$s in the first $N$ terms of the difference sequence $d(1), \dots, d(N)$. -/
noncomputable def count3 (N : ℕ) : ℕ :=
∑ n ∈ Finset.range N, if diff (n + 1) = 3 then 1 else 0
/-- The number of $2$s in the first $N$ terms of the difference sequence $d(1), \dots, d(N)$. -/
noncomputable def count2 (N : ℕ) : ℕ :=
∑ n ∈ Finset.range N, if diff (n + 1) = 2 then 1 else 0
/--
"Conjecture: the difference sequence of A206911 consists of $2$s and $3$s."
- _Clark Kimberling_, Feb 13 2012
Proved in the OEIS Open project, see T. Adamczewski, OEIS Open: How many conjectures can
language models turn into theorems?, [arXiv:2608.11941](https://arxiv.org/abs/2608.11941).
-/
@[category research solved, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : 1 ≤ n) : diff n = 2 ∨ diff n = 3 := by
sorry
/--
"Conjecture: the ratio (number of $3$s)/(number of $2$s) tends to a number between $3.5$ and $3.6$."
- _Clark Kimberling_, Feb 13 2012
Proved in the OEIS Open project, see T. Adamczewski, OEIS Open: How many conjectures can
language models turn into theorems?, [arXiv:2608.11941](https://arxiv.org/abs/2608.11941).
-/
@[category research solved, AMS 11]
theorem conjecture_2 :
∃ l : ℝ, 3.5 < l ∧ l < 3.6 ∧
Filter.Tendsto (fun N : ℕ => (count3 N : ℝ) / (count2 N : ℝ)) Filter.atTop (nhds l) := by
sorry
end OeisA206911
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA206911.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-206911 nosorry submit oeis-206911 nosorry/oeis-206911/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- conjecture-2 — known result
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.