Skip to main content
OlympiadHQ

Browse · MathNet

Print

49th International Mathematical Olympiad Spain

number theory

Problem

Let be a positive integer and let be a prime number. Prove that if are integers (not necessarily positive) satisfying the equations then .
Solution
If two of are equal, it is immediate that all the three are equal. So we may assume that . Subtracting the equations we get and two cyclic copies of this equation, which upon multiplication yield If is odd then the differences and have the same sign and the product on the left is positive, while is negative. So must be even. Let be the greatest common divisor of the three differences , so that . From we see that , i.e., ; and cyclically . As and , at most one of can be divisible by . Supposing that the prime does not divide any one of them, we get , whence ; but this quarrels with . Thus must divide exactly one of these numbers. Let e.g. and write . Now we obtain, similarly as before, so that . The equation forces that the prime must be even; i.e. . Hence , implying and . Consequently . Knowing that is even, say , we rewrite the equation with in the form The second factor on the left is divisible by , so the first factor ( ) must be . Then exactly one of and must be odd; yet is even. Contradiction ends the proof.

---

Alternative solution.

The beginning is as in the first solution. Assuming that are not all equal, hence are all distinct, we derive equation (1) with the conclusion that is even. Write . Suppose that is odd. Then the integer which is a factor in (1), must be odd as well. This sum of summands is odd only if and have different parities. The same conclusion holding for and for , we get that alternate in their parities, which is clearly impossible. Thus . The original system shows that must be of the same parity. So we may divide (1) by , i.e. , to obtain the following product of six integer factors: Each one of the factors must be equal to . In particular, . If is even, this becomes and yields , whence , contradicting (2). Let now be odd. Then the sum , with value , has as a factor. Since and are of the same parity, this means that ; and cyclically, . In some two of these equations the signs must coincide, hence some two of are equal. This is the desired contradiction.

Techniques

Greatest common divisors (gcd)Prime numbersFactorization techniquesTechniques: modulo, size analysis, order analysis, inequalitiesPolynomial operations