Skip to main content
OlympiadHQ

Browse · MathNet

Print

XXIX Rioplatense Mathematical Olympiad

Argentina number theory

Problem

Let be a positive integer. Using the integers from to 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 , the maximum number of pairs that can be formed.
Solution
For each , let be the product of the primes that appear with odd exponent in the prime factorization of . It is easy to see that given two positive integers and , the product is a perfect square if and only if .

For each , let be the set of all in such that . Note that if is not squarefree, then is empty. Also, as for all , we have that each element of belongs to exactly one of the sets .

By the initial observation each of the pairs that we are going to form must be integrated by two elements of the same ; furthermore, any way of assembling the pairs respecting that rule meets the conditions of the statement. Then, if each set has elements, the maximum number of pairs that can be formed is .

We claim that is equal to the number of multiples of in . Indeed, this is obvious if is empty; if instead is squarefree, the elements of are the numbers of the form with covering the values from to . Since is squarefree, it has at most one factor of , so is a multiple of if and only if is even. Then, the number of multiples of in coincides with the number of even numbers between and , which is precisely .

From the above, the sum matches the number of multiples of among all the sets , that is, the number of multiples of in . This quantity is , and that is the answer to the problem.
Final answer
n

Techniques

OtherColoring schemes, extremal argumentsIntegers