Skip to main content
OlympiadHQ

Browse · MathNet

Print

48th International Mathematical Olympiad Vietnam 2007 Shortlisted Problems with Solutions

2007 counting and probability

Problem

Find all positive integers , for which the numbers in the set can be colored red and blue, with the following condition being satisfied: the set contains exactly ordered triples such that (i) are of the same color and (ii) is divisible by .
Solution
Suppose that the numbers are colored red and blue. Denote by and the sets of red and blue numbers, respectively; let and . Call a triple monochromatic if have the same color, and bichromatic otherwise. Call a triple divisible if is divisible by . We claim that there are exactly divisible monochromatic triples.

For any pair there exists a unique such that the triple is divisible; so there are exactly divisible triples. Furthermore, if a divisible triple is bichromatic, then among there are either one blue and two red numbers, or vice versa. In both cases, exactly one of the pairs and belongs to the set . Assign such pair to the triple .

Conversely, consider any pair , and denote . Since , the triples and are distinct, and is assigned to each of them. On the other hand, if is assigned to some triple, then this triple is clearly one of those mentioned above. So each pair in is assigned exactly three times.

Thus, the number of bichromatic divisible triples is three times the number of elements in , and the number of monochromatic ones is , as claimed.

So, to find all values of for which the desired coloring is possible, we have to find all , for which there exists a decomposition with . Therefore, . From this it consequently follows that , and then . Set . We can assume that . We have .

Furthermore, so and . If then which is impossible for an integer . In a similar way, if then , which is also impossible. Finally, if then , and the solutions are and . Hence, or , and the possible values of are and .
Final answer
69, 84

Techniques

Counting two waysColoring schemes, extremal argumentsTechniques: modulo, size analysis, order analysis, inequalities