Maths Olympiad Prep

Library / /88 of 91

Combinatorics Difficulty 8.8 Shortlist Prove it India

At an IMOTC party, all people have pairwise distinct ages. Some pairs of people are friends and friendship is mutual. Call a person junior if they are younger than all their friends, and senior if they are older than all their friends. A person with no friends is both junior and senior. A sequence of pairwise distinct people A1,,AmA_1, \dots, A_m is called photogenic if:
* A1A_1 is junior,
* AmA_m is senior, and
* AiA_i and Ai+1A_{i+1} are friends, and Ai+1A_{i+1} is older than AiA_i for all 1im11 \le i \le m-1.
Let kk be a positive integer such that for every photogenic sequence A1,,AmA_1, \dots, A_m, mm is not divisible by kk. Prove that the people at the party can be partitioned into kk groups so that no two people in the same group are friends.

Solutions — 2

Solution 1

Consider obvious graph theory interpretation, with vertices being labelled by the ages. Whenever we say an increasing path, we refer to the labels being monotonically increasing. For any vertex ww, let S(w)S(w) be the set of all m(modk)m \pmod k such that there exists an increasing path v1,v2,,vm=wv_1, v_2, \dots, v_m = w with v1v_1 being small. Thus each S(w)S(w) is a subset of Z/kZ\mathbb{Z}/k\mathbb{Z}. Further, S(w)S(w) can't be empty, because by going backwards, there is at least one increasing path starting from a small vertex that ends at ww. Moreover, S(w)Z/kZS(w) \ne \mathbb{Z}/k\mathbb{Z}, because there is an increasing path starting from ww ending at a big vertex (just by picking a larger neighbour every time), and by picking a suitable path from a small vertex to ww (whose length is the required residue modulo kk), we get a good path passing through ww whose number of vertices is divisible by kk.
We properly color the vertices in kk colors c0,c1,,ck1c_0, c_1, \dots, c_{k-1}, just based on S(w)S(w). Indeed, since S(w)S(w) is a non-empty proper subset of Z/kZ\mathbb{Z}/k\mathbb{Z}, there exists a jS(w)j \in S(w) such that j+1S(w)j+1 \notin S(w). Choose any such jj and color ww with cjc_j.
We claim that this is a proper coloring. Indeed, suppose two neighbours u,vu, v have been assigned the same color cic_i. WLOG the label of uu is smaller than the label of vv. Then, adding edge uvuv to any increasing path ending at uu, we get an increasing path ending at vv, so S(u)+1S(v)S(u)+1 \subset S(v). But vv being colored cjc_j implies j+1(modk)S(v)j+1 \pmod k \notin S(v), while uu being colored cjc_j implies jS(u)j \in S(u), which implies j+1S(u)+1S(v)j+1 \in S(u)+1 \subset S(v), contradiction! Hence the coloring is proper, as required.

Solution 2

It is easy to see that every edge is part of a photogenic sequence. We color the vertices in kk colors c0,,ck1c_0, \dots, c_{k-1} (indices modulo kk), based on the following algorithm:

Step 1: Color all juniors c1c_1.

Step 2: Pick the youngest uncolored vertex PP, and pick a color cic_i such that no friend of PP younger than PP has color cic_i, while some friend of PP younger than PP has color ci1c_{i-1}.

We can prove inductively that if PP has color cic_i, then there is a path of (vertex-)length i(modk)i \pmod k. Thus the only way Step 2 fails is if PP has neighbors younger than them of every color. But in that case there is an increasing path starting from a junior to PP with length i(modk)i \pmod k for every ii, which is impossible as seen in Solution A.

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.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.