Problem 5
Given a permutation of the sequence . A transposition of with is called legal if for , and . The permutation is called regular if after a number of legal transpositions it becomes . For which numbers is the permutation regular?
Step 4 of 5: Prove the inductive transition to establish
In plain words
Think of as an in-place merge sort: leftward sweeps peel elements one by one off every second block of size and weld them onto the adjacent blocks to form blocks of size .
Detailed analysis
Suppose and we are at . For each in turn, sits right after and performs a leftward pass swapping successively with , which are the leading elements of the odd-numbered blocks after . Each pass appends to the initial block , transfers one element from each odd-numbered block to the end of the preceding even-numbered block, and shrinks the odd-numbered blocks by . After all passes (), the odd-numbered blocks vanish and the even-numbered blocks double to size , yielding . When , we have , so induction reaches .