Skip to main content
OlympiadHQ

Browse · MathNet

Print

Local Mathematical Competitions

Romania counting and probability

Problem

Prove that given any two permutations , there exists some function such that we simultaneously have, for any indices , Dan Schwarz
Solution
We will first prove it for the even case, . Consider the graph whose set of vertices is , and with red edges between and , and blue edges between and , where (notice that multiple edges may occur).

Clearly, each vertex is incident with one red edge and one blue edge, hence all vertex degrees are equal to 2. Therefore the graph is the union of disjoint cycles. Moreover, each such cycle is of even length, since its edges must be of alternating colours (the graph is thus bipartite).

Define alternately taking values and along each of the cycles. Then the largest value any of the moduli can take is 2, when is even and is odd, since on consecutive pairs of odd/even indices the sum of the values of is zero, along either or .

When is odd, prolong to achieve the case treated in the above.

Techniques

Coloring schemes, extremal arguments