Points $a_1, a_2, \dots, a_n$ on a line form a set from $n(n-1)/2$ distances between them. Suppose all that distances are different, numerating them from the shortest to the longest one we obtain some permutation on $n(n-1)/2$ elements.
How many permutations can be obtained by this way?