{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
Five people sit in a row of $5$ chairs. Alice refuses to sit next to Bob, and Carla refuses to sit next to Derek. How many seating arrangements are possible?
By inclusion–exclusion: there are $5!=120$ arrangements, $2\cdot4!=48$ with Alice next to Bob, $48$ with Carla next to Derek, and $2\cdot2\cdot3!=24$ with both.