Skip to main content
OlympiadHQ

Browse · MathNet

Print

42nd Balkan Mathematical Olympiad

number theory

Problem

Let be a positive integer and let be distinct integers such that for some positive integer . Prove that at least one of is prime.
Solution
If , then . Since , then and so and therefore . Then a contradiction. So we can assume . Let be the two smallest elements of and assume for the sake of contradiction that they are both composite.

Case 1. Assume . Then for each with . Therefore a contradiction.

Case 2. Assume . Let be a prime factor of . Since is composite, then and so for each , hence . Furthermore, for each with (since ) and therefore a contradiction.

Hence, we conclude that at least one of and has to be prime, which finishes the problem.

---

Alternative solution.

We solve the case in the same way as in the first solution. Now, let and let be the smallest element of . Assume for the sake of contradiction that all are composite. Write the given equation in the following way: Denote the second factor on the left hand side with , so we have that . Assume some prime number doesn't divide . We then have that , hence and: contradiction. Hence, all primes that divide also divide . Next, notice that if is composite, we can take a prime factor such that (so ), which implies that (since is divisible by ) which then implies that does not divide , contradiction. Thus, for some prime number . This means that for all (since by assumption none of the are prime). But, this also leads to a contradiction, since now we can pick some prime factor of (note that can't be prime, since that would imply and ) and have that (since now is divisible by ), so does not divide . Hence, we conclude that at least one of has to be prime, which finishes the problem.

Techniques

Factorization techniquesTechniques: modulo, size analysis, order analysis, inequalities