Title:Erdős Problem 1161
1 result recorded on aiXiv
- solves Let be the number of elements of order in . Then . For large , implies . Moreover exactly when is the least positive integer with . The page attributes this to Beker and records a full AI-generated solution. — aiXiv:2609.02567, 2026-01-24 · claimed by its authors; no independent check recorded on aiXiv
From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.
Statement:Let count the number of elements of of order . For which values of will be maximal? [Va99, 5.72]
Beker [Be25d, Theorem 1.2] proved that, for all large , is maximal if and only if is minimal such that , where is the least common multiple. The last clause on erdosproblems.com/1161 reads "" instead of " is maximal"; we follow [Be25d]. For we read as , which does not change the least such , because qualifies.
| Subjects: | Combinatorics (math.CO); Group Theory (math.GR) |
| MSC classes: | 05, 20 |
| Tags: | question, formal_proof |
| Cite as: | NS.00824 [math.CO] · NS.00824v1 for this version |
| Declaration: | Erdos1161.erdos_1161 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | fe97d1d2eaa88f866d7a19bdd17af7d9112b6ea9b037b3f34aa374c126d038d4 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/1161.lean |
Formal statement
theorem erdos_1161 :
∀ᶠ n : ℕ in atTop, {k : ℕ | ∀ j : ℕ, f j n ≤ f k n} = erdos_1161.answer nShow the full Challenge.lean (107 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 1161
*References:*
- [erdosproblems.com/1161](https://www.erdosproblems.com/1161)
- [Be25d] Beker, Adrian, *The most probable order of a random permutation*.
[arXiv:2510.11698](https://arxiv.org/abs/2510.11698) (2025).
- [Va99] Various, *Some of Paul's favorite problems*. Booklet produced for the conference
"Paul Erdős and his mathematics", Budapest, July 1999 (1999).
-/
@[expose] public section
open Filter Asymptotics
namespace Erdos1161
/-- `f k n` is $f_k(n)$, the number of elements of $S_n$ of order exactly $k$. Here $S_n$ is
`Equiv.Perm (Fin n)`. Since every element of a finite group has positive order, `f 0 n = 0`. -/
noncomputable def f (k n : ℕ) : ℕ :=
Fintype.card {σ : Equiv.Perm (Fin n) // orderOf σ = k}
/-- `maxF n` is $\max_{k \geq 1} f_k(n)$. Only the orders that occur in $S_n$ are considered,
because `f k n = 0` for every other `k`. -/
noncomputable def maxF (n : ℕ) : ℕ :=
(Finset.univ.image fun σ : Equiv.Perm (Fin n) ↦ orderOf σ).sup fun k ↦ f k n
/-- No element of $S_n$ has order $0$. -/
@[category API, AMS 5 20]
theorem f_zero (n : ℕ) : f 0 n = 0 := by
unfold f
rw [Fintype.card_eq_zero_iff]
exact ⟨fun ⟨σ, hσ⟩ => (orderOf_pos σ).ne' hσ⟩
/-- Only the identity has order $1$. -/
@[category API, AMS 5 20]
theorem f_one (n : ℕ) : f 1 n = 1 := by
unfold f
rw [Fintype.card_eq_one_iff]
exact ⟨⟨1, orderOf_one⟩, fun ⟨σ, hσ⟩ => Subtype.ext (orderOf_eq_one_iff.mp hσ)⟩
/-- The answer: the least $k\geq 1$ with $[1,\ldots,n-k]\mid k$ (as a set with one element). -/
def erdos_1161.answer (n : ℕ) : Set ℕ :=
{k | IsLeast {m : ℕ | 0 < m ∧ Nat.lcmUpto (n - m) ∣ m} k}
set_option linter.style.formal_proof_palomar false in
/--
Let $f_k(n)$ count the number of elements of $S_n$ of order $k$. For which values of $k$ will
$f_k(n)$ be maximal? [Va99, 5.72]
Beker [Be25d, Theorem 1.2] proved that, for all large $n$, $f_k(n)$ is maximal if and only if
$k\geq 1$ is minimal such that $[1,\ldots,n-k]\mid k$, where $[\cdot]$ is the least common
multiple. The last clause on erdosproblems.com/1161 reads "$f_k(n)=(n-1)!$" instead of "$f_k(n)$
is maximal"; we follow [Be25d]. For $k > n$ we read $n-k$ as $0$, which does not change the
least such $k$, because $k = n$ qualifies.
-/
@[category research solved, question value, AMS 5 20, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1161.lean#L50"]
theorem erdos_1161 :
∀ᶠ n : ℕ in atTop, {k : ℕ | ∀ j : ℕ, f j n ≤ f k n} = erdos_1161.answer n := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
Beker [Be25d, Theorem 1.1] proved that
$$\max_{k\geq 1} f_k(n)\sim (n-1)!.$$
-/
@[category research solved, AMS 5 20, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1161.lean#L50"]
theorem erdos_1161.variants.max_asymptotic :
(fun n : ℕ ↦ (maxF n : ℝ)) ~[atTop] (fun n : ℕ ↦ ((n - 1).factorial : ℝ)) := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
Beker [Be25d, Theorem 1.1] also proved that, if $n$ is sufficiently large and
$f_k(n)\geq (n-1)!$, then $[1,\ldots,n-k]\mid k$. The statement also records $1\leq k\leq n$,
since [Be25d] writes such $k$ as $n-k'$ with $0\leq k'\leq n-1$.
-/
@[category research solved, AMS 5 20, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1161.lean#L50"]
theorem erdos_1161.variants.threshold :
∀ᶠ n : ℕ in atTop, ∀ k : ℕ, (n - 1).factorial ≤ f k n →
k ≤ n ∧ 0 < k ∧ Nat.lcmUpto (n - k) ∣ k := by
sorry
end Erdos1161
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1161.erdos_1161 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_1161 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-1161 nosorry submit erdos-1161 nosorry/erdos-1161/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-1161-variants-max-asymptotic — known result
- erdos-1161-variants-threshold — 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.