Maths Olympiad Prep

Library / /48 of 48

, 2013

Number theory Difficulty 7.7 National Olympiad, round 2 Prove it Baltic Way

Let nn be a positive integer greater than 11. The teacher writes n+1n+1 positive integers on the blackboard, whereby the last of them, let it be cc, is not divisible by nn. Can Mary always denote the first nn integers written by the teacher by a1,,ana_1, \dots, a_n in such an order that the product (a1a2)(a2a3)(an1an)(ana1)(a_1 - a_2) \cdot (a_2 - a_3) \cdot \dots \cdot (a_{n-1} - a_n) \cdot (a_n - a_1) were congruent to either 00 or cc modulo nn?

Solution

Answer: Yes.

If some two of the first nn integers are congruent modulo nn then Mary can choose them consecutively and obtain a product divisible by nn. Hence we may assume in the rest that the first nn integers written by the teacher are pairwise incongruent modulo nn. This means that these nn integers cover all residues modulo nn.

If nn is composite then Mary can find integers kk and ll such that n=kln = kl and 2kln22 \le k \le l \le n-2. Let Mary denote a1,a2,a3,a4a_1, a_2, a_3, a_4 such that a1ka_1 \equiv k, a20a_2 \equiv 0, a3l+1a_3 \equiv l+1 and a41a_4 \equiv 1. The remaining numbers can be denoted in arbitrary order. The product is divisible by nn as the product of the first and the third factor is (k0)((l+1)1)=kl=n(k-0) \cdot ((l+1)-1) = kl = n.

If nn is prime then the numbers cic_i, where i=0,1,,n1i = 0, 1, \dots, n-1, cover all residues modulo nn. Let Mary denote the numbers in such a way that aic(ni)a_i \equiv c(n-i) for every i=1,,ni = 1, \dots, n. Then every factor in the product is congruent to cc modulo nn, meaning that the product is congruent to cnc^n modulo nn. But cncc^n \equiv c by Fermat's theorem, and Mary has done.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.