Call a permutation of the integers quasi-increasing if for each . For example, and are quasi-increasing permutations of the integers , but is not. Find the number of quasi-increasing permutations of the integers .
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.
We can find a recursive formula for the number of quasi-increasing sequences of the first n natural numbers.
Let the number of quasi-increasing sequences for the first n natural numbers be s n .
s 1 = 1 and for n = 2 , the 2 can go anywhere, so s 2 = 2 ! . For n = 3 , you can put the 3 anywhere on any sequence for n = 2 , so s 3 = 3 ! .
Now, for n = 4 , you can't put the 4 before the 1 , so there are 4 − 1 more options for where to put the 4 . This means s 4 = 3 ! × 3 .
For n = 5 , you can't put the 5 before the 2 or 1 , so there are 5 − 2 places to put the 5 , thus s 5 = 3 ! × 3 2 .
This pattern will hold for s 6 and s 7 , so we know that s 7 = 3 ! × 3 4 = 4 8 6