Skip to content
Tutorials Center
My learning

Topics

Lesson 69 of 86 ยท Puzzles and Arrangements

Circular and Square Seating Arrangements

Solve round-table, square-table and rectangular-table seating puzzles. Learn how facing in or out flips left and right, then check answers with a solver.

Put the same group of people around a table instead of in a row and the puzzle changes in two ways. First, there are no ends, so the layout can rotate and "the first seat" has to be chosen by you. Second, left and right depend on whether a person faces the center or faces outward. Almost every wrong answer in this chapter comes from one of those two points.

In this lesson you learn a rule for left and right that never fails, how to pin down a rotating layout, how square and rectangular tables work, and how to check a puzzle with a program. If you have not seen row puzzles yet, read Linear Seating Arrangements first; the same method applies here.

Left and right around a circle

Imagine looking down at a round table from above. Walk around the table clockwise (the direction of a clock's hands).

  • A person facing the center has their left hand pointing clockwise. So the immediate left of such a person is the next person clockwise, and the immediate right is the next person anticlockwise.
  • A person facing outward is turned around: the immediate left is the next person anticlockwise, and the immediate right is the next person clockwise.

You can check this with your own body: stand at the south side of a table facing north (the center). Your left hand is west. Going clockwise from the south seat you move toward the west. So your left neighbor is the clockwise one.

flowchart TB
    subgraph IN["Facing the center"]
        direction LR
        i1["Left = next clockwise"] --- i2["Right = next anticlockwise"]
    end
    subgraph OUT["Facing outward"]
        direction LR
        o1["Left = next anticlockwise"] --- o2["Right = next clockwise"]
    end

Facing in and facing out swap the meaning of left and right relative to the clockwise direction.

Other words you will meet:

  • Opposite (or "facing each other") in a circle of n equally spaced people means n/2 seats away, so n must be even.
  • Between A and B usually means the person is an immediate neighbor of both (the single seat in the gap when A and B are two apart).
  • Second to the left means two seats along in the "left" direction for that person.
  • When counting people between two persons, there are two arcs. "Shortest distance" uses the smaller arc; a clue like "three people between A and B" in a circle of 8 can only be read one way if the other arc would hold 3 as well. Always check which arc a puzzle means.

Pinning down a rotating layout

If all eight people move one seat round the table together, the picture is the same table. So you are free to place one person anywhere: choose the person who appears in the most clues, call that seat 0, and number the others clockwise. This is the circular equivalent of a row's "position 1".

Then the method is the same as for a row: anchors first (opposite, immediate neighbors), then chains, then negative clues, then a full check.

Worked puzzle 1: eight people, all facing the center

Eight people A to H sit around a round table facing the center. Clues:

  1. F sits opposite A.
  2. D sits immediately to the left of A.
  3. G sits between D and B (an immediate neighbor of both).
  4. E sits immediately to the right of A.
  5. H is an immediate neighbor of E.

Fix A at seat 0 and number seats 0 to 7 clockwise.

  • Clue 1: opposite is four seats away, so F is at seat 4.
  • Clue 2: everyone faces the center, so left means clockwise: D is at seat 1.
  • Clue 3: G must touch D. D's neighbors are seat 0 (A) and seat 2, so G is at seat 2. B is on the other side of G, seat 3.
  • Clue 4: right means anticlockwise: E is at seat 7.
  • Clue 5: E's neighbors are seat 6 and seat 0 (A), so H is at seat 6.
  • Only seat 5 is left, for C.

Reading clockwise from A: A, D, G, B, F, C, H, E.

flowchart LR
    A["A"] --> D["D"] --> G["G"] --> B["B"] --> F["F"] --> C["C"] --> H["H"] --> E["E"] --> A

Clockwise order around the table; the arrow from E goes back to A, so the picture closes into a circle.

A solver for circles

The program below fixes the first person at seat 0 (that is what removes the rotation), then tries every ordering of the others. Facing is a function of the person and the seat, so the same code handles everyone facing the center, mixed facings and square tables. The helper leftSeat(s, who, k) returns the seat k places to the left of a person, using that person's own facing.

JS Circular solver: everyone faces the center

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Mixed facing: some in, some out

When some people face the center and others face outward, the same clue reads differently for different people. The trick is the same as in a row with mixed directions: write the facing next to every name before you place anything, and translate each left/right clue using the subject's facing, not the object's.

Worked puzzle 2. Six people A to F sit around a circular table. A, C and E face the center; B, D and F face outward. Clues:

  1. B sits immediately to the left of A.
  2. C sits opposite B.
  3. D sits immediately to the right of C.
  4. E is a neighbor of A but not of B.

Fix A at seat 0 (facing in, so left is clockwise). Clue 1: B is at seat 1. Clue 2: opposite in a circle of 6 is three seats away, so C is at seat 4. Clue 3: C faces in, so its right is anticlockwise, seat 3: D is at seat 3. Clue 4: A's neighbors are seats 1 (B) and 5, so E is at seat 5. F takes seat 2.

Clockwise from A: A, B, F, D, C, E. A good sanity check is to test a fact that was not a clue: F faces outward, so F's immediate left is anticlockwise, seat 1, which is B. The solver below confirms the unique arrangement and runs that extra check.

Square and rectangular tables

A square table with eight people usually has four at the corners and four at the midpoints of the sides. Because the corners and sides alternate, you can model it exactly like a circle of 8 seats, with seat 0, 2, 4, 6 at the corners and seats 1, 3, 5, 7 at the middles. The puzzle will state who faces where. A common version: corner people face the center and middle people face outward, so left and right alternate between "clockwise" and "anticlockwise" as you walk around.

Worked puzzle 3 (square table). Eight people A to H sit at a square table. A, B, C and D sit at the corners and face the center; E, F, G and H sit at the middles of the sides and face outward. Clues:

  1. C sits second to the left of A.
  2. B sits opposite A.
  3. E sits between A and C.
  4. H sits immediately to the left of D.
  5. F sits between C and B.

Fix A at seat 0. Corners are the even seats. Clue 1: A faces in, so left is clockwise, seat 2 for C. Clue 2: opposite is seat 4 for B. D takes the last corner, seat 6. Clue 3: E is in the gap between seat 0 and seat 2, seat 1. Clue 5: F is between seats 2 and 4, seat 3. Clue 4: D faces the center, so its left is clockwise, seat 7, and H sits there. G takes seat 5.

Clockwise: A, E, C, F, B, G, D, H.

JS Mixed facing and a square table

Press Run (or Ctrl + Enter) to see the console output here.

No output.

A rectangular table works the same way but you track sides rather than seat numbers. Take six people P to U with three on each long side, everybody facing the table. On the north side (facing south) a person's left is east; on the south side (facing north) a person's left is west.

Worked puzzle 4. P sits in the middle of the north side. Q sits opposite P. R sits immediately to the left of P. S sits immediately to the left of Q. T sits opposite R. Solve: P faces south, so left is east, and R is at the east end of the north side. Q is opposite P, in the middle of the south side. Q faces north, so left is west: S is at the west end of the south side. T is opposite R, at the east end of the south side. U takes the last seat, at the west end of the north side.

Side West Middle East
North (facing south) U P R
South (facing north) S Q T

Check: U is opposite S, as it must be, since the west seats face each other.

Never copy "left means clockwise" onto a puzzle where people face outward, and never use one person's facing to translate another person's clue. A clue about X's left uses X's facing.

Common traps

  • Forgetting that the table rotates. If you fix A at the top, other answers are relative. Only relative questions ("who sits second to the left of D?") are meaningful.
  • Using the wrong arc. "Between A and B" in a circle can mean either arc; puzzles normally mean the shorter one or the one that holds exactly the named people.
  • Odd tables. With an odd number of people nobody sits exactly opposite anyone.
  • Mixing up your drawing with the person's view. When in doubt, put a small arrow on each person in the drawing showing the facing direction.

Next you will look at stacks and schedules, where the "seats" are floors, boxes and days.

Check your understanding

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. All people at a round table face the center. Who is the immediate left of a person?

    Facing the center, a person's left hand points the clockwise way, so the immediate left neighbor is the next person clockwise.
  2. 2. Ten equally spaced people sit around a round table. A sits at seat 3 (seats numbered 0 to 9 clockwise). Which seat is opposite A?

    Opposite is n/2 = 5 seats away: 3 + 5 = 8.
  3. 3. In worked puzzle 1 the clockwise order is A, D, G, B, F, C, H, E and everyone faces the center. Who sits third to the right of A?

    Facing the center, right means anticlockwise. From A going anticlockwise the people are E, H, C, so the third is C.
  4. 4. Everyone faces outward and A sits immediately to the left of B. From above, in which direction from B is A?

    Facing outward, left is the anticlockwise side, so A is the next person anticlockwise from B.
  5. 5. In worked puzzle 4 (the rectangular table), who sits opposite U?

    U is at the west end of the north side, and S is at the west end of the south side, so they face each other.

Summary

  • Facing the center, left is clockwise and right is anticlockwise; facing outward, the two swap.
  • Fix one person at seat 0 to remove the rotation; only relative questions have a single answer.
  • Opposite means n/2 seats away; "between A and B" normally means the neighbor of both.
  • Translate every left or right clue using the facing of the person it is about, and write each person's facing before you start.
  • A square table is a circle of 8 with alternating corner and middle seats; a rectangular table is tracked by sides.

Next: Floor, Box, Day and Scheduling Puzzles.