Maths Olympiad Prep

Library / Bulgarian Mathematical Olympiad /54 of 58

Bulgarian Mathematical Olympiad

Number theory Difficulty 6.6 National Olympiad Prove it Bulgaria

Problem:

Let pp be a prime number and let 0≤a1<a2<⋯<am<p0 \leq a_{1} < a_{2} < \cdots < a_{m} < p and 0≤b1<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}, 1≤i≤m1 \leq i \leq m, 1≤j≤n1 \leq j \leq n, modulo pp. Prove that:

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

b) if m+n≤pm + n \leq p, then k≥m+n−1k \geq m + n - 1.

Solution

Solution:

a.
Let t∈{0,1,2,…,p−1}t \in \{0, 1, 2, \ldots, p-1\}. Consider the remainders of t−ait - a_{i}, 1≤i≤m1 \leq i \leq m and bjb_{j}, 1≤j≤n1 \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 t−ait - a_{i} and t−ajt - a_{j}, bib_{i} and bjb_{j}, respectively, i≠ji \neq j, are different, it follows that t−ar≡bs(modp)t - a_{r} \equiv b_{s} \pmod{p}, i.e., ar+bs≡t(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)∣x∈X,y∈Y}X + Y = \{x + y \pmod{p} \mid x \in X, y \in Y\}. We have to prove that k=∣A+B∣≥m+n−1k = |A + B| \geq m + n - 1. To do this, we may assume that m≤nm \leq n and we shall use induction on mm.

For m=1m = 1 and any nn the statement is true, since a1+bi≠a1+bj(modp)a_{1} + b_{i} \neq a_{1} + b_{j} \pmod{p} if i≠ji \neq j and ∣a1+B∣=∣B∣=n=1+n−1|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∣+∣Y∣≤p|X| + |Y| \leq p. Let ∣A∣=m>1|A| = m > 1 and ∣B∣=n|B| = n, where m≤nm \leq n and m+n≤pm + n \leq p. Then n<pn < p and hence there exists c∉Bc \notin B. Take different a1,a2∈Aa_{1}, a_{2} \in A. As the sequence c+t(a2−a1)(modp)c + t(a_{2} - a_{1}) \pmod{p}, t=1,2,…,p−1t = 1, 2, \ldots, p-1, contains all remainders except cc, then b=c+t(a2−a1)∈Bb = c + t(a_{2} - a_{1}) \in B for some tt. Let tt be the minimal number with this property. The set A′={b−a2}+AA' = \{b - a_{2}\} + A contains the elements b−a2+a1b - a_{2} + a_{1} and b−a2+a2=bb - a_{2} + a_{2} = b. Note that b−a2+a1=c+(t−1)(a2−a1)∉Bb - a_{2} + a_{1} = c + (t-1)(a_{2} - a_{1}) \notin B. Since ∣A′+B∣=∣{b−a2}+A+B∣|A' + B| = |\{b - a_{2}\} + A + B|, it is enough to prove that ∣A′+B∣≥m+n−1|A' + B| \geq m + n - 1.

Set F=A′∩BF = A' \cap B and G=A′∪BG = A' \cup B. Since b∈Fb \in F, b−a2+a1∉Fb - a_{2} + a_{1} \notin F and b−a2+a1∈A′b - a_{2} + a_{1} \in A', then FF is a proper non-empty subset of A′A'. So BB is a proper subset of GG. It follows that 0<∣F∣<m≤n<∣G∣0 < |F| < m \leq n < |G|. On the other hand, m+n=∣A′∣+∣B∣=∣A′∩B∣+∣A′∪B∣=∣F∣+∣G∣m + n = |A'| + |B| = |A' \cap B| + |A' \cup B| = |F| + |G|. Note also that F+G⊂A′+BF + G \subset A' + B (for f∈Ff \in F and g∈Gg \in G, we may assume that g∈A′g \in A' and then f∈F⊂Bf \in F \subset B implies that f+g∈A′+Bf + g \in A' + B). Thus ∣A′∣+∣B∣≥∣F∣+∣G∣|A'| + |B| \geq |F| + |G|. Then the inequalities 0<∣F∣<m≤n<∣G∣0 < |F| < m \leq n < |G|, ∣F∣+∣G∣≤p|F| + |G| \leq p and the induction hypotheses imply that the statement is true for the sets FF and GG. Hence

∣A+B∣=∣A′+B∣≥∣F+G∣≥∣F∣+∣G∣−1=∣A′∣+∣B∣−1=m+n−1 |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,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.