brocard_problem
Openconjecturediophantinediophantine-equationsfactorialsnumber-theoryperfect-squares
Brocard’s Problem: The only natural numbers for which is a perfect square are , , and .
Known solutions: , , .
Proposed by Henri Brocard (1876), rediscovered by Ramanujan (1913). Verified computationally for . Granville showed the ABC conjecture implies only finitely many solutions.
Preamble
import Mathlib
Formal statement
theorem brocard_problem :
∀ n : ℕ, (∃ m : ℕ, Nat.factorial n + 1 = m ^ 2) ↔ n = 4 ∨ n = 5 ∨ n = 7 := by
sorrySource