I am trying to solve a combinatorial problem regarding a specific class of permutations.
The Problem: Consider a permutation $\sigma$ of the set $\{1, 2, \dots, n\}$, where $n=13$. The permutation satisfies the condition that for every index $i$ (where $2 \le i \le n$), the element $\sigma_i$ is either strictly greater than all preceding elements or strictly smaller than all preceding elements.
Formally, for all $i \in \{2, \dots, n\}$: $$ \sigma_i > \max(\sigma_1, \dots, \sigma_{i-1}) \quad \text{or} \quad \sigma_i < \min(\sigma_1, \dots, \sigma_{i-1}) $$
How many such permutations exist for $n=13$?
My Attempt: I started by looking at small cases to find a pattern:
- For $n=1$: There is only $(1)$. (1 permutation)
- For $n=2$: The permutations are $(1,2)$ and $(2,1)$. Both satisfy the condition. (2 permutations)
- For $n=3$:
- $(1,2,3)$ works (2 is max, 3 is max).
- $(3,2,1)$ works (2 is min, 1 is min).
- $(2,1,3)$ works (1 is min, 3 is max).
- $(2,3,1)$ works (3 is max, 1 is min).
- $(1,3,2)$ fails because 2 is neither greater than 3 nor smaller than 1.
It seems like for each step $i$, we have two choices relative to the previous elements, but I am unsure how to formalize this into a general formula for $n=13$.
Any insights or hints on how to count these would be appreciated.
Tags: combinatorics, permutations, discrete-mathematics