Brocard's Problem: n! + 1 = m²Open Problem
Motivation
Brocard's problem asks for all natural numbers such that is a perfect square. Henri Brocard raised the question in 1876 and again in 1885, and Srinivasa Ramanujan independently posed it in 1913 in the Journal of the Indian Mathematical Society. Only three solutions are known, and the problem is listed as Erdős problem #398 (erdosproblems.com/398). It is one of the simplest-looking Diophantine equations mixing a multiplicative object (the factorial) with an additive shift, and it is a standard test case for conjectures such as the abc conjecture.
Timeline
- 1876, 1885 — Brocard asks whether has solutions other than .
- 1913 — Ramanujan poses the same question (Question 469, J. Indian Math. Soc.).
- 1993 — Overholt shows that, conditionally on (a weak form of) the abc conjecture, the equation has only finitely many solutions (Wikipedia summary).
- 2000 — Berndt and Galway report a computer search finding no solutions other than for .
- Later searches — the search bound was extended further (Matson, to ; Epstein and Glickman, to ), again without new solutions.
No unconditional proof of finiteness is known.
Setting
For a natural number , the factorial is , with . A Brown number pair is a pair of natural numbers with
The three known pairs are , and , since , and .
For the conditional milestone, the radical of a natural number is the product of the distinct primes dividing . The abc conjecture asserts: for every there is such that for all positive integers with and ,
Formalization targets
Goal — Brocard's problem
This says both that the three known pairs are solutions and that there are no others.
Milestones
- Known solutions: , , .
- Berndt–Galway search bound: if and , then .
- Overholt (conditional finiteness): if the abc conjecture holds, then is finite.
Significance
A resolution would settle a question open since 1876 and would be one of the rare complete solutions of a factorial Diophantine equation of this kind. The conditional finiteness result is a standard illustration of how the abc conjecture controls equations of the form .
For the formalization, the known-solutions milestone is a finite computation. The search-bound milestone is a large verified computation; a machine-checked certificate for it would be a reusable artifact. The conditional finiteness milestone formalizes a published argument that assumes the abc conjecture as a hypothesis. The goal itself is an open problem; none of these statements is known to have a machine-checked proof on this platform at the time of drafting.
Difficulty
Congruence obstructions cannot rule out large solutions: for every modulus and every one has , so is a square modulo . Local arguments alone therefore cannot close the problem. The known finiteness argument depends on the abc conjecture, which is itself unproved in the standard form used here. Computer searches only give lower bounds on any further solution.
Formalization scope
- Numbers are natural numbers (
ℕ); ranges over , so the sign of is not an issue. The factorial is Mathlib'sNat.factorial, with . - The goal is stated as an equality of sets of ordered pairs in , so it cannot be satisfied by proving only one inclusion.
- The radical is defined as the product over the prime factors of (so ; the value at never enters since ).
- The abc conjecture is a
Prop-valued definition used as a hypothesis in the conditional milestone; it is not asserted anywhere. The exponent is a real power. - Overholt's published result assumes only a weak form of abc; the milestone assumes the standard form, which implies the weak form, so the milestone is a consequence of the published result.
- All declarations live in the namespace
Brocard.
Selected references
- H. Brocard, Question 166, Nouv. Corresp. Math. 2 (1876), 287; Nouv. Ann. Math. (3) 4 (1885), 391.
- S. Ramanujan, Question 469, J. Indian Math. Soc. 5 (1913), 59.
- M. Overholt, The Diophantine equation , Bull. London Math. Soc. 25 (1993), 104.
- B. C. Berndt and W. F. Galway, On the Brocard–Ramanujan Diophantine equation , Ramanujan J. 4 (2000), 41–42.
- Erdős problem #398: https://www.erdosproblems.com/398
- Brocard's problem, Wikipedia: https://en.wikipedia.org/wiki/Brocard%27s_problem
- Formal Conjectures (Google DeepMind): https://github.com/google-deepmind/formal-conjectures