Maths Olympiad Prep

Library / Bulgarian National Mathematical Olympiad /11 of 15

Bulgarian National Mathematical Olympiad

Combinatorics Difficulty 6.5 National Olympiad Prove it Bulgaria

Let MM be a set of 20172017 positive integers. For every non-empty A⊂MA \subset M we define
f(A)={x∈M:x is divisible by odd number of elements of A}. f(A) = \{x \in M : x \text{ is divisible by odd number of elements of } A\}.
Find the minimum number of colors such that it is possible to paint all nonempty subset of MM in such a way that whenever A≠f(A)A \neq f(A), the sets AA and f(A)f(A) are in different colors.

Solution

We first prove that the function ff is injective, i.e. A≠BA \neq B implies f(A)≠f(B)f(A) \neq f(B). Let aa be the smallest number which belongs to exactly one of the sets AA and BB. We can assume, a∈Aa \in A, a∉Ba \notin B. Let C={b1,b2,…,bm}C = \{b_1, b_2, \dots, b_m\} be the set (possibly empty) of the numbers from BB which divide aa. Then the definition of aa yields that the numbers from AA which divide aa are exactly aa and the numbers from CC. This means that aa belongs to exactly one of the sets f(A)f(A) and f(B)f(B), i.e. f(A)≠f(B)f(A) \neq f(B).

Consider now the directed graph GG with vertices the nonempty subsets of MM and edges (A,f(A))(A, f(A)) (direction from AA to f(A)f(A)) iff A≠f(A)A \neq f(A). It follows from the above that every vertex of GG is either isolated or it is a tail and a head of exactly one edge. Therefore GG can be partitioned into cycles.

We will prove that all cycles in GG have even length, whence it follows that two colors are enough. Let (A1,A2,…,Am,A1)(A_1, A_2, \dots, A_m, A_1) be a cycle of length m≥2m \ge 2. Let {a1,a2,…,ak}=⋃i=1mAi\{a_1, a_2, \dots, a_k\} = \bigcup_{i=1}^m A_i, where a1<a2<⋯<aka_1 < a_2 < \dots < a_k. It is clear that a1∈Aia_1 \in A_i for every i=1,2,…,mi = 1, 2, \dots, m. Let tt be the smallest number such that there exists ii such that at∉Aia_t \notin A_i. There exists index jj such that at∉Aja_t \notin A_j, but at∈Aj+1a_t \in A_{j+1}. This implies that ata_t has odd number of divisors among a1,…,at−1a_1, \dots, a_{t-1}. Then at∈Aj−1a_t \in A_{j-1} and so on, i.e. the ata_t alternate, whence we conclude that the cycle's length is even.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

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