There are 8 identical chairs around a circular table. In how many ways can 5 people be seated in 5 of these chairs if Richard wants to sit next to Surya, but doesn't want to sit next to Tamas?

(Consider two seating arrangements to be the same if one seating arrangement can be rotated to obtain the other.)

there is 8! ways to seat the 5 people but that does not fit the requirement of the question

Guest Aug 9, 2022