Problem 1
The Bank of Oslo issues two types of coin: aluminium (denoted ) and bronze (denoted ). Marianne has aluminium coins and bronze coins arranged in a row in some arbitrary initial order. A chain is any subsequence of consecutive coins of the same type. Given a fixed positive integer , Marianne repeatedly performs the following operation: she identifies the longest chain containing the -th coin from the left, and moves all coins in that chain to the left end of the row. Find all pairs with such that for every initial ordering, at some moment during the process, the leftmost coins will all be of the same type.
Step 3 of 5: If lies strictly inside a chain, two chains merge
In plain words
Moving a middle chain to the front joins its two neighbouring same-type chains into one, so the total chain count can only fall.
Detailed analysis
Suppose lies inside a chain with and (not the first or last chain). Removing to the front lets the chain just before it and the chain just after it become adjacent; since and have the same coin type, they merge into a single chain, so the total number of chains strictly decreases.