There is no ascending subsequence with more than elements, and
There is no descending subsequence with more than two elements.
Note that subsequences need not be contiguous. For example, the permutation is not counted because it has a descending subsequence of three elements: . You are given and .