MathLabs

Problem 1

The Bank of Oslo issues two types of coin: aluminium (denoted AA) and bronze (denoted BB). Marianne has nn aluminium coins and nn 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 k≤2nk\le2n, Marianne repeatedly performs the following operation: she identifies the longest chain containing the kk-th coin from the left, and moves all coins in that chain to the left end of the row. Find all pairs (n,k)(n,k) with 1≤k≤2n1\le k\le2n such that for every initial ordering, at some moment during the process, the leftmost nn coins will all be of the same type.
Step 4 of 5: Show the chain count keeps dropping for n≤k≤⌈3n/2⌉n\le k\le\lceil3n/2\rceil
n≤k≤⌈3n/2⌉ ⇒ chains keep merging until 2 remainn\le k\le\lceil3n/2\rceil\ \Rightarrow\ \text{chains keep merging until }2\text{ remain}
Detailed analysis

If kk falls in the first chain [1,l][1,l] with l≥k≥nl\ge k\ge n, then l=nl=n exactly, which is already the desired conclusion. If instead kk falls in the last chain, a pigeonhole count shows that whenever there are at least 44 chains, some chain has fewer than 2n−k+12n-k+1 coins and so cannot always contain the last position holding kk; hence kk must eventually land inside an interior chain (triggering the merge of the previous step) or in a configuration of only 22 or 33 chains, and repeating this argument drives the chain count down to 22, at which point the leftmost nn coins share one type.