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 k2nk \leq 2n, Marianne repeatedly performs the following operation: she identifies the longest chain containing the kthk^{\text{th}} coin from the left, and moves all coins in that chain to the left end of the row. For example, if n=4n = 4 and k=4k = 4, the process starting from the ordering AABBBABAAABBBABA would be

AABBBABABBBAAABAAAABBBBABBBBAAAABBBBAAAA.AAB\underline{B}BABA \rightarrow BBB\underline{A}AABA \rightarrow AAA\underline{B}BBBA \rightarrow BBB\underline{B}AAAA \rightarrow BBB\underline{B}AAAA \rightarrow \cdots.

Find all pairs (n,k)(n,k) with 1k2n1 \leq k \leq 2n such that for every initial ordering, at some moment during the process, the leftmost nn coins will all be of the same type.