Seating arrangement formulas
How many ways a group can sit, in a row or round a table, with the formula, a worked example and a table for 3 to 10 people.
Work one out
How many ways in a row, and round a table?
In a row, n people sit in n! ways. Round a table, fix one person, since turning everyone one seat on changes nothing: (n − 1)!. When clockwise and anticlockwise count as one, as with beads, halve it.
| People | In a row | Round a table | As beads |
|---|---|---|---|
| 3 | 6 | 2 | 1 |
| 4 | 24 | 6 | 3 |
| 5 | 120 | 24 | 12 |
| 6 | 720 | 120 | 60 |
| 7 | 5,040 | 720 | 360 |
| 8 | 40,320 | 5,040 | 2,520 |
| 9 | 362,880 | 40,320 | 20,160 |
| 10 | 3,628,800 | 362,880 | 181,440 |
What if two people must sit together, or apart?
Tie the two into one block, which can face two ways: 2 × (n − 1)! in a row, 2 × (n − 2)! round a table. Apart is all minus together.
| People | Row, together | Row, apart | Round, together | Round, apart |
|---|---|---|---|---|
| 3 | 4 | 2 | 2 | 0 |
| 4 | 12 | 12 | 4 | 2 |
| 5 | 48 | 72 | 12 | 12 |
| 6 | 240 | 480 | 48 | 72 |
| 7 | 1,440 | 3,600 | 240 | 480 |
| 8 | 10,080 | 30,240 | 1,440 | 3,600 |
| 9 | 80,640 | 282,240 | 10,080 | 30,240 |
| 10 | 725,760 | 2,903,040 | 80,640 | 282,240 |
And men and women in turn?
In a row the men take every other seat from either end, then each group is arranged. Round a table, seat the men, then the women in the k gaps.
| Men and women | In a row: 2 × k! × k! | Round a table: (k − 1)! × k! |
|---|---|---|
| 2 and 2 | 8 | 2 |
| 3 and 3 | 72 | 12 |
| 4 and 4 | 1,152 | 144 |
| 5 and 5 | 28,800 | 2,880 |
| 6 and 6 | 1,036,800 | 86,400 |
How do we know these are right?
Our checks hold each formula to a count of every arrangement, one by one, for groups of up to 7. Puzzles to go with them: the generator.