Problem:
Five people are at a party. Each pair of them are friends, enemies, or frenemies (which is equivalent to being both friends and enemies). It is known that given any three people , , :
- If and are friends and and are friends, then and are friends;
- If and are enemies and and are enemies, then and are friends;
- If and are friends and and are enemies, then and are enemies.
How many possible relationship configurations are there among the five people?
, 2019
Solution
Solution:
If and are frenemies, then regardless of whether another person is friends or enemies with , will have to be frenemies with and vice versa. Therefore, if there is one pair of frenemies then all of them are frenemies with each other, and there is only one possibility.
If there are no frenemies, then one can always separate the five people into two possibly "factions" (one of which may be empty) such that two people are friends if and only if they belong to the same faction. Since the factions are unordered, there are ways to assign the "alignments" that each gives a unique configuration of relations. So in total there are possibilities.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.