MathDB
2012-2013 Winter OMO #37

Source:

January 16, 2013
Online Math OpeninductionLaTeXgraph theory

Problem Statement

Let MM be a positive integer. At a party with 120 people, 30 wear red hats, 40 wear blue hats, and 50 wear green hats. Before the party begins, MM pairs of people are friends. (Friendship is mutual.) Suppose also that no two friends wear the same colored hat to the party.
During the party, XX and YY can become friends if and only if the following two conditions hold: [*] There exists a person ZZ such that XX and YY are both friends with ZZ. (The friendship(s) between Z,XZ,X and Z,YZ,Y could have been formed during the party.) [*] XX and YY are not wearing the same colored hat.
Suppose the party lasts long enough so that all possible friendships are formed. Let M1M_1 be the largest value of MM such that regardless of which MM pairs of people are friends before the party, there will always be at least one pair of people XX and YY with different colored hats who are not friends after the party. Let M2M_2 be the smallest value of MM such that regardless of which MM pairs of people are friends before the party, every pair of people XX and YY with different colored hats are friends after the party. Find M1+M2M_1+M_2. [hide="Clarifications"]
[*] The definition of M2M_2 should read, ``Let M2M_2 be the smallest value of MM such that...''. An earlier version of the test read ``largest value of MM''.
Victor Wang