Count the number of permutations

Among 5 ! 5! permutations of the digits 1 , 2 , 3 , 4 , 5 1, 2, 3, 4, 5 consider those permutations a 1 a 2 a 3 a 4 a 5 \overline{a_1 a_2 a_3 a_4 a_5} that there is no triple of indices i < j < k i < j < k such that a k < a i < a j a_k < a_i < a_j . In other words, a i a_i , a j a_j and a k a_k are not in the same relative positions as 2 2 , 3 3 and 1 1 .

For example, 32154 32154 is an example of such permutation whereas 53412 53412 is not (since a 4 = 1 < a 2 = 3 < a 3 = 4 a_4 = 1 < a_2 = 3 < a_3 = 4 ).

How many permutations are there?


The answer is 42.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Patrick Corn
Jul 20, 2018

Let a n a_n be the number of such permutations on n n digits. Look at where n n is in the list. The digits to the left of n n must all be less than the digits to the right of n . n. So the digits to the left of n n form a permutation of 1 , 2 , , k 1,2,\ldots,k and the digits to the right form a permutation of k + 1 , , n 1. k+1,\ldots,n-1. And the full permutation satisfies the condition if and only if the two sub-permutations on the left and right satisfy the condition.

If we set a 0 = 1 , a_0 = 1, this leads to the formula a n = k = 0 n 1 a k a n 1 k . a_n = \sum_{k=0}^{n-1} a_k a_{n-1-k}.

This is the same recurrence relation satisfied by the Catalan numbers , with the same initial condition a 0 = 1. a_0=1. So a n a_n is the n n th Catalan number, a n = 1 n + 1 ( 2 n n ) . a_n = \frac1{n+1} \binom{2n}{n}. In particular, a 5 = 42 . a_5 = \fbox{42}.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...