3

Problem: Let $A = \{1, a_1, a_2, a_3,\dots,a_{18}, 77\}$ be a set of integers with $1 < a_1 < a_2< \dots< a_{18} < 77$. Let the set $ A + A = \{x + y: x,y\in A\} $ contain exactly 39 elements. What is the value of $a_1+\dots+a_{18}$?

So far: All the solutions on the internet say that $a_i$ are in AP, which gives the number of distinct pair sums as 39, which happens to be the least number of distinct pair sums of a sequence of length 20 (with unique ordered elements). In general, for a sequence of length $n$, the least value of number of distinct pair sums is $2n-1$, for which the sequence is in AP.

However, none of the solutions give a proof for the above statement but rather only give examples to illustrate it. So I was curious, how can we prove this statement? The statement seems intuitive enough because of the sum symmetry of the AP (sum of $k^{\text{th}}$ and $(n-k)^{\text{th}}$ is equal for all $k$). But how to prove this?

This question is taken from the 2022 JEE Main paper.

Kolakoski54
  • 1,862

2 Answers2

2

Theorem : If $A$ and $B$ are two finite subsets of $\mathbb R$, then $$\vert A\vert + \vert B\vert -1 \le \vert A+B\vert \le \vert A\vert \vert B\vert$$ and the lower bound is sharp iff $A$ and $B$ are arithmetic progressions of same difference.

Proof : The upper bound is obvious as we can just choose $A$ and $B$ in such a manner that all the sums of the form $a+b$ are different. One example of such a set is $$A=\{0,1,\dots ,r-1\},\;\; B=r\cdot\{0,1,\dots ,s-1\}$$ so that $$A+B=\{0,1,\dots , rs-1\}$$ hence completing the proof.

Denoting $A=\{a_1<a_2<\dots <a_r\}$ and $B=\{b_1<b_2<\dots <b_s\}$, and noting that the following chain of inequalities $$a_1+b_1<a_1+b_2<a_1+b_3<\dots <a_1+b_s<a_2+b_s<\dots <a_r+b_s$$ contains $r+s-1$ different elements of $A+B$ immediately completes the proof of the lower bound.

Now, let us assume that the lower bound is tight. Then, the following chain of inequalities $$a_1+b_1<a_2+b_1<a_2+b_2<a_2+b_3<\dots <a_2+b_s<a_3+b_s<\dots <a_r+b_s$$ and the previous one must be the same.

The first and the last $r-1$ terms are clearly equal, the other $s-1$ terms determine the equations \begin{align*} a_1+b_2&=a_2+b_1\\ a_1+b_3&=a_2+b_2\\ &.\\ &.\\ &.\\ a_1+b_s&=a_2+b_{s-1} \end{align*} which on rearranging gives \begin{align*} b_2-b_1&=a_2-a_1\\ b_3-b_2&=a_2-a_1\\ &.\\ &.\\ &.\\ b_s-b_{s-1}&=a_2-a_1 \end{align*} and hence $B$ is an arithmetic progression with difference $a_2-a_1$. Since the roles of $A$ and $B$ are symmetric in the statement, then so must be $A$.


In fact, a more general statement is true.

Theorem : If $A_1,A_2,\dots ,A_k$, $k\ge 2$ are finite subsets of $\mathbb R$, then $$\vert A_1\vert + \vert A_2\vert +\dots \vert A_k\vert -k+1 \le \vert A_1+A_2+\dots A_k\vert \le \vert A_1\vert \vert A_2\vert\dots \vert A_k\vert$$ and the lower bound is sharp iff $A_1,A_2,\dots ,A_k$ are arithmetic progressions of same difference.

Proof : We proceed by Induction.

The case $k=2$ is precisely the last theorem.

Now, let us assume that the statement is true for $k-1$.

Let $A=A_1+A_2+\dots +A_{k-1}$ and $B=A_k$ so that $A+B=A_1+A_2+\dots +A_{k}$. Using the previous theorem and the Induction Hypothesis, we get \begin{align*} \vert A_1\vert + \vert A_2\vert +\dots \vert A_{k-1}\vert -k+2 +\vert A_k\vert -1 &\le \vert A\vert + \vert B\vert -1\\ &\le \vert A+B\vert\\ &\le \vert A\vert \vert B\vert\\ &\le \vert A_1\vert \vert A_2\vert\dots \vert A_k\vert \end{align*} and hence the proof follows.

Now, we just notice that the left inequality can be an equality only if $$\vert A_1\vert + \vert A_2\vert +\dots \vert A_{k-1}\vert -k+2 = \vert A_1+A_2+\dots +A_{k-1} \vert = \vert A \vert$$ and $$\vert A\vert + \vert B\vert -1 = \vert A+B\vert.$$

The first relation implies that $A_1,\dots ,A_{k-1}$ and hence $A_1+\dots +A_{k-1}=A$ are arithmetic progressions of same difference, and the second relation implies that $B$ is also an arithmetic progression of same difference. This completes the proof.

Corollary : Let $A$ be a finite subset of $\mathbb R$. Then, for an integer $k\ge 2$, we have $$k\vert A \vert -k+1\le \vert kA \vert\le \vert A \vert^k$$ and the lower bound is sharp iff $A$ is an arithmetic progression.


However, it should be noted that the upper bound in the last corollary is not sharp. The sharp upper bound is given by the following theorem.

Theorem : Let $A$ be a finite subset of $\mathbb R$. Then, $$\vert kA \vert\le \binom{\vert A \vert +k-1}{k}$$ for any integer $k\ge 1$.

Proof : The number of ways of choosing unordered $k$-tuples from a set of cardinality $\vert A \vert$ is the number of non-zero integer solutions of the equation $$x_1+\dots +x_{\vert A \vert}=k$$ which is $\binom{\vert A \vert+k-1}{k}$.

This upper bound is indeed sharp and the case $k=2$ of the sharp upper bound is called a Sidon set.

For more on this topic, one can see this and this.

Sayan Dutta
  • 10,345
2

We are going to prove that for $2 \le k \le n$, $$a_k-a_{k-1}=a_2-a_1.$$ This will establish that $\{a_n\}$ is an arithmetic progression.

Proof:

Consider the following list of elements of $A+A$:

$\underbrace{a_1+a_1, a_1+a_2, a_1+a_3, \cdots, a_1+a_n}_{n \text{ terms}}$, $\underbrace{a_n+a_2, a_n+a_3, \cdots, a_n+a_n}_{(n-1)\text{ terms}}$

The list has $(2n-1)$ terms. It is strictly increasing and hence the terms are distinct. It enumerates all elements of $A+A$ in an increasing order or magnitude.

Now consider another list of $A+A$:

$\underbrace{a_1+a_1}_{1\text{ term}}$, $\underbrace{a_2+a_1, a_2+a_2, a_2+a_3, \cdots , a_2+a_n}_{n\text{ terms}}$, $\underbrace{a_n+a_3, a_n+a_4, a_n+a_5, \cdots, a_n+a_n}_{(n-2)\text{ terms}}$.

Again this list has $(2n-1)$ terms, is strictly increasing and enumerates all elements of $A+A$ in an increasing order of magnitude.

Since both lists enumerate all elements of $A+A$ in strictly increasing order of magnitude, the $2$ lists must be identical. They are the same term by term.

For $2 \le k \le n$,

the $k$th in the first list is $a_1+a_k$,

the $k$th in the second list is $a_1+a_{k-1}$.

Hence $$a_1+a_k=a_1+a_{k-1}$$ $$a_k-a_{k-1}=a_2-a_1.$$

The job is done.