If $x$ is equal to at least $51$ number of the array $a_1, \frac{a_1+a_2}{2},\ldots,\frac{a_1+a_2+\ldots+a_{100}}{100}$, prove that $2$ numbers of the array $a_1,a_2\ldots,a_{100}$ are equal.
That's the way the problem is originally stated. It doesn't tell me whether at least or exactly $2$ numbers of the array $a_1,a_2\ldots,a_{100}$ are equal.
I've thought of a way to define the problem in a different way:
If $n_1,n_2,\ldots,n_{100}$ is an array of distinct natural numbers that belong to the interval $[1\:;100]$ and $k\in\mathbb N$, $k\le50$ and $\begin{cases}n_1x=a_1+a_2\ldots+a_{n_1}\\n_2x=a_1+a_2\ldots+a_{n_2}\\\ldots\\n_{50+k}x=a_1+a_2\ldots+a_{n_{50+k}}\end{cases}$, prove that $2$ numbers of the array $a_1,a_2\ldots,a_{100}$ are equal.
I have no idea at the moment how we could come up with a proof that $2$ numbers of the array $a_1,a_2\ldots,a_{100}$ are equal. Some ideas would be great. Thanks.
This should work
Let $b_i$ denote the $i$th term of the sequence.
By pigeonhole principle, at least two consecutive terms $b_n, b_{n+1}$ are equal.
If $n$ is even, then necessarily at least one other pair of consecutive terms are equal. If $b_k, b_{k+1}$ are equal, then it can be shown that $a_{n+1} = a_{k+1}$
If $n$ is odd, then it can be that $b_n, b_{n+1}$ is the only pair. If it wasn't, then we can conclude similarly as above. So consider $b_n, b_{n+1}$ being the only pair. $b_1 = a_1$ must be one of the terms equal to $x$ (the terms equal are $a_1 = a_3 = \dots = a_n = a_{n+1} = a_{n+3} = \dots = a_{100}$). Furthermore, $\frac{a_1 + a_2 + a_3 + \dots + a_n}{n} = \frac{a_1 + a_2 + a_3 + \dots + a_{n+1}}{n+1}$, so $a_{n+1} = \frac{a_1+a_2+a_3+\dots+a_n}{n} = x$. Thus, $a_{n+1} = a_1$. $\blacksquare$
Btw, do you know where this problem is from? Seems like a 1990s USAMO problem.