Among permutations of the digits consider those permutations that there is no triple of indices such that . In other words, , and are not in the same relative positions as , and .
For example, is an example of such permutation whereas is not (since ).
How many permutations are there?
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.
Let a n be the number of such permutations on n digits. Look at where n is in the list. The digits to the left of n must all be less than the digits to the right of n . So the digits to the left of n form a permutation of 1 , 2 , … , k and the digits to the right form a permutation of k + 1 , … , 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 , this leads to the formula a n = 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 . So a n is the n th Catalan number, a n = n + 1 1 ( n 2 n ) . In particular, a 5 = 4 2 .