Skip to main content
OlympiadHQ

Browse · MathNet

Print

Team Selection Test for IMO 2023

Turkey 2023 counting and probability

Problem

In a school having students any student has exactly friends and if two students are not friends then they have exactly common friends. Find all possible values of .
Solution
Answer: .

Let us reformulate a more general version of the problem in terms of the graph theory: In a regular graph on vertices each vertex has a degree and if two vertices are not neighbours then they have exactly common neighbours. Find all pairs satisfying these conditions.

If then the complete graph satisfies the conditions. The answer in the remaining cases: all pairs where and are positive integers and also all pairs (if then all pairs are among pairs given by ).

Let be a vertex with neighbours . If some vertex is not a neighbour of then it is directly connected to neighbours of and hence it has exactly neighbour among remaining vertices. Therefore, all vertices in the graph have degree and consequently the number of vertices not directly connected to is even. Let us denote them by . Since we get that . Without loss of generality

for let and be neighbours. When we get a pair . Let . For any the vertices and are not neighbours and their unique neighbours among vertices are not common. Hence, and have neighbours among vertices . The same is true for and . Therefore, all these vertices are connected to the same vertices of . Without loss of generality, let be the vertex not connected to , . Since the degree of is it is directly connected to each . Therefore, for each the degree of in is . Then the graph on the vertices satisfies problem conditions with new parameters . Since , by repeating the same procedure we get that the graph contains pieces with vertices and each piece contains perfectly matching edges and all possible edges between different pieces are drawn. By denoting by and the number of pieces by we get the desired answer.

When from we get that . Therefore the possible values for are and we get . The pair yields .
Final answer
n = 2024, 2026, 2028, 2696, 4044

Techniques

Matchings, Marriage Lemma, Tutte's theorem