MathDB
permutations of 2000 volumes of encyclopedia with two rules

Source: Nordic Mathematical Contest 2015 #4

September 23, 2017
combinatorics

Problem Statement

An encyclopedia consists of 2000{2000} numbered volumes. The volumes are stacked in order with number 1{1} on top and 2000{2000} in the bottom. One may perform two operations with the stack: (i) For n{n} even, one may take the top n{n} volumes and put them in the bottom of the stack without changing the order. (ii) For n{n} odd, one may take the top n{n} volumes, turn the order around and put them on top of the stack again. How many different permutations of the volumes can be obtained by using these two operations repeatedly?