Sub topic 10
Circular Arrangements
This chapter assumes you know factorials, nPr and nCr, and the multiplication principle from earlier chapters. It covers how to count arrangements around a round table, where rotations of the same seating are the same arrangement.
Why circles need a different formula
In a row, positions are distinct: seat 1, seat 2, and so on. At a round table with no marked starting seat, only the relative positions matter. If everyone shifts one seat clockwise, each person still has the same left and right neighbours, so the arrangement has not changed.
For n distinct people there are n! row arrangements. Each circular arrangement shows up as n rotations of itself among those n! row arrangements. So the number of distinct circular arrangements is:
(n − 1)! = n! / n
A second way to see this is to fix one person's seat as the reference point. The remaining n − 1 people can then be placed in (n − 1)! ways.
Worked example: basic circle
Seat 6 people around a round table. The count is (6 − 1)! = 5! = 120.
You can check this with code.
import math
def circular(n):
# Distinct arrangements of n distinct objects in a circle
return math.factorial(n - 1)
print(circular(6)) # 120
print(math.factorial(6) // 6) # 120, same as n!/nClockwise versus anticlockwise
The formula (n − 1)! treats a clockwise order and its mirror image (anticlockwise) as different. This is the right count for people seated at a table, because each person's left neighbour and right neighbour are different.
For necklaces, garlands and bracelets, the object can be flipped over. Then an arrangement and its mirror image are the same, and you divide by 2:
(n − 1)! / 2
This applies when n is at least 3. For n = 1 or 2, flipping gives nothing new.
| Situation | Count for n distinct objects |
|---|---|
| People around a table | (n − 1)! |
| Beads on a necklace, flowers in a garland | (n − 1)! / 2 |
| Keys on a ring | (n − 1)! / 2 |
Selecting first, then arranging
Often you must choose r people from n and seat them at a round table. Choose first, then arrange the chosen group in a circle:
nCr × (r − 1)!
Equivalently, this is nPr / r. Each circular arrangement of r chosen people corresponds to r different ordered selections of r people.
Example: choose 4 people from 7 and seat them at a round table. The count is 7C4 × 3! = 35 × 6 = 210. Also 7P4 / 4 = 840 / 4 = 210.
import math
n, r = 7, 4
print(math.comb(n, r) * math.factorial(r - 1)) # 210
print(math.perm(n, r) // r) # 210Restrictions in a circle
The restriction techniques from the earlier chapter still apply. The key is to anchor the circle first.
Two people together
Treat the pair as one block. With n people, there are n − 1 units, giving (n − 2)! circular arrangements. The two people can swap inside the block in 2 ways.
Count = 2 × (n − 2)!
Example: 6 people around a table, with A and B adjacent. Count = 2 × 4! = 48.
Two people never together
Use the complement method. Total minus together:
(n − 1)! − 2 × (n − 2)!
For n = 6: 120 − 48 = 72.
An alternative is to seat the other n − 2 people first, which gives (n − 3)! circular arrangements. That leaves n − 2 gaps between them. Place A and B in two different gaps in (n − 2)(n − 3) ways. The product is (n − 3)! × (n − 2)(n − 3). For n = 6: 6 × 4 × 3 = 72. Both methods agree.
import math
n = 6
together = 2 * math.factorial(n - 2)
apart = math.factorial(n - 1) - together
print(together, apart) # 48 72
# Gap method
gap = math.factorial(n - 3) * (n - 2) * (n - 3)
print(gap) # 72Men and women alternating
Suppose m men and m women sit alternately at a round table. Seat the men first in a circle in (m − 1)! ways. This creates m gaps, one between each pair of neighbouring men. The women fill these gaps in m! ways.
Count = (m − 1)! × m!
Example: 4 men and 4 women alternate. Count = 3! × 4! = 6 × 24 = 144.
If there are m men and m − 1 women... that case cannot alternate around a full circle, because the gaps number m and each needs one woman. Check that the counts match before you apply the formula.
Specific seat or position is fixed
If the problem fixes one person's seat or distinguishes the seats (for example, seats are numbered), the circle has no rotation symmetry. Treat it as a straight line and use n!.
Circles with identical objects
If some objects are identical, divide out the repeats, but only after confirming the rotations cannot map an arrangement to itself in a way that breaks the simple formula. For a CAT-level problem, the usual safe approach is to fix one distinct object as the reference and arrange the rest as in a line.
Example: arrange 3 identical red beads and 1 blue bead... these are 4 positions. Fix the blue bead. The remaining 3 identical red beads fill the other 3 places in 1 way. Count = 1.
Example: 2 identical red and 3 distinct other beads on a circular wire (no flipping). Fix one distinct bead. The remaining 4 objects, with 2 identical, arrange in 4!/2! = 12 ways. Count = 12.
A general verification by code
When unsure, brute-force a small case. This code counts circular arrangements by treating a row as equivalent to any of its rotations.
from itertools import permutations
def circular_count(items):
seen = set()
for p in permutations(items):
# Canonical form: smallest rotation
rotations = [p[i:] + p[:i] for i in range(len(p))]
seen.add(min(rotations))
return len(seen)
print(circular_count("ABCD")) # 6 = 3!
print(circular_count("ABCDE")) # 24 = 4!
print(circular_count("AABC")) # 3The last line shows the identical-object case. With letters A, A, B, C, fixing B gives 3!/2! = 3 arrangements of the others, which matches.
Common errors
- Using n! when seats are not distinguishable. The result is n times too large.
- Using (n − 1)! / 2 for people at a table. Reflection matters for seated people.
- Forgetting that a pair treated as a block still has an internal order of 2 ways.
- In the alternating case, not checking that the number of gaps equals the number of people to place.
- Dividing by r when choosing r from n and then also applying (r − 1)!. Use one or the other.
Exam shortcut
- Decide whether rotations are the same. If yes, anchor one object.
- Decide whether reflection is the same. Only for necklaces and similar.
- Apply restrictions around the anchor.
- Check with a small case, such as n = 3 or n = 4.
Exercise
Eight people, including a married couple, sit at a round table. In how many ways can they sit so that the couple is not adjacent?
Show answer
Total = 7! = 5040. Couple together = 2 × 6! = 1440. Not adjacent = 5040 − 1440 = 3600.
Exercise
How many different necklaces can be made from 7 distinct beads?
Show answer
A necklace can be flipped, so the count is (7 − 1)! / 2 = 720 / 2 = 360.
Exercise
Five men and five women sit alternately around a round table. How many arrangements are there?
Show answer
Seat the men in a circle: 4! = 24 ways. The five women fill the five gaps in 5! = 120 ways. Total = 24 × 120 = 2880.
Exercise
From 8 people, choose 5 and seat them at a round table. How many ways are there?
Show answer
8C5 × (5 − 1)! = 56 × 24 = 1344. Check: 8P5 / 5 = 6720 / 5 = 1344.