Exact 321-avoiding heap counts from nonexcedance rank rectangles

How many labelings of a complete \(k\)-ary heap increase along every parent edge and avoid a decreasing triple in breadth-first order? The paper gives a uniform exact count for every integer \(k\ge2\) and \(n\ge1\), with labels \(1,\ldots,n\). Every level except possibly the last is full, and the last is filled from the left. In a \(321\)-avoider, strict excedances and nonexcedances each form an increasing chain. Matching the ranks of each chain in position and value order recovers the permutation. For the \(b\)-th nonexcedance, let \(P_b\) and \(Q_b\) count the earlier excedances in position and value order, respectively, with \(P_0=Q_0=0\). Its position and label are \(b+P_b\) and \(b+Q_b\). Exact chain statuses require \(Q_b\le P_{b-1}\). The only parent edge requiring a further rank comparison goes from an excedance of rank \(a\) to a nonexcedance of rank \(b\), and it is legal exactly when \(a\le Q_b\). The transfer fixes a binary status mask on the first \(m=\lceil(n-1)/k\rceil\) positions, which are exactly the parent positions, with a nonexcedance root when \(m>0\). At layer \(b\) it places a nonexcedance at \(c=b+P\) of value \(b+Q\), with \(0\le P,Q\le n-b\). The transition sums previous counts with \(P'\le P\), \(Q'\le Q\), and \(P'\ge Q\), subject to the positional mask. Write \(p(c)=\lceil(c-1)/k\rceil\) for the parent at \(c>1\), \(A(u)=\sum_{i=1}^{u}e_i\) on the fixed mask, and \(z(c)=\max(\{0\}\cup\{i\le m:i<c,\ e_i=0\})\). Set \(g(c)=A(p(c))\) if \(c>1\) and the parent bit is one, and \(g(c)=0\) otherwise. The state is zero if \(c\le m\) and \(e_c=1\), or if \(Q<g(c)\). Otherwise the predecessor rectangle gives \[D_b(P,Q)=\sum_{P'=\max(0,Q,z(c)-b+1)}^P\ \sum_{Q'=0}^Q D_{b-1}(P',Q'). \] Starting from \(D_0(0,0)=1\) and zero elsewhere, the final count is \[H_{k,n}(321)=\sum_e\sum_{b=1}^{n}\sum_{Q=0}^{n-b}D_b(n-b,Q),\] where \(e\) ranges over the admissible parent masks and each state array is computed for that mask. Rectangle sums give \(O(2^{\lceil(n-1)/k\rceil}n^3)\) arithmetic operations and \(O(n^2)\) working integer entries with \(O(n)\)-bit counts. At fixed \(k\), \(2^{1/k}\) is the exponential base of the arithmetic upper bound, while the established growth rate of the counted class is \(4\). For a star, \(n\ge2\) and \(k\ge n-1\), the count is \(\frac1n\binom{2n-2}{n-1}\). **Original problems** - Levin, Pudwell, Riehl and Sandberg, §§2.3 and 5. For every \(k\ge2\) and \(n\ge1\), count the labelings by \(1,\ldots,n\) of the complete left-filled \(k\)-ary heap that increase along each parent edge and avoid classical \(321\) in breadth-first order. The exact rank transfer counts all such labelings for the prescribed shape, with \(O(2^{\lceil(n-1)/k\rceil}n^3)\) arithmetic operations. It recovers the earlier binary counts through length \(31\) and the Catalan count for stars. Variable shapes and the binary log-convexity question lie outside the result.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-01
DOI
https://doi.org/10.5281/zenodo.24700754
Primary Topic
Advanced Combinatorial Mathematics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Exact 321-avoiding heap counts from nonexcedance rank rectangles

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Advanced Combinatorial Mathematics
preprint

Exact 321-avoiding heap counts from nonexcedance rank rectangles

Zixuan He
preprint en

Abstract

How many labelings of a complete \(k\)-ary heap increase along every parent edge and avoid a decreasing triple in breadth-first order? The paper gives a uniform exact count for every integer \(k\ge2\) and \(n\ge1\), with labels \(1,\ldots,n\). Every level except possibly the last is full, and the last is filled from the left. In a \(321\)-avoider, strict excedances and nonexcedances each form an increasing chain. Matching the ranks of each chain in position and value order recovers the permutation. For the \(b\)-th nonexcedance, let \(P_b\) and \(Q_b\) count the earlier excedances in position and value order, respectively, with \(P_0=Q_0=0\). Its position and label are \(b+P_b\) and \(b+Q_b\). Exact chain statuses require \(Q_b\le P_{b-1}\). The only parent edge requiring a further rank comparison goes from an excedance of rank \(a\) to a nonexcedance of rank \(b\), and it is legal exactly when \(a\le Q_b\). The transfer fixes a binary status mask on the first \(m=\lceil(n-1)/k\rceil\) positions, which are exactly the parent positions, with a nonexcedance root when \(m>0\). At layer \(b\) it places a nonexcedance at \(c=b+P\) of value \(b+Q\), with \(0\le P,Q\le n-b\). The transition sums previous counts with \(P'\le P\), \(Q'\le Q\), and \(P'\ge Q\), subject to the positional mask. Write \(p(c)=\lceil(c-1)/k\rceil\) for the parent at \(c>1\), \(A(u)=\sum_{i=1}^{u}e_i\) on the fixed mask, and \(z(c)=\max(\{0\}\cup\{i\le m:i<c,\ e_i=0\})\). Set \(g(c)=A(p(c))\) if \(c>1\) and the parent bit is one, and \(g(c)=0\) otherwise. The state is zero if \(c\le m\) and \(e_c=1\), or if \(Q<g(c)\). Otherwise the predecessor rectangle gives \[D_b(P,Q)=\sum_{P'=\max(0,Q,z(c)-b+1)}^P\ \sum_{Q'=0}^Q D_{b-1}(P',Q'). \] Starting from \(D_0(0,0)=1\) and zero elsewhere, the final count is \[H_{k,n}(321)=\sum_e\sum_{b=1}^{n}\sum_{Q=0}^{n-b}D_b(n-b,Q),\] where \(e\) ranges over the admissible parent masks and each state array is computed for that mask. Rectangle sums give \(O(2^{\lceil(n-1)/k\rceil}n^3)\) arithmetic operations and \(O(n^2)\) working integer entries with \(O(n)\)-bit counts. At fixed \(k\), \(2^{1/k}\) is the exponential base of the arithmetic upper bound, while the established growth rate of the counted class is \(4\). For a star, \(n\ge2\) and \(k\ge n-1\), the count is \(\frac1n\binom{2n-2}{n-1}\). **Original problems** - Levin, Pudwell, Riehl and Sandberg, §§2.3 and 5. For every \(k\ge2\) and \(n\ge1\), count the labelings by \(1,\ldots,n\) of the complete left-filled \(k\)-ary heap that increase along each parent edge and avoid classical \(321\) in breadth-first order. The exact rank transfer counts all such labelings for the prescribed shape, with \(O(2^{\lceil(n-1)/k\rceil}n^3)\) arithmetic operations. It recovers the earlier binary counts through length \(31\) and the Catalan count for stars. Variable shapes and the binary log-convexity question lie outside the result.

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Advanced Combinatorial Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon