Maths Olympiad Prep

Library / /4 of 10

, 2021

Number theory Difficulty 8.8 Shortlist Prove it Vietnam

Let n3n \ge 3 be a positive integer and pp be a prime number such that p>6n12n+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 xy+zcx - 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]xX}. 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 n3n \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+jk>0c = i + j - k > 0, therefore, for any triple (x,y,z)S3(x, y, z) \in S^3 with distinct elements, we have
0xy+zc>p3c>p32p3=p. 0 \ge x - y + z - c > -\frac{p}{3} - c > -\frac{p}{3} - \frac{2p}{3} = -p.
Hence,
pxy+zc    xy+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.6n2p > 5.6^{n-2}, for any set SS of n3n \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 0S0 \in S, since we can choose arbitrary integer b0b_0 such that 0S+b00 \in S + b_0. For each iZi \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 n1n-1-tuple (x1,x2,,xn1)(x_1, x_2, \dots, x_{n-1}), where xiSx_i \in S and xi0x_i \ne 0. Each integer aa corresponds to n2n-2-tuple (a1,a2,,an2)(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 n2n-2-tuple. By the same argument, there exist a1,a2Aa_1, a_2 \in A such that
[a1xn1][a2xn1](p6,p6). [a_1x_{n-1}] - [a_2x_{n-1}] \in \left(-\frac{p}{6}, \frac{p}{6}\right).
Choose a=a1a2a = 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 xSx \in S.
It's easy to verify that if b=p6b = \lfloor \frac{p}{6} \rfloor then aS+b[0,p3]aS + b \subset \left[0, \frac{p}{3}\right].
Since p>6n12n+1p > 6^{n-1} - 2^n + 1 then p6n12n+3>5.6n2p \ge 6^{n-1} - 2^n + 3 > 5.6^{n-2}, holds for all integer n3n \ge 3. Hence, our proof is completed. \square

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 and solution reproduced as published; topic and difficulty added by this site.