Title:Least such that · a_1
Statement:No informal statement.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.06643 [math.NT] · NS.06643v1 for this version |
| Declaration: | OeisA55487.a_1 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 1; accepted critique: up to 100 |
| Statement hash: | 588a8d78d334bbd4af8e899e968cbfadeb7b31ddf617ea2f224773418f5b4bd3 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/55487.lean |
Formal statement
theorem a_1 : a 1 = 1 := IsLeast.csInf_eq <| by decide
@[category test, AMS 11]
theorem a_2 : a 2 = 3 := IsLeast.csInf_eq <| by decide
@[category test, AMS 11]
theorem a_3 : a 3 = 7 := IsLeast.csInf_eq <| by decide
@[category test, AMS 11]
theorem a_4 : a 4 = 35 := IsLeast.csInf_eq <| by decide
/-- Factorial primes: $n$ such that $n! + 1$ is prime (A002981). -/
def isFactorialPrime (n : ℕ) : PropShow the full Challenge.lean (77 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Least $m$ such that $\phi(m) = n!$
The smallest positive integer $m$ whose Euler totient equals $n!$.
*References:*
- [A055487](https://oeis.org/A055487)-/
@[expose] public section
namespace OeisA55487
/-- Least $m$ such that $\phi(m) = n!$. -/
noncomputable def a (n : ℕ) : ℕ :=
sInf {m : ℕ | 0 < m ∧ m.totient = n.factorial}
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := IsLeast.csInf_eq <| by decide
@[category test, AMS 11]
theorem a_2 : a 2 = 3 := IsLeast.csInf_eq <| by decide
@[category test, AMS 11]
theorem a_3 : a 3 = 7 := IsLeast.csInf_eq <| by decide
@[category test, AMS 11]
theorem a_4 : a 4 = 35 := IsLeast.csInf_eq <| by decide
/-- Factorial primes: $n$ such that $n! + 1$ is prime (A002981). -/
def isFactorialPrime (n : ℕ) : Prop :=
Nat.Prime (n.factorial + 1)
/-- The least prime $p > \sqrt{n!}$ such that $(p - 1) \mid n!$
and $q = \frac{n!}{p - 1} + 1$ is prime. -/
noncomputable def p (n : ℕ) : ℕ :=
sInf {p : ℕ | Nat.Prime p ∧ Nat.sqrt n.factorial < p ∧ (p - 1) ∣ n.factorial ∧
Nat.Prime (n.factorial / (p - 1) + 1)}
/-- The complementary prime factor $q = \frac{n!}{p - 1} + 1$. -/
noncomputable def q (n : ℕ) : ℕ :=
n.factorial / (p n - 1) + 1
/--
Conjecture: unless $n! + 1$ is prime (i.e., $n \in \text{A002981}$), $a(n) = p q$ where $p$ is the
least prime $> \sqrt{n!}$ such that $(p - 1) \mid n!$ and $q = \frac{n!}{p - 1} + 1$ is prime.
- M. F. Hasler, Oct 04 2009
The conclusion $(p(n)).\text{Prime}$ asserts that such a prime $p$ exists: if no prime satisfies
the search conditions then `p n` is `sInf ∅ = 0`, which is not prime.
-/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) (hn : 1 ≤ n) (h_not_prime : ¬ isFactorialPrime n) :
(p n).Prime ∧ a n = p n * q n := by
sorry
end OeisA55487
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA55487.a_1 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_1 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk oeis-55487--a-1 # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch oeis-55487--a-1 nosorry submit oeis-55487--a-1 nosorry/oeis-55487--a-1/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.