Maths Olympiad Prep

Library / /10 of 16

Number theory Difficulty 6.7 National olympiad Prove it Argentina

Let nn be a positive integer. Using the integers from 11 to 4n4n inclusive, pairs are to be formed such that the product of the numbers in each pair is a perfect square. Each number can be part of at most one pair, and the two numbers in each pair must be different. Determine, for each nn, the maximum number of pairs that can be formed.

Solution

For each mNm \in \mathbb{N}, let f(m)f(m) be the product of the primes that appear with odd exponent in the prime factorization of mm. It is easy to see that given two positive integers aa and bb, the product abab is a perfect square if and only if f(a)=f(b)f(a) = f(b).

For each kNk \in \mathbb{N}, let SS be the set of all mm in {1,2,,4n}\{1, 2, \dots, 4n\} such that f(m)=kf(m) = k. Note that if kk is not squarefree, then SS is empty. Also, as f(m)mf(m) \leq m for all mm, we have that each element of {1,2,,4n}\{1, 2, \dots, 4n\} belongs to exactly one of the sets S1,S2,,S4nS_1, S_2, \dots, S_{4n}.

By the initial observation each of the pairs that we are going to form must be integrated by two elements of the same SjS_j; furthermore, any way of assembling the pairs respecting that rule meets the conditions of the statement. Then, if each set SjS_j has aja_j elements, the maximum number of pairs that can be formed is a12+a22++a4n2\lfloor \frac{a_1}{2} \rfloor + \lfloor \frac{a_2}{2} \rfloor + \dots + \lfloor \frac{a_{4n}}{2} \rfloor.

We claim that aj2\lfloor \frac{a_j}{2} \rfloor is equal to the number of multiples of 44 in SjS_j. Indeed, this is obvious if SjS_j is empty; if instead jj is squarefree, the elements of SjS_j are the numbers of the form js2j \cdot s^2 with ss covering the values from 11 to aja_j. Since jj is squarefree, it has at most one factor of 22, so js2j \cdot s^2 is a multiple of 44 if and only if ss is even. Then, the number of multiples of 44 in SjS_j coincides with the number of even numbers between 11 and aja_j, which is precisely aj2\lfloor \frac{a_j}{2} \rfloor.

From the above, the sum a12+a22++a4n2\lfloor \frac{a_1}{2} \rfloor + \lfloor \frac{a_2}{2} \rfloor + \dots + \lfloor \frac{a_{4n}}{2} \rfloor matches the number of multiples of 44 among all the sets S1,S2,,S4nS_1, S_2, \dots, S_{4n}, that is, the number of multiples of 44 in {1,2,,4n}\{1, 2, \dots, 4n\}. This quantity is nn, and that is the answer to the problem.

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 and solution reproduced as published; topic and difficulty added by this site.