Problem

COM-B2-M04-P011 Swapping Neighbours

#11 Grade 9 Grade 10 ★★★☆☆ Level 3 of 5

The numbers \(1,2,\ldots,n\) are arranged in some order. In one move, one may swap two neighbouring numbers if the left one is larger than the right one. Prove that no matter how the moves are chosen, the process ends with the increasing sequence.