Today my friend asked me following question:
Consider the set $ A= \{1,2,3,4,5\}$ By using the elements of this set, can you find a permutation that neither has an increasing sequence of length 3, nor has a decreasing sequence of length 3?
for example:
$3,4,2,1,5$ has an increasing sequence of length $3$, namely $3,4,5$
$5,3,1,2,4$ has a decreasing sequence of length $3$, namely $5,3,2$
I feel like I cannot find such a sequence. I guess problem is that this set has 5 elements and therefore I cannot create such a sequence. If it had 4 elements, I would find lots of sequences with that property. (With the same number of elements, length 4 would be OK too.) But how can I prove it to him? Could you please explain to me?
Best Regards