There are n trains numbered 1 to n which enter and leave a station in a stack structure as shown in the photo below. How many types of possible "pop" sequences are there?
For example, a possible path sequence of n=5 trains would be, 1 enters, 1 leaves, 2 enters, 2 leaves, 3 enters, 3 leaves, ..., resulting in 12345 as the possible pop sequence.
If n=6, are the following sequences possible:
- 435612
- 325641
- 154623
- 135426
