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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 403

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

Does the equation 2m=a1!+⋯+ak!2^m=a_1!+\cdots+a_k! with a1<a2<⋯<aka_1<a_2<\cdots <a_k have only finitely many solutions?

Asked by Burr and Erdős. Frankl and Lin [Li76] independently showed that the answer is yes, and the largest solution is 27=2!+3!+5!.2^7=2!+3!+5!. In fact Lin showed that the largest power of 22 which can divide a sum of distinct factorials containing 22 is 22542^{254}, and that there are only 5 solutions to 3m=a1!+⋯+ak!3^m=a_1!+\cdots+a_k! (when m=0,1,2,3,6m=0,1,2,3,6).

See also [404].

A solution is encoded below as a pair (m,s)(m, s) where ss is the finite set {a1<a2<⋯<ak}\{a_1 < a_2 < \cdots < a_k\} of positive integers, so the distinctness of the aia_i is given by set membership. The empty set contributes no solutions since 2m≥1>02^m \geq 1 > 0.

The linked proof gives more than finiteness: it classifies the solutions outright, as (0,{1})(0,\{1\}), (1,{2})(1,\{2\}), (3,{2,3})(3,\{2,3\}), (5,{2,3,4})(5,\{2,3,4\}) and (7,{2,3,5})(7,\{2,3,5\}), so the set below has exactly five elements.

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

Formal statement

theorem erdos_403 :
    {p : ℕ × Finset ℕ | (∀ a ∈ p.2, 0 < a) ∧
      2 ^ p.1 = ∑ a ∈ p.2, a.factorial}.Finite
Show the full Challenge.lean (65 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 403

*References:*
- [erdosproblems.com/403](https://www.erdosproblems.com/403)
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial
  number theory*. Monographies de L'Enseignement Mathématique (1980).
- [Li76] Lin, S., *On two problems of Erdős concerning sums of distinct factorials*.
  Bell Laboratories internal memorandum (1960).
-/

@[expose] public section

namespace Erdos403

set_option linter.style.formal_proof_palomar false in
/--
Does the equation
$$2^m=a_1!+\cdots+a_k!$$
with $a_1<a_2<\cdots <a_k$ have only finitely many solutions?

Asked by Burr and Erdős. Frankl and Lin [Li76] independently showed that the answer is yes, and
the largest solution is
$$2^7=2!+3!+5!.$$
In fact Lin showed that the largest power of $2$ which can divide a sum of distinct factorials
containing $2$ is $2^{254}$, and that there are only 5 solutions to $3^m=a_1!+\cdots+a_k!$
(when $m=0,1,2,3,6$).

See also [404].

A solution is encoded below as a pair $(m, s)$ where $s$ is the finite set
$\{a_1 < a_2 < \cdots < a_k\}$ of positive integers, so the distinctness of the $a_i$ is
given by set membership. The empty set contributes no solutions since $2^m \geq 1 > 0$.

The linked proof gives more than finiteness: it classifies the solutions outright, as
$(0,\{1\})$, $(1,\{2\})$, $(3,\{2,3\})$, $(5,\{2,3,4\})$ and $(7,\{2,3,5\})$, so the set below
has exactly five elements.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/Jayyhk/erdos-lean/blob/f8a51976fd2e66a52b4928c109fb9ae877a1a507/problems/403/Erdos403.lean"]
theorem erdos_403 :
    {p : ℕ × Finset ℕ | (∀ a ∈ p.2, 0 < a) ∧
      2 ^ p.1 = ∑ a ∈ p.2, a.factorial}.Finite := by
  sorry

end Erdos403

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

nosorry fetch erdos-403
nosorry submit erdos-403 nosorry/erdos-403/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.