Good Sequences

For all n N , n \in \mathbb{N}, a sequence ( x 1 , x 2 , , x n ) (x_1, x_2, \cdots , x_n) of positive integers (not necessarily distinct) is called good if

  • for all k 1 , k \geq 1, if k + 1 k+1 appears in the sequence, so does k k , and
  • the first occurrence of k k happens before the last occurrence of k + 1 k+1 (i.e. if j j is the smallest integer such that x j = k x_j=k and h h is the largest integer such that x h = k + 1 , x_h= k+1, then j < h j<h ).

Find the number of good sequences of length 5 5 .

Details and assumptions

  • This problem is not original.
  • The five integers need not be distinct.
  • For example, ( 1 , 2 , 3 , 4 , 5 ) (1, 2, 3, 4,5) and ( 1 , 2 , 4 , 3 , 4 ) (1,2, 4, 3, 4) are two good sequences of length 5 5 .


The answer is 120.

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.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...