Arranging integers in a row so that the arithmetic mean of any two of these numbers is not equal to some number between them

123 Views Asked by At

So I have the following problem:

Let n be a positive integer. Is it possible to arrange the numbers 1, 2, . . . , n in a row so that the arithmetic mean of any two of these numbers is not equal to some number between them?

I'm having some trouble solving it, but what I have done so far is:

  • I think it is possible because I can think of an example. If we took 1,2,3 and 4, I arranged it as 1,3,2,4
  • I thought that by maybe arranging the odds on the left side and evens on the right side could get me somewhere. I tried to look at this post, Arrangement of Numbers but I couldn't quite understand it.
1

There are 1 best solutions below

0
On

I thought that by maybe arranging the odds on the left side and evens on the right side could get me somewhere.

That's a good idea: the average of an odd number and an even number is not an integer, so you can then consider the two halves separately.

The arithmetic mean is a linear operator, which is to say that $\textrm{avg}(ax+b, ay+b) = a\,\textrm{avg}(x,y)+b$. If we take the odd numbers, $a = \frac12$ and $b=\frac12$ maps them to $1,2,3,\ldots$; if we take the even numbers, $a = \frac12$ and $b=0$ maps them to $1,2,3,\ldots$

Suppose there is a smallest $n$ such that there is no valid arrangement of $1,2,\ldots,n$. We know that $n > 4$, because of the solution you give in the question. But if we separate the odds and evens, we reduce to two halves which are smaller than $n$, and we have valid arrangements for them by using the linearity. By contradiction, there is no $n$ which has no valid arrangement.