Skip to main content
OlympiadHQ

Browse · MathNet

Print

58th Ukrainian National Mathematical Olympiad

Ukraine counting and probability

Problem

There are several gentlemen in the club. Every two are either friends, or enemies. It is known that each of the gentlemen has exactly enemies. In addition, for each of them, the enemy of his friend is his enemy. How many gentlemen can be present at the club?
Solution
Note that the condition implies that each of the gentlemen has equal number of friends. Let denote the number of gentlemen in the club. Each of them has exactly enemies, therefore exactly friends.

Consider a single gentleman . Let denote his enemies. Since each friend of is also an enemy of , then has no more than three friends, since has exactly enemies and no more than that. Consider the following cases.

Case 1. has friends. Let us denote them by . In this case, there are total gentlemen in the club, and this situation is possible when each two of gentlemen are friends, each two of gentlemen are also friends, and each pair and are enemies.

already have enemies, which means they must be friends with each other. Consider gentleman . Without loss of generality, we can state that his friends are . Analogous to the above, we show that are friends. Then, does not have any friends. Which makes this case impossible.

Case 2. has friends. Let us denote them by . Then the club has the total of gentlemen. Notice that each of the friends of is the enemy of . Then each of the gentlemen ...

Case 3. has friend. Then the total number of gentlemen in the club is . This case is possible. For example, let the pairs , and be pairs of friends. All the rest are enemies to each other. It is easy to see that this example satisfies the condition.

Case 4. has no friends. Then gentlemen, all of which are the enemies of one another, satisfy the condition of the problem.
Final answer
5, 6, 8

Techniques

Graph Theory