Brocard's equation for : only
ProvedBrocard.berndt_galway_block_0number-theory
Let and be natural numbers with . If
then .
This is the first of ten blocks of length into which the Berndt–Galway search range for Brocard's equation is divided. It contains the three known solutions , , , and asserts that there are no others in this block.
Preamble
import Mathlib.Data.Nat.Factorial.Basic
Formal statement
namespace Brocard
theorem berndt_galway_block_0 (n m : ℕ) (hn : n < 10 ^ 8)
(h : Nat.factorial n + 1 = m ^ 2) : n = 4 ∨ n = 5 ∨ n = 7 := by sorry
end BrocardSource
B. C. Berndt and W. F. Galway, On the Brocard–Ramanujan Diophantine equation n! + 1 = m^2, Ramanujan J. 4 (2000), 41–42 (computer search for n < 10^9); one of ten blocks of the milestone Brocard.berndt_galway_search.