Seven chairs are numbered 1 through 7 clockwise around a round table, and seven students are also numbered 1 through 7. In how many ways can the students be seated so that no student i sits in chair i or in the chair immediately clockwise from chair i? (Chair 1 is immediately clockwise from chair 7.)
Solution ApproachShowHide
Step-by-step approach
This is a problem of counting permutations avoiding two forbidden positions per element on a circular arrangement. Use inclusion-exclusion over the 14 forbidden (student, chair) pairs.
Ready for more competition problems?
Practice the full SolveFire course and compete in ranked math battles — free to play.