Brocard–Ramanujan problem

Still openEvidence checked

Subjects: Number theory

Collections: Primes and integers · Diophantine equations

Reading depth

The problem

Multiply 1×2×3×41\times2\times3\times4 to get 24, then add one: 24+1=25=5224+1=25=5^{2}. Multiplying all positive integers through n gives its factorial, written n!n!. Brocard–Ramanujan asks when this product plus one is a perfect square, the product of a whole number with itself.

The known successes are n equal to 4, 5 and 7, giving squares of 5, 11 and 71. Are there any other positive integer inputs? The question covers all of them, however large.[1]

Scope

Find all positive integer pairs (n,m) satisfying n!+1=m². The known pairs are (4,5), (5,11) and (7,71).

What remains open

No proof excludes every further positive integer solution.[1]

Why it matters

Factorials collect every small factor into one product, while squares use the same integer twice. Being exactly one apart brings these very different patterns together. The problem tests how adding a single unit can change a number's multiplicative structure.[1]

Definitions

3 terms
factorial

The product of all positive integers through n, written n!n!. For example, 4!=1×2×3×4=244!=1\times2\times3\times4=24.[1]

perfect square

An integer of the form m2m^{2}, obtained by multiplying an integer m by itself. The problem uses positive integer m.[1]

prime-power

A product of repeated copies of one prime. Counting how many copies divide an integer measures its prime-power divisibility.[1]

Sources

  1. On Brocard’s problem with Padovan and Perrin numbers Eric F. Bravo · 2026-06-26
    Notes on On Brocard’s problem with Padovan and Perrin numbers

    States the integer equation and known examples; sequence-restricted results do not exclude all other integer square roots.

  2. Brocard-Ramanujan problem for polynomials over finite fields Wataru Takeda
    Notes on Brocard-Ramanujan problem for polynomials over finite fields

    Selected primary abstract describes a polynomial Carlitz-factorial analogue. Its different number system does not settle the unrestricted integer equation.

Related problems

Suggest a correction