Maths Olympiad Prep

Library / /5 of 5

Combinatorics Difficulty 6.5 National olympiad Prove it Brazil

AA is a set of nn non-negative integers. We say it has property PP if the set {x+yx,yA}\{x + y \mid x, y \in A\} has n(n+1)2\frac{n(n+1)}{2} elements. We call the largest element of AA minus the smallest element the *diameter* of AA. Let f(n)f(n) be the smallest diameter of any set AA with property PP. Show that n24f(n)<n3\frac{n^2}{4} \le f(n) < n^3.
(If you still have time, try to improve these bounds. For example, try to prove that f(p)<2p2f(p) < 2p^2 for all primes pp.)

Solution

Let a1<a2<<ana_1 < a_2 < \dots < a_n be the elements of AA. The diameter of AA is d(A)=ana1d(A) = a_n - a_1. The minimum and maximum of A+A={x+yx,yA}A + A = \{x + y \mid x, y \in A\} are a1+a1a_1 + a_1 and an+ana_n + a_n. Since A+AA + A has n(n+1)2\frac{n(n+1)}{2} elements, 2an2a1+1n(n+1)2    d(A)n24+n24n242a_n - 2a_1 + 1 \ge \frac{n(n+1)}{2} \iff d(A) \ge \frac{n^2}{4} + \frac{n-2}{4} \ge \frac{n^2}{4}.

To prove the upper bound, we need to construct a set AA with property PP such that d(A)<n3d(A) < n^3. We do this recursively. Start with A={0,1}A = \{0, 1\} and we will adjoin elements to AA. Suppose we already have a1=0<a2=1<<ana_1 = 0 < a_2 = 1 < \dots < a_n in AA such that {a1,a2,,an}\{a_1, a_2, \dots, a_n\} has property PP. Adjoining an+1a_{n+1} will generate n+1n+1 more sums: a1+an+1,a2+an+1,,an+1+an+1a_1 + a_{n+1}, a_2 + a_{n+1}, \dots, a_{n+1} + a_{n+1}. All these sums must be different from any ai+aja_i + a_j, 1ijn1 \le i \le j \le n. Moreover, an+1a_{n+1} must be different from all numbers aia_i, 1in1 \le i \le n. This means that an+1{ai+ajak1ijk}{ai+aj21i,jn}=Ba_{n+1} \notin \{a_i + a_j - a_k \mid 1 \le i \le j \le k\} \cup \left\{\frac{a_i+a_j}{2} \mid 1 \le i,j \le n\right\} = B. This set has no more than n3+n(n+1)2n^3 + \frac{n(n+1)}{2} elements. So we may choose an+1a_{n+1} as the smaller number not in BB, and so an+1n3+n(n+1)2<(n+1)3a_{n+1} \le n^3 + \frac{n(n+1)}{2} < (n+1)^3. Thus
d(A)=an+1a1=an+1<(n+1)3d(A) = a_{n+1} - a_1 = a_{n+1} < (n+1)^3.

Now we are going to prove the “bonus” part of the problem. Let pp be a prime and consider A={k+2p(k2modp)0kp1}A = \{k + 2p \cdot (k^2 \bmod p) \mid 0 \le k \le p-1\}. We have
d(A)(p1)+2p(p1)=2p2p1<2p2d(A) \le (p-1)+2p(p-1) = 2p^2-p-1 < 2p^2. Moreover, r+2p(r2modp)+r+2p(r^2 \bmod p)+
s+2p(s2modp)=t+2p(t2modp)+u+2p(u2modp)    r+s=t+us+2p(s^2 \bmod p) = t+2p(t^2 \bmod p)+u+2p(u^2 \bmod p) \iff r+s=t+u
and r2modp+s2modp=t2modp+u2modpr^2 \bmod p + s^2 \bmod p = t^2 \bmod p + u^2 \bmod p. So rt=usr-t=u-s and
r2t2u2s2(modp)    (rt)(r+t)(us)(u+s)(modp)r^2-t^2 \equiv u^2-s^2 \pmod p \iff (r-t)(r+t) \equiv (u-s)(u+s) \pmod p
    rtus0(modp)\iff r-t \equiv u-s \equiv 0 \pmod p or r+tu+s(modp)r+t \equiv u+s \pmod p, hence
r=tr=t and s=us=u or r=ur=u and s=ts=t.

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.