Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Asymptotics of subsets of {1,2,…,n}\{1, 2, \dots, n\} with integer average

Source:OEIS conjectures
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Conjecture: a(n)=2n+1/n⋅(1+1/n+3/n2+13/n3+75/n4+541/n5+o(1/n5))a(n) = 2^{n+1}/n \cdot (1 + 1/n + 3/n^2 + 13/n^3 + 75/n^4 + 541/n^5 + o(1/n^5)). - Benoit Cloitre, Oct 20 2002

A formal proof has been found with the methods described in arxiv/2605.22763.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.06578 [math.NT] · NS.06578v1 for this version
Declaration:OeisA51293.tendsto_aReal_asymptotic
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:62fca853b8c1b3b541136be0bbf0b80e7744ca680faf47c0f5498cad9fe6a63c
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/51293.lean

Formal statement

theorem tendsto_aReal_asymptotic :
    Tendsto (fun n : ℕ =>
      (aReal n - (2 ^ (n + 1) / (n : ℝ)) *
        (1 + 1 / (n : ℝ) + 3 / (n : ℝ) ^ 2 + 13 / (n : ℝ) ^ 3 + 75 / (n : ℝ) ^ 4 + 541 / (n : ℝ) ^ 5)) /
      (2 ^ (n + 1) / (n : ℝ) ^ 6)) atTop (nhds 0)
Show the full Challenge.lean (91 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Asymptotics of subsets of $\{1, 2, \dots, n\}$ with integer average

Number of nonempty subsets of $\{1, 2, 3, \dots, n\}$ whose elements have an integer average.

Benoit Cloitre conjectured the asymptotic expansion:
$$a(n) = \frac{2^{n+1}}{n} \left(1 + \frac{1}{n} + \frac{3}{n^2} + \frac{13}{n^3} + \frac{75}{n^4} + \frac{541}{n^5} + o\left(\frac{1}{n^5}\right)\right)$$
where the coefficients $1, 1, 3, 13, 75, 541, \dots$ are the Fubini numbers (preferential arrangements, A000670).

*References:*
- [A051293](https://oeis.org/A051293)
- [arxiv/2605.22763](https://arxiv.org/abs/2605.22763) *Advancing Mathematics Research with AI-Driven Formal Proof Search* by George Tsoukalas et al.
- [A000670](https://oeis.org/A000670)
-/

@[expose] public section

namespace OeisA51293


open Polynomial

open scoped Topology

open Finset Nat Real Filter Asymptotics

/--
Number of nonempty subsets of $\{1, 2, 3, \dots, n\}$ whose elements have an integer average.
-/
def a (n : ℕ) : ℕ :=
  Finset.card (
    (Finset.Icc 1 n).powerset.filter fun S : Finset ℕ =>
      S.Nonempty ∧ S.card ∣ S.sum id
  )

def aReal (n : ℕ) : ℝ := a n


@[category test, AMS 11]
lemma a_1 : a 1 = 1 := by rfl

@[category test, AMS 11]
lemma a_2 : a 2 = 2 := by rfl

@[category test, AMS 11]
lemma a_3 : a 3 = 5 := by rfl

@[category test, AMS 11]
lemma a_4 : a 4 = 8 := by rfl

@[category test, AMS 11]
lemma a_5 : a 5 = 15 := by rfl


set_option linter.style.formal_proof_palomar false in
/--
Conjecture: $a(n) = 2^{n+1}/n \cdot (1 + 1/n + 3/n^2 + 13/n^3 + 75/n^4 + 541/n^5 + o(1/n^5))$. - _Benoit Cloitre_, Oct 20 2002

A formal proof has been found with the methods described in
[arxiv/2605.22763](https://arxiv.org/abs/2605.22763).
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at
"https://github.com/mo271/formal-conjectures/blob/a32396489dcb8f86c3549b93aa358ac6a10a3a1f/FormalConjectures/OEIS/51293.wip.lean#L503"]
theorem tendsto_aReal_asymptotic :
    Tendsto (fun n : ℕ =>
      (aReal n - (2 ^ (n + 1) / (n : ℝ)) *
        (1 + 1 / (n : ℝ) + 3 / (n : ℝ) ^ 2 + 13 / (n : ℝ) ^ 3 + 75 / (n : ℝ) ^ 4 + 541 / (n : ℝ) ^ 5)) /
      (2 ^ (n + 1) / (n : ℝ) ^ 6)) atTop (nhds 0) := by
    sorry

end OeisA51293

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA51293.tendsto_aReal_asymptotic with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_tendsto_aReal_asymptotic : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch oeis-51293
nosorry submit oeis-51293 nosorry/oeis-51293/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.