Skip to content
Related Articles

Related Articles

GFact 23 | (Brocard’s problem)
  • Difficulty Level : Medium
  • Last Updated : 10 Oct, 2017

Brocard’s problem is to find values of m and n such that n!+1 = m2

For example, a pair (4, 5) solves the above equation. We have n = 4, m = 5. 4! + 1 = 24 + 1 = 25 = 52.

A pair (n, m) that solves above is called Brown Number. There are only three known pairs (4, 5), (5, 11), and (7, 71)

This article is contributed by Shivam Pradhan (anuj_charm). If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :