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 5 of 5: Rule out odd not of the form and state the final answer
In plain words
Once the block size reaches the highest power of dividing , there are an even number of blocks left after , which mimics the even- trap and lands right behind .
Detailed analysis
Finally, suppose is odd but not of the form , so with integers and . Since , the same transitions lead from to , where is followed by blocks of size : . In the very next pass, swaps successively with . Because is the first element of the second block , this swap places immediately after the last element of the first block , where the process halts incomplete. Hence the permutation is regular if and only if or for a positive integer .