Unranking $S$-avoiding permutations with two forbidden offsets
Ant\^onio Augusto Andr\'e
Key points
From the paper's conclusion- We show that when $|S| = 2$, the graph of forbidden squares is $2$-regular, a disjoint union of cycles, and that fixing a prefix leaves only paths and untouched cycles.
Abstract
Given a finite family of combinatorial objects with a total order, ranking asks for the position of a given object, and unranking asks for the object occupying a given position. Both provide algorithmic access to families too large to enumerate. Kagey gave a polynomial-time algorithm for several position-restricted families and left open the case of $\{-1,1\}$-avoiding permutations. We show that when $|S| = 2$, the graph of forbidden squares is $2$-regular, a disjoint union of cycles, and that fixing a prefix leaves only paths and untouched cycles. This yields polynomial-time prefix counting, ranking and unranking for every two-element set of offsets, covering $\{-1,1\}$. The same structure gives a short proof that the number of $\{-1,1\}$-avoiding permutations equals the $n$-th m\'enage number for odd $n$ and exceeds it by $2$ for even $n$, proving a conjecture recorded in the OEIS entry A354152.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- The counts of parity-odd vs even late-growing permutations in the group $\mathbb{S}_{2p-1}$ differ by $(-1)^p$arXiv · 2026
- A uniform double-factorial construction for consecutive-pattern packingsarXiv · 2026
- Ranking and Unranking Permutations in Heap's OrderarXiv · 2026
- The probability that two random generalized derangements have the same number of cyclesarXiv · 2026
- Extremal permutations of $\mathbb{Z}_n$ with many good slopes and applications to quantum Latin squaresarXiv · 2026
- Extremal Families for Matchings in PermutationsarXiv · 2026