Skip to main content
OlympiadHQ

Browse · MathNet

Print

IMO2024 Shortlisted Problems

2024 number theory

Problem

Let be a finite nonempty set of prime numbers. Let be the sequence of all positive integers whose prime divisors all belong to . Prove that, for all but finitely many positive integers , there exist positive integers such that
Solution
If has only one element , then and we can easily find with by taking and choosing .

More generally, observe that the sum of over all is In particular, if is large enough, then For the remainder of the proof, we will only consider large enough that this equality holds.

Next, we handle the special case , for which this product is . Start by setting Then, As a result, where is the largest with . Thus, increasing by one (where ) gives a sequence of that works.

Otherwise, we may assume that and , which means that the product is not an integer. Indeed, - if then divides the denominator at least twice and so divides the denominator of the overall fraction; - if and then divides the denominator and not the numerator; - if then the product is which is not an integer for .

It follows that for some fixed , we have that from which it follows that It will now suffice to prove the following claim.

Claim. Suppose that is large enough, and let be the largest nonnegative integer such that . Let . If is a positive integer such that , then there exist nonnegative integers such that The problem statement follows after replacing with for each .

To prove this, choose some constant such that , and suppose is large enough that for each ; in particular, with defined as above.

For each , let be such that and choose the smallest nonnegative integer satisfying Such an must exist and be at most ; indeed, is an integer coprime to , so we can take to be equal to times its multiplicative inverse modulo .

The sum of the contributions to the sum from the is at most So, we have where is an integer because of our choice of and is nonnegative because of the bound on . Simply choose where to complete the proof.

---

Alternative solution.

We reduce to the claim as in Solution 1, and provide an alternative approach for constructing the .

Let be the smallest prime in . Let . We construct a sequence and values of by the following iterative process: to construct , - select the largest prime dividing the denominator of , and let be the number of times divides the denominator of ; - choose the largest such that , and let be such that ; - choose such that the denominator of has at most factors of , and let ; - continue until is the only prime dividing the denominator of .

Note that we can always choose in step 3; by construction, has no factors of in its denominator, so must be realised as an element of .

Each time we do this, by construction, so where is the largest prime in . And the number of times we do this operation is at most so the sum of the we have assigned is at most .

Choose large enough that ; after subtracting the above choices of from , we have a quantity of the form , where is an integer by construction and is positive by the above bounds. Simply set where to complete the proof.

---

Alternative solution.

As in Solution 1, we may handle and separately; otherwise, we can define as we did in that solution. Also define to be the largest nonnegative integer such that as we did in Solution 1.

We will show that, for sufficiently large, we may choose some , and positive integers , such that and all are integer multiples of . We then set to be the least positive integer such that the sum on the left is an integer, which will obviously have the required value.

Concretely, choose such that , which is less than by construction. For , set . We have If , then there must be some for which , and so where the last inequality follows from the fact that .

Now , so and so we can choose large enough that this quantity is less than , as required.

Techniques

Inverses mod nPrime numbersTechniques: modulo, size analysis, order analysis, inequalitiesSums and products