Let $a_1,...,a_n $ non negative integers s.t. $a_1+...+a_n=2011$, where $n $ is a positive integer, $n\geq3$ and $a_1\leq |a_2-a_3|$, $a_2\leq|a_3-a_4|$,..., $a_n\leq|a_1-a_2|$.
This problem is similar to What can I say about the minimum and the maximum value of $n $?, only that here the $a_n$ are allowed to be zero.
I have an answer but I am not sure if it is right.
I have to take two cases: $a_3\leq a_2$ or $a_2\leq a_3$.
If $a_3\leq a_2\Rightarrow |a_2-a_3|=a_2-a_3\Rightarrow a_1\leq a_2-a_3\Rightarrow a_1\leq a_2\Rightarrow |a_1-a_2|=a_2-a_1\Rightarrow a_n\leq a_2\Rightarrow a_{n-1}\leq|a_n-a_1|\leq a_2\Rightarrow...\Rightarrow a_4\leq a_2\Rightarrow |a_3-a_4|\leq a_2.$
But $a_2\leq |a_3-a_4|$. Then $|a_1-a_2|=|a_3-a_4|=...=|a_n-a_1|=a_2$.
So $a_1=a_3=a_5=...=0$ and $a_2=a_4=a_6=...$.
Therefore $k\cdot a_2=2011\Rightarrow a_2=1$ and $k=2011$ $\Rightarrow n=4022$.
The other case is similar.
I don't want to post it but I am just curious!!! It is right my argument?