Maths Olympiad Prep

Library / /59 of 65

Number theory Difficulty 6.6 National Olympiad Prove it Bulgaria

Problem:

Let pp be a prime number and let 0a1<a2<<am<p0 \leq a_{1} < a_{2} < \cdots < a_{m} < p and 0b1<b2<<bn<p0 \leq b_{1} < b_{2} < \cdots < b_{n} < p be arbitrary integers. Denote by kk the number of different remainders of the numbers ai+bja_{i} + b_{j}, 1im1 \leq i \leq m, 1jn1 \leq j \leq n, modulo pp. Prove that:

a) if m+n>pm + n > p, then k=pk = p;

b) if m+npm + n \leq p, then km+n1k \geq m + n - 1.

Solution

Solution:

a.
Let t{0,1,2,,p1}t \in \{0, 1, 2, \ldots, p-1\}. Consider the remainders of tait - a_{i}, 1im1 \leq i \leq m and bjb_{j}, 1jn1 \leq j \leq n, modulo pp. Their number is m+n>pm + n > p and hence two of them are equal. Since the remainders of tait - a_{i} and tajt - a_{j}, bib_{i} and bjb_{j}, respectively, iji \neq j, are different, it follows that tarbs(modp)t - a_{r} \equiv b_{s} \pmod{p}, i.e., ar+bst(modp)a_{r} + b_{s} \equiv t \pmod{p} for some rr and ss. Since tt is an arbitrary remainder modulo pp, we conclude that k=pk = p.

b.
Let A={a1,a2,,am}A = \{a_{1}, a_{2}, \ldots, a_{m}\} and B={b1,b2,,bn}B = \{b_{1}, b_{2}, \ldots, b_{n}\}. For any two sets XX and YY denote X+Y={x+y(modp)xX,yY}X + Y = \{x + y \pmod{p} \mid x \in X, y \in Y\}. We have to prove that k=A+Bm+n1k = |A + B| \geq m + n - 1. To do this, we may assume that mnm \leq n and we shall use induction on mm.

For m=1m = 1 and any nn the statement is true, since a1+bia1+bj(modp)a_{1} + b_{i} \neq a_{1} + b_{j} \pmod{p} if iji \neq j and a1+B=B=n=1+n1|a_{1} + B| = |B| = n = 1 + n - 1.

Suppose that the statement is true for any two sets XX and YY such that X<m|X| < m, X<Y|X| < |Y| and X+Yp|X| + |Y| \leq p. Let A=m>1|A| = m > 1 and B=n|B| = n, where mnm \leq n and m+npm + n \leq p. Then n<pn < p and hence there exists cBc \notin B. Take different a1,a2Aa_{1}, a_{2} \in A. As the sequence c+t(a2a1)(modp)c + t(a_{2} - a_{1}) \pmod{p}, t=1,2,,p1t = 1, 2, \ldots, p-1, contains all remainders except cc, then b=c+t(a2a1)Bb = c + t(a_{2} - a_{1}) \in B for some tt. Let tt be the minimal number with this property. The set A={ba2}+AA' = \{b - a_{2}\} + A contains the elements ba2+a1b - a_{2} + a_{1} and ba2+a2=bb - a_{2} + a_{2} = b. Note that ba2+a1=c+(t1)(a2a1)Bb - a_{2} + a_{1} = c + (t-1)(a_{2} - a_{1}) \notin B. Since A+B={ba2}+A+B|A' + B| = |\{b - a_{2}\} + A + B|, it is enough to prove that A+Bm+n1|A' + B| \geq m + n - 1.

Set F=ABF = A' \cap B and G=ABG = A' \cup B. Since bFb \in F, ba2+a1Fb - a_{2} + a_{1} \notin F and ba2+a1Ab - a_{2} + a_{1} \in A', then FF is a proper non-empty subset of AA'. So BB is a proper subset of GG. It follows that 0<F<mn<G0 < |F| < m \leq n < |G|. On the other hand, m+n=A+B=AB+AB=F+Gm + n = |A'| + |B| = |A' \cap B| + |A' \cup B| = |F| + |G|. Note also that F+GA+BF + G \subset A' + B (for fFf \in F and gGg \in G, we may assume that gAg \in A' and then fFBf \in F \subset B implies that f+gA+Bf + g \in A' + B). Thus A+BF+G|A'| + |B| \geq |F| + |G|. Then the inequalities 0<F<mn<G0 < |F| < m \leq n < |G|, F+Gp|F| + |G| \leq p and the induction hypotheses imply that the statement is true for the sets FF and GG. Hence

A+B=A+BF+GF+G1=A+B1=m+n1 |A + B| = |A' + B| \geq |F + G| \geq |F| + |G| - 1 = |A'| + |B| - 1 = m + n - 1
which completes the induction.

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.