I will start with an example. Suppose that I would like to cover the set $\{1,2,3\}$ by differences between three integers $m_1,\ m_2$ and $m_3$ in the following sense: $$ \{1,2,3\}=\{m_2-m_1,m_3-m_2,m_3-m_1\}. $$ This is possible by taking $m_1=1,m_2=2$ and $m_3=4$.
I take another example: the equality $$ \{1,2,3,4,5,6\}=\{m_2-m_1,m_3-m_1,m_3-m_2,m_4-m_1,m_4-m_2,m_4-m_3\} $$ is satisfied for $m_1=1,m_2=2,m_3=5,m_4=7$.
Now I can formulate the problem to which, hopefully, someone can help me to arrive to the solution:
(a) Find the set of all positive integers $n\ge 2$ (or, at least, an infinite subset) for which there exist integers $m_1,\dots,m_n$ such that $$ \{m_j-m_i\}_{1\le i<j\le n}=\Bigl\{1,2,\dots,\frac{(n-1)n}{2}\Bigr\}. $$
.
As regarding the case $n=5$, I was able to prove that it is not possible to find a sequence of $5$ integers such that their differences cover the set $\{1,2,\dots,10\}$. It turns out that in this case the best possible scenario is to cover the set from $1$ to $11$ in which $6$ is missing: $$ \{1,2,3,4,5,7,8,9,10,11\}=\{m_j-m_i\}_{1\le i<j\le 5}. $$ A solution here is: $m_1=1,m_2=2,m_3=5,m_4=10,m_5=12$.
This last remark led to the second question:
(b) For each $n\ge 2$ find an increasing finite sequence $m_1,\dots,m_n$ of integers such that the set $\{m_j-m_i\}_{1\le i<j\le n}$ has $\frac{n(n-1)}{2}$ elements (the differences are distinct) and $m_n-m_1$ is minim.
I realize that these problems can be very difficult. I will be satisfied with partial solutions or, at least, ideas on how to proceed. Thank you!
It seems the following.
I don’t know an answer to Part a), so I say a few words about part b). For the convenience I introduce the function $f(n)$ which is equal to the minimum $m_n-m_1$ which is taken over all increasing finite sequences $m_1,\dots,m_n$ non-negative integers such that the all differences $m_j-m_i$ (where $i<j$) are mutually distinct. By the way, I recently considered a similar question, where all differences $\frac 1{m_i}-\frac 1{m_j}$ have to be mutually distinct.
The function $f(n)$ has a trivial lower bound $f(n)\ge n(n-1)/2$. The situation with upper bounds is much more complex. First of all, the sequence $m_i=2^{i-1}$ yields a bound $f(n)\le 2^{n-1}$. Because the gap between an exponential upper bound and a polynomial lower bound is very large, we try to obtain a polynomial upper bound for $f(n)$. For this purpose we shall search $m_i$ in the form $m_i=(i-1)N+h(i)$ for some special number $N$ and function $h$. We impose the condition $0\le h(i)<N/2$ for each $i$. Assume that there exist numbers $j>i$ and $k>l$ such that $m_j-m_i=m_k-m_l$. Then
$$jN+h(j)-iN-h(i)=kN+h(k)-lN-h(l),$$ $$N(j-i-k+l)=h(k)+h(i)-h(l)-h(j).$$
The absolute value of the right hand side is less than $N$, so both sides are equal to zero: $$i+k=j+l$$ $$h(i)+h(k)=h(j)+h(l)$$
Now we have to choose the function $h$.
Assume that $h(i)=(i-1)^2$. Then
$$(i-1)^2+(k-1)^2=(j-1)^2+(l-1)^2$$ $$(i-1)+(k-1)=(j-1)+(l-1)$$
$$((i-1)+(k-1))^2=((j-1)+(l-1))^2$$
So $$2(i-1)(k-1)=((i-1)+(k-1))^2-(i-1)^2-(k-1)^2+$$ $$((j-1)+(l-1))^2-(j-1)^2-(l-1)^2=2(j-1)(l-1).$$
Therefore both pairs $\{i-1,k-1\}$ and $\{j-1,l-1\}$ are roots of a square equation
$$x^2-(k-1+i-1)x+(k-1)(i-1)=0.$$
Therefore $\{i-1,k-1\}=\{j-1,l-1\}$.
In order to $0\le h(i)<N/2$ for each $i$ we have to put $N=2(n-1)^2+1$. Then we obtain $$f(n)\le m_n-m_1=m_n=(n-1)(2(n-1)^2+1)+(n-1)^2=$$ $$(n-1)(2(n-1)^2+n)=(n-1)(2n^2-3n+1).$$
Similarly we can proceed by putting $h(i)=(i-1)^2 \pmod p$, where $p\le N/2$ is an odd prime number. Then we have an equality of pairs $\{i-1,k-1\}$ and $\{j-1,l-1\}$ of residues mod $p$. So if $p\ge n$ then it implies the equality of the pairs $\{i-1,k-1\}$ and $\{j-1,l-1\}$. We can choose such prime number $p\ge n$ of asymptotic order $n(1+o(1))$ and we may put $N=2p$. Thus we obtain a bound $$f(n)\le 2(n-1)p+p-1=2np-p-1=2n^2+O(n^2).$$
Also we can to build the sequence $\{m_i\}$ consecutively, starting from $m_1=0$ and at each step take as $m_n$ the smallest number such that all differences $m_j-m_i$ $(i<j)$ are distinct (since there are at most $n{n \choose 2}$ forbidden values for $m_n$, we have $m_n\le n{n \choose 2}$). In such a way we obtain
$$\{m_i\}=0,1,3,7,12,20,30,44,\dots.$$
This is Sequence A025582 from The On-Line Encyclopedia of Integer Sequences.
$$m_i$$
Empirical evidence suggests that this sequence grows asymptotically as $n^{11/4}$.
$$\frac{m_i}{i^{11/4}}$$