Take A={1,2,3,...,35}, then for any a,b∈A,
a−b≤34, a+b≤34+35=69.
In the following, we show that 1≤n≤69. Let A={a1,a2,…,a35}, without loss of generality, suppose that a1<a2<⋯<a35.
i.
If 1≤n≤19, by
1≤a1<a2<⋯<a35≤50,
2≤a1+n<a2+n<⋯<a35+n≤50+19=69,
and by Dirichlet's Drawer Theorem, there exist 1≤i,j≤35 (i=j) such that ai+n=aj, that is, ai−aj=n.
ii.
If 51≤n≤69, by
1≤a1<a2<⋯<a35≤50,
1≤n−a35<n−a34<⋯<n−a1≤68,
and by Dirichlet's Drawer Theorem, there exist at least 1≤i,j≤35 (i=j) such that n−ai=aj, that is, ai+aj=n.
iii.
If 20≤n≤24, since
50−(2n+1)+1=50−2n≤50−40=10,
we see that there are at least 25 elements in a1,a2,…,a35 that belong to [1,2n].
There are at most 24 elements in {1,n+1},{2,n+2},…,{n,2n} such that {ai,aj}={i,n+i}. Hence, aj−ai=n.
iv. If 25≤n≤34, since {1,n+1},{2,n+2},…,{n,2n} have at most 34 elements, by Dirichlet Drawer Theorem, there exist 1≤i,j≤35 (i=j) such that ai=i,aj=n+i, that is aj−ai=n.
v. If n=35, there are 33 elements {1,34},{2,33},…,{17,18},{35},{36},…,{50}. Hence, there exist 1≤i,j≤35 (i=j) such that ai+aj=35.
vi.
If 36≤n≤50,
if n=2k+1,{1,2k},{2,2k−1},…,{k,k+1},{2k+1},…,{50};
if 18≤k≤20,50−(2k+1)+1=50−2k≤50−36=14;
if 21≤k≤24, 50−(2k+1)+1=50−2k≤50−42=8,
there exist 1≤i,j≤35 (i=j) such that ai+aj=2k+1=n.
If n=2k, {1,2k−1}, {2,2k−2}, ..., {k−1,k+1}, {k}, {2k}, {2k+1}, ..., {50};
if 18≤k≤19, 50−(2k+1)+3≤16k−1≤19−1=18;
if 20≤k≤23, 50−(2k+1)+3≤50−2k+2≤12k−1
≤23−1=22;
if 24≤k≤25, 50−(2k+1)+3≤50−2k+2≤4k−1≤
25−1=24,
there exist 1≤i,j≤35 (i=j) such that ai+aj=2k.
□