Maths Olympiad Prep

Library / Team Selection Tests /4 of 11

Team Selection Tests, 2021

Number theory Difficulty 8.8 Shortlist Prove it Vietnam

Let n≥3n \ge 3 be a positive integer and pp be a prime number such that p>6n−1−2n+1p > 6^{n-1} - 2^n + 1. Let SS be the set of nn positive integers with different residues modulo pp. Show that there exists a positive integer cc such that there are exactly two ordered triples (x,y,z)∈S3(x, y, z) \in S^3 with distinct elements, such that x−y+z−cx - y + z - c is divisible by pp.

Solution

For each integer xx, let [x][x] denote the remainder of xx divided by pp. For each subset XX of Z\mathbb{Z} and integers a,ba, b, denote
aX+b:={[ax+b]∣x∈X}. aX + b := \{[ax + b] \mid x \in X\}.
Every integer is coprime with pp, has an inverse modulo pp, therefore, if aa is coprime with pp, it's easy to verify that XX is special if and only if aX+baX + b is special. Our solution is based on the following lemmas.

Lemma 1. The set SS of n≥3n \ge 3 natural numbers that are at most p3\frac{p}{3} is special.

Proof. Let i,ji, j be the two largest numbers and kk be the smallest in SS. Choose c=i+j−k>0c = i + j - k > 0, therefore, for any triple (x,y,z)∈S3(x, y, z) \in S^3 with distinct elements, we have
0≥x−y+z−c>−p3−c>−p3−2p3=−p. 0 \ge x - y + z - c > -\frac{p}{3} - c > -\frac{p}{3} - \frac{2p}{3} = -p.
Hence,
p∣x−y+z−c  ⟺  x−y+z=c  ⟺  {x,z}={i,j} and y=k. p \mid x - y + z - c \iff x - y + z = c \iff \{x, z\} = \{i, j\} \text{ and } y = k.

Lemma 2. If p>5.6n−2p > 5.6^{n-2}, for any set SS of n≥3n \ge 3 natural numbers, there exists integers a,ba, b, where aa is coprime with pp, such that all elements of aS+baS + b is at most p3\frac{p}{3}.

Proof. Assume that 0∈S0 \in S, since we can choose arbitrary integer b0b_0 such that 0∈S+b00 \in S + b_0. For each i∈Zi \in \mathbb{Z}, let Si=[pi6,p(i+1)6)∩ZS_i = \left[ \frac{pi}{6}, \frac{p(i+1)}{6} \right) \cap \mathbb{Z}.

Consider SS as a n−1n-1-tuple (x1,x2,…,xn−1)(x_1, x_2, \dots, x_{n-1}), where xi∈Sx_i \in S and xi≠0x_i \ne 0. Each integer aa corresponds to n−2n-2-tuple (a1,a2,…,an−2)(a_1, a_2, \dots, a_{n-2}), where aia_i is the index kk such that [axi]∈Sk[ax_i] \in S_k. By Pigeonhole principle, there exists the set AA with 6 integers aa, corresponding to the same n−2n-2-tuple. By the same argument, there exist a1,a2∈Aa_1, a_2 \in A such that
[a1xn−1]−[a2xn−1]∈(−p6,p6). [a_1x_{n-1}] - [a_2x_{n-1}] \in \left(-\frac{p}{6}, \frac{p}{6}\right).
Choose a=a1−a2a = a_1 - a_2, then [ax]∈[0,p6)∪(5p6,p)[ax] \in \left[0, \frac{p}{6}\right) \cup \left(\frac{5p}{6}, p\right) for all x∈Sx \in S.
It's easy to verify that if b=⌊p6⌋b = \lfloor \frac{p}{6} \rfloor then aS+b⊂[0,p3]aS + b \subset \left[0, \frac{p}{3}\right].
Since p>6n−1−2n+1p > 6^{n-1} - 2^n + 1 then p≥6n−1−2n+3>5.6n−2p \ge 6^{n-1} - 2^n + 3 > 5.6^{n-2}, holds for all integer n≥3n \ge 3. Hence, our proof is completed. □\square

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

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