A direct index formula for Russo's extremal Heap parking order
Russo asked for a closed formula for the top-level parking order in the extremal even-size Heap schedule. Given any even integer \(n\ge 2\) and any integer slot \(0\le j<n\), the formulas below give the literal label \(e_j\) using a number of integer operations bounded independently of \(n\) and \(j\). The order starts at \(e_0=n\). Russo, §10, item 2, first clause For \(n\ge4\), the order \((n,e_1,\ldots,e_{n-1})\) lists the successive labels of the cycle \(Z_n=U^{-n}T_n\) starting at \(n\). Here \(U\) is the net permutation of the prescribed size-\((n-1)\) schedule and \(T_n\) is the prescribed size-\(n\) target. Products act from right to left, so \(Z_n\) applies \(T_n\) first and \(e_j=Z_n^j(n)\). Russo, §7.2, Definition 22 and Theorem 23 At size two, the cyclic branch gives \(e_j=2-j\). When \(4\mid n\), put \(J=(n-4)/4\) and set \(e_0=n\). The remaining labels are given by the following rules, with \(h\) an integer in the indicated range. \[\begin{array}{c|c} \text{Slot }j & e_j\\ \hline 2h-1,\quad 1\le h\le J & n-1-4h\\ 2h,\quad 1\le h\le J & 4h+2\\ 2J+2h+1,\quad 0\le h<J & n-3-4h\\ 2J+2h+2,\quad 0\le h<J & 4h+4\\ 4J+1 & 1\\ 4J+2 & n-1\\ 4J+3 & 2 \end{array} \] These rules index the orbit already exhibited by Russo, with its start moved to \(n\). At \(n=4\) the ranges involving \(h\) are empty, giving \((4,1,3,2)\). Russo, §7.2, proof of Theorem 23(b) For \(n\equiv2\pmod4\) and \(n\ge6\), set \(a=(n-2)/4\) and \(L=2a+2\). Use the least non-negative residue whenever taking a modulus. For an integer coordinate \(s\), define \[i_s=(a+1+s)\bmod L,\qquad x_s=\begin{cases} 2i_s+1,&0\le i_s\le a,\\ n-1,&i_s=a+1,\\ 2(i_s-a-1),&a+2\le i_s<L. \end{cases} \] Take \(p=a\) if \(a\) is even and \(p=3a+2\) if \(a\) is odd. Compute \(q=(j+p)\bmod n\), then use the corresponding row below. The floor \(\lfloor t\rfloor\) is the greatest integer at most \(t\). \[\begin{array}{c|c|l} \text{Range of }q & s & e_j\\ \hline q=0 & 0 & x_0\\ q=L-1 & 1 & x_1\\ 0<q<L-1 & 3+2\lfloor(q-1)/2\rfloor & x_s\ \text{if }q\text{ is odd, and }n+1-x_s\ \text{if }q\text{ is even}\\ L\le q<n & 2+2\lfloor(q-L)/2\rfloor & x_s\ \text{if }q\text{ is even, and }n+1-x_s\ \text{if }q\text{ is odd} \end{array} \] The labels \(x_0,\ldots,x_{L-1}\) form the single nontrivial cycle of \(U\), in that order, with \(x_0=n-1\) and \(x_1=2\). Since \(n=2L-2\), the quotient applies the reversal \(T_n(x)=n+1-x\) followed by \(U^2\). Reversal interchanges \(x_0\) and \(x_1\), so the quotient sends them directly to \(x_3\) and \(x_2\), respectively. From every other \(x_s\), the quotient visits the reversed label outside the cycle of \(U\) before returning to \(x_{s+2}\), with the coordinate read modulo \(L\). The earlier orbit description identifies these returns. The direct formula counts the one or two parking steps each return takes, and \(p\) is the slot where the orbit starting at \(x_0\) reaches \(n\). This supplies the requested index for every slot, including size six. Earlier formalisation of the residue-two quotient orbit The parking label also determines the actual position swapped with \(n\) at step \(1\le j<n\). The partner is \(1\) at size two and \(U^j(e_j)\) for \(n\ge4\). Given the cycle \((c_0,\ldots,c_{d-1})\) of \(U\) containing \(e_j=c_r\), written in the order in which \(U\) visits its \(d\) labels, the partner is \(c_{(r+j)\bmod d}\). A fixed label has \(d=1\). Use the cycle of the \(x_s\) above in the residue-two case and Russo's arithmetic cycle lists in the divisible-by-four case. Russo, §7.2, Lemma 24
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-04
- DOI
- https://doi.org/10.5281/zenodo.24804285
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint