Skip to main content
OlympiadHQ

Browse · MathNet

Print

IMO2024 Shortlisted Problems

2024 algebra

Problem

Let denote the set of positive integers. Let be a function satisfying the following property: for , the equation holds if and only if and are coprime. For each positive integer , determine all the possible values of .
Solution
- From , we have , so . - From , we have , so . - From , we have , which simplifies to , so . - From we deduce for all . - From we deduce for all . - Simplifying , we have that if and only if and are coprime; refer to this as . - From , we have that if and only if and are coprime; refer to this as .

Claim. If , then . Proof. If , then gives . If , then both sides simplify to 1, a contradiction.

Claim. If then . Proof. If , then gives , and gives , which together yield for a contradiction.

Claim. For all we have . Proof. For any prime , write , with . From we have . Since , it follows that , so , and thus .

Claim. If is coprime to , then is coprime to . Proof. From we have ; applying to the LHS, we conclude that . Applying we deduce that is coprime to , as required.

Claim. If is prime then is a power of . Proof. Suppose otherwise. We know that ; let be another prime with . If, for some positive integer , we have , then is coprime to , so , so ; thus, if , then (and in particular, , by taking ). Similarly, if then is coprime to ; as , this means , so . So if , then . Together with , this means that for any not coprime to , we have . Let is not coprime to , and let be a positive integer not coprime to such that . The argument above shows . We can write , where and . Since we have . Applying gives . The RHS is divisible by but the LHS is only divisible by , yielding a contradiction.

Claim. For any integer . Proof. We already have that , so it remains only to show that no other primes divide . If is prime and , the previous Claim shows that is coprime to , and thus is coprime to ; that is, . So exactly the same primes divide as divide .

It remains only to exhibit functions that show all values of with are possible. Given for each prime , take and we verify by examining exponents of each prime that this satisfies the conditions of the problem.

---

Alternative solution.

As in Solution 1, we see that there are indeed functions satisfying the given condition and producing all the given values of , and we follow Solution 1 to show the following facts: - . - for all . - for all . - if and only if and are coprime; refer to this as .

Taking together with gives that if and are coprime. Suppose now that is coprime to both and . We have and squaring both sides gives Thus , so , so . If is coprime to both and but however is not coprime to , we have a contradiction. Thus, given that and are coprime, we know that is coprime to if and only if is coprime to . In particular, if and are different primes, then if and only if , and likewise, for any positive integer if and only if . More generally, if , then if and only if is not coprime to .

Now form a graph whose vertices are the primes, and where there is an edge between primes if and only if (and so ); every vertex has finite degree. For any integer , the primes dividing are all the primes that are neighbours of any prime , together possibly with some further primes . If and are different primes, we have . The LHS is divisible by all primes that (in the graph) are neighbours of or neighbours of neighbours of , and possibly also by and by some primes that are neighbours of , and a corresponding statement with and swapped applies to the RHS. Thus any prime that is a neighbour of a neighbour of must be one of: , distance 1 from , or distance 1 or 2 from . For any prime that is distance 2 from , there are only finitely many primes that it is distance 2 or less from, so by choosing a suitable prime (depending on ) we conclude that every prime that is a neighbour of a neighbour of is actually itself or a neighbour of . So the connected components of the graph are (finite) complete graphs. If is divisible only by primes in one component, and is divisible only by primes in another component, then . If is divisible by more than one prime from a component, considering the expression for as applied with successive prime power divisors of shows that is divisible by all the primes in that component. However, while is divisible by all the primes in the component of except possibly for itself, we do not yet know that . We now consider cases for the order of a component. For any prime , we cannot have , because gives and simplifying using results in . So for a component of order 1, is a positive power of , so has the same set of prime factors as , as required. Now consider a component of order at least 2. Since , if the component has order at least 3, then for any whose prime divisors are in that component, is divisible by all the primes in that component. If the component has order 2, we saw above that this is true except possibly for . However, if the primes in the component are and , and , then , which contradicts . So for any component of order at least 2, and any whose prime divisors are in that component, is divisible by all the primes in that component. In a component of order at least 2, let be the product of all the primes in that component, and let be maximal such that for all whose prime divisors are in that component; we have seen that . If and are coprime numbers greater than 1, all of whose prime divisors are in that component, then tells us that . For any , all of whose prime divisors are in that component, is divisible by all the primes in that component, so can be expressed as such a product, so . But this means , a contradiction, so all components have order 1, and we are done.
Final answer
For each positive integer n, the possible values of f(n) are exactly the positive integers whose set of prime divisors is the same as that of n; equivalently, f(n) can be any product of the primes dividing n with arbitrary positive exponents.

Techniques

Existential quantifiersPrime numbersGreatest common divisors (gcd)Factorization techniquesOther