Illustration 1 for Ozanam’s Dinner Puzzle: Seven Friends and Seventeenth-Century Combinatorics
· Source

Ozanam’s puzzle, or the problem of seven friends at dinner, has become a classical example in combinatorics.

The French mathematician Jacques Ozanam (1640–1718) first formulated it in his famous Mathematical and Physical Recreations, the four encyclopedic volumes of Récréations mathématiques et physiques (1694).

This was one of the earliest systematic collections of mathematical recreations and went through at least ten new editions. It anticipated most books on recreational mathematics over the next two centuries.

The problem:

“Seven friends gather for dinner but argue about the seating. To resolve the dispute, they agree to change their seating order until they have tried every possibility. How many times must they dine together to exhaust all combinations?”

The seven-friends problem belongs to combinatorics, the branch of mathematics studying discrete structures, their arrangements and combinations. Specifically, it concerns permutations: the different ways to order the elements of a set. For n elements, the number of possible permutations is n!, or n factorial.

For seven friends, the number of seating arrangements is therefore:

7! = 7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1 = 5040

The friends would thus need 5040 dinners to try every arrangement. Ozanam gave precisely this answer, stating that it would take 5040 : 365 ≈ 13,8 years.

He assumed linear seating, with 7 seats in a row along one side of the table, characteristic of formal XVII-century dinners where guests sat according to rank. In later editions (1723), however, his successors added a round-table version. Round tables were associated with informal gatherings.

The table’s shape and seating method radically change the mathematics of the problem.

For a round table without identifying mirror images, proceed as follows:

Fix one person to exclude rotations, which do not create new arrangements. The remaining 6 places can be filled in 6! = 720 ways. This is the standard modern approach.

For a round table with mirror symmetry taken into account, where clockwise and anticlockwise arrangements are considered identical, divide again by 2: 6!/2 = 360 permutations. In this case, just one year would suffice for the friends to try them all.

We have already offered a similar problem about seating seven friends at a round table, from Henry E. Dudeney’s The Canterbury Puzzles, but its conditions were different.