Maths Olympiad Prep

Track / Stage 7 / 231 of 300 #1631 of 1964

Problem 1631

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.5 Prove it

For 2n2n positive integers a matching (i.e. dividing them into nn pairs) is called {\it non-square} if the product of two numbers in each pair is not a perfect square. Prove that if there is a non-square matching, then there are at least n!n! non-square matchings.
(By n!n! denote the product 123n1\cdot 2\cdot 3\cdot \ldots \cdot n.)

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

1. Define Good and Bad Pairs:
We define a pair (i,j)(i, j) as "good" if iji \cdot j is a perfect square, and "bad" otherwise. Let our initial numbers be a1,a2,,a2na_1, a_2, \ldots, a_{2n}. Suppose we have a non-square matching S1=(a1,a2),S2=(a3,a4),,Sn=(a2n1,a2n)S_1 = (a_1, a_2), S_2 = (a_3, a_4), \ldots, S_n = (a_{2n-1}, a_{2n}).

2. Key Claim:
If we take any two pairs, say the first two pairs, then either both (a1,a3)(a_1, a_3) and (a2,a4)(a_2, a_4) are good, or both (a1,a4)(a_1, a_4) and (a2,a3)(a_2, a_3) are good.

3. Proof of the Claim:
Assume the contrary. Without loss of generality (WLOG), suppose (a1,a3)(a_1, a_3) is bad. If both (a1,a3)(a_1, a_3) and (a1,a4)(a_1, a_4) are bad, then (a3,a4)(a_3, a_4) must be good, which contradicts the assumption that (a3,a4)(a_3, a_4) is part of a non-square matching. Similarly, if both (a1,a3)(a_1, a_3) and (a2,a3)(a_2, a_3) are bad, then (a1,a2)(a_1, a_2) must be good, which again contradicts the assumption. Therefore, the claim is proved.

4. Induction Hypothesis:
We will use induction to prove the statement. The base case for n=1n = 1 is trivial since there is only one pair, and it is given to be a non-square matching.

5. Inductive Step:
Assume the statement is true for n1n-1. From the claim, for each good pair Si,SjS_i, S_j, we can create new good pairs Si,SjS'_i, S'_j such that SiSj=SiSjS_i \cup S_j = S'_i \cup S'_j.

6. Constructing New Matchings:
Let's make a new match for a1a_1 from the set SiS_i, i1i \neq 1. The remaining numbers can form at least (n1)!(n-1)! matchings. Thus, we get (n1)(n1)!(n-1) \cdot (n-1)! new matchings, which equals n!(n1)!n! - (n-1)!.

7. Fixing Pairs and Continuing:
Now fix S1S_1 and do the same for a3a_3. Similarly, we will get at least (n1)!(n2)!(n-1)! - (n-2)! new matchings. Continue this process until the end. So we will get at least (n!(n1)!)+((n1)!(n2)!)++(2!1!)=n!1(n! - (n-1)!) + ((n-1)! - (n-2)!) + \cdots + (2! - 1!) = n! - 1 new matchings.

8. Adding the Initial Matching:
Including the initial matching S1,S2,,SnS_1, S_2, \ldots, S_n, we get at least n!1+1=n!n! - 1 + 1 = n! matchings.

\blacksquare

The final answer is n! \boxed{ n! }

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.