Conjecture: Every odd prime occurs as a term in the sequence.
Permanent public credit, certificates, and points. Unpaid; uses your AI plan.
The exact statement
theorem conjecture (p : ℕ) (hp : p.Prime) (hp_odd : p ≠ 2) : ∃ n > 0, a n = pConjecture: Every odd prime occurs as a term in the sequence.
Permanent public credit, certificates, and points. Unpaid; uses your AI plan.
theorem conjecture (p : ℕ) (hp : p.Prime) (hp_odd : p ≠ 2) : ∃ n > 0, a n = p/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module
public import FormalConjecturesUtil
/-!
# $\gcd(\mathrm{numerator}(H_n), n!)$
$a(n) = \gcd(\mathrm{A001008}(n), n!)$, where $\mathrm{A001008}(n)$ is the numerator of
the $n$-th harmonic number $H_n = \sum_{i=1}^n \frac{1}{i}$.
*References:*
- [A093818](https://oeis.org/A093818)-/
@[expose] public section
namespace OeisA93818
/-- $a(n) = \gcd(\mathrm{numerator}(H_n), n!)$, where $H_n$ is the $n$-th harmonic number. -/
def a (n : ℕ) : ℕ :=
Nat.gcd (harmonic n).num.natAbs n.factorial
/-- Value of the sequence `a` at 0. -/
@[category test, AMS 11]
theorem a_0 : a 0 = 1 := by decide +kernel
/-- 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 = 1 := by decide +kernel
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by decide +kernel
/--
Conjecture: Every odd prime occurs as a term in the sequence.-/
@[category research open, AMS 11]
theorem conjecture (p : ℕ) (hp : p.Prime) (hp_odd : p ≠ 2) : ∃ n > 0, a n = p := by
sorry
end OeisA93818