2008 PUMaC Combinatorics A10
Source:
October 4, 2019
combinatorics
Problem Statement
In his youth, Professor John Horton Conway lived on a farm with cows. Conway wishes to move the cows from the negative axis to the positive axis. The cows are initially lined up in order on the negative axis. Conway can give two possible commands to the cows. One is the PUSH command, upon which the first cow from the negative axis moves to the lowest position on the positive axis. The other is the POP command, upon which the cow in the lowest position on the axis moves to the positive axis. For example, if Conway says PUSH POP times, then the resulting permutation of cows is the same, . If Conway says PUSH times followed by POP times, the resulting permutation of cows is .
How many output permutations are possible after Conway finishes moving all the cows from the negative axis to the positive axis?