Maximal Lehmer Codes for Permutations with Classical and Consecutive 321-Avoidance
arXiv:2609.33137
Abstract
Let and denote the sets of -permutations avoiding the classical pattern and the consecutive pattern , respectively. Permutations are in bijection with Lehmer codes, a type of inversion sequence. Using Lehmer codes, we create the corresponding weighted posets and , where the weight of a code is the inversion number of its permutation. We show that there are maximal elements of , while the maximal elements of are enumerated by the Padovan numbers. We also show that when is even, each of these posets has a unique maximum weight element, and that when is odd, there are two maximum weight elements. These maximum weight Lehmer codes correspond to the pattern avoiding permutations with maximum inversion number.
arXiv comment19 pages, 5 figures