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 2 of 5: Rule out k>⌈3n/2⌉k>\lceil3n/2\rceil with a four-chain cycle
⌊n/2⌋, ⌈n/2⌉, ⌈n/2⌉, ⌊n/2⌋\lfloor n/2\rfloor,\ \lceil n/2\rceil,\ \lceil n/2\rceil,\ \lfloor n/2\rfloor
Detailed analysis

For k>⌈3n/2⌉k>\lceil3n/2\rceil, take four chains of sizes ⌊n/2⌋,⌈n/2⌉,⌈n/2⌉,⌊n/2⌋\lfloor n/2\rfloor,\lceil n/2\rceil,\lceil n/2\rceil,\lfloor n/2\rfloor alternating A,B,A,BA,B,A,B; since the last chain has at least ⌊n/2⌋\lfloor n/2\rfloor coins, kk always falls inside it, and moving it to the front simply rotates the four chains, so the pattern repeats forever without ever producing nn matching leftmost coins.