Skip to main content
OlympiadHQ

Browse · MathNet

Print

SAUDI ARABIAN MATHEMATICAL COMPETITIONS

Saudi Arabia counting and probability

Problem

In a school there are totally classes and not all of them have the same numbers of students. It is given that each class has one head student. The students in each class wear hats of the same color and different classes have different hat colors. One day all the students of the school stand in a circle facing toward the center, in an arbitrary order, to play a game. Every minute, each student puts his hat on the person standing next to him on the right. Show that at some moment, there are 2 head students wearing hats of the same color.
Solution
Suppose that there are students in total. We number the students standing in the circle by , clockwise (starting with an arbitrary student). Denote by the positions of the head students obtained in this numbering.

We consider an table and fill numbers in its cells in the following way: For each , in the row, we start with (filling in the first cell of this row with ) and continue with to the right. We will focus on the hat colors of the students in the first column.
At the first minute, each student in the first column wears his own hat.

At the second minute, based on the game rule, each student in the first column will wear the hat of the student in the same row but in the second column.

Similarly, at the minute, each student in the first column will wear the hat of the student in the same row but in the column, for each .

Suppose, on the contrary, that we could never find 2 head students (in the first column) wearing hats of the same color. This would imply that at the beginning all the students in each column also wear hats of pairwise different colors, so they belong to distinct classes. Hence, the numbers of students of classes are the same, which is a contradiction to the hypothesis.

Therefore, at some moment, there are 2 head students wearing hats of the same color.

Techniques

Counting two waysPigeonhole principle