MathDB
Cycling cards in a row

Source: Canada Repêchage 2018/8

April 9, 2018
probabilitycombinatorics

Problem Statement

Let nn and kk be positive integers with 1kn1 \leq k \leq n. A set of cards numbered 11 to nn are arranged randomly in a row from left to right. A person alternates between performing the following moves:
[*] The leftmost card in the row is moved k1k-1 positions to the right while the cards in positions 22 through kk are each moved one place to the left. [*] The rightmost card in the row is moved k1k-1 positions to the left while the cards in positions nk+1n-k+1 through n1n-1 are each moved one place to the right.
Determine the probability that after some number of moves the cards end up in order from 11 to nn, left to right.