Problem

COM-B2-M05-P011 Sorting by Adjacent Swaps

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

The numbers \(1,2,\ldots,n\) are arranged in an arbitrary order. If two neighbouring numbers are in the wrong order, they may be swapped. Prove that the process cannot continue forever.