MathDB
Find the number of all such permutations P

Source: BStat-BMath 2017: Problem 7

May 14, 2017
number theorycountingcombinatoricscontests

Problem Statement

Let A={1,2,,n}A=\{1,2,\ldots,n\}. For a permutation P=(P(1),P(2),,P(n))P=(P(1), P(2), \ldots, P(n)) of the elements of AA, let P(1)P(1) denote the first element of PP. Find the number of all such permutations PP so that for all i,jAi,j \in A:
(a) if i<j<P(1)i < j<P(1), then jj appears before ii in PP; and
(b) if P(1)<i<jP(1)<i<j, then ii appears before jj in PP.