Generating key points…
Answers are grounded in this paper and cite their sources.
How many permutations are sorted by a consecutive-pattern stack followed by West's stack? For first-stack patterns \(213\) and \(312\), the paper counts all successful inputs at every length and proves that the two sequences have the same exponential growth rate. The first stack reads left to right and pushes a pending entry if the resulting stack, read from top to bottom, avoids the specified consecutive pattern. Otherwise it pops and retries, then flushes when the input ends. Let \(a_n(τ)\) count the permutations of \(1,…,n\) whose first-stack output avoids classical \(231\), the condition for West's stack to sort it. Classical avoidance forbids subsequences of the given relative order. The two counts at length six are \(180\) and \(179\), respectively. Complementing values by \(i↦ n+1-i\) changes the first-stack patterns to \(231\) and \(132\), respectively, and the output test to classical \(213\). In both cases the survivor word, formed by the entries left for the final flush in input order, avoids classical \(312\). Use its standardized form, replacing entries by their ranks, and split it into indecomposable direct-sum components at every cut with all earlier values below all later values. For the original \(213\) stack, survivors also avoid consecutive \(132\), and every component after the first is a singleton or begins with an ascent. All ascents are slots assigned to their right endpoint's component. The input block at each slot is emitted in the same order. For the original \(312\) stack, survivors avoid consecutive \(231\) with no extra restriction on later components. Slots are internal descents assigned to their own component, and the input block is emitted in reverse order. Entries emitted before the flush are low or high according as they fall below or above the largest survivor. Choose \(m\) marked slots in chronological order and a nondecreasing list of \(m\) low rank gaps. A gap after component \(i\) may be used only if \(i\) is before the final component and at least the index of the matching slot's component. Place one low at the end of each marked slot. Split the slots into chunks of sizes \(q_1,…,qₘ₊₁\), ending the first \(m\) chunks at their marks and allowing the last chunk to be empty. The high values occupy decreasing rank intervals across chunks. Within each chunk use a classical \(213\)-avoiding high word partitioned into decreasing slot blocks, allowing empty blocks. The number of these partitions with the word included is \(Jq,h\) for \(q\) slots and \(h\) highs, with \(Jq,0=1\), \(J0,h=0\) for \(h>0\), and \[Jq,h=∑d=0min(h-1,q-1)1h hd h{d+1}{q+h-1-d}{h}(q,h≥1). \] With \(J_q(z)=∑h≥0Jq,hz^h\), a survivor word of length \(k\) and a choice of marks and gaps contribute \(zᵏ⁺ᵐ∏ⱼ₌₁ᵐ⁺¹Jq_j(z)\). Sum over the allowed data and add \(1\) for the empty input. The coefficient of \(z^n\) is the full count for each branch. Let \(z\) weight length and \(t\) weight survivor slots. The ascent series \(U\) counts a later component with its preceding boundary slot, and \(C\) counts one descent-branch component. Their defining equations are \[{aligned} U^2-(1-z)(1+zt)U+zt(1-z)&=0, & U(z,0)&=0,\\ C^2-(1+z-z(1-z)t)C+z&=0, & C(z,0)&=z. {aligned} \] The ascent first-component series is \(z(1-U)/(1-U-z)\). The high series is \(Φ(z,v)=∑q≥0J_q(z)v^q=1+v/1-vA(z/1-v,v)\), where \(A(x,v)=1+xA(x,v)(1-v+vA(x,v))\) and \(A(0,v)=1\). For \(0<z<1\), the common survivor slot radius is \(t_S(z)=(1-√ z)/(z(1+√ z))\) and the high slot radius is \(v_H(z)=(1-z)^2/(1+z)^2\). Matching reciprocal slot weights gives the crossing \(t_S(ρ)v_H(ρ)=1\). A separate convergence bound controls low insertions below that crossing. Subclasses using only highs attain the full exponential rate and admit injective concatenation, yielding the ordinary limits \[limn→∞(a_n⁽²¹³⁾)1/n=limn→∞(a_n⁽³¹²⁾)1/n=r⁻²≈5.3616120485, (1-r)^3(1+r)=r^2(1+r^2)^2, \] where \(r\) is the unique root in \((0,1)\) and \(ρ=r^2\). The asymptotic result determines the exponential scale of both full classes. Defant and Zheng, §8, first table, 213 row. What is the asymptotic growth of the number of length-\(n\) permutations whose output from the greedy stack forbidding consecutive top-to-bottom \(213\) avoids classical \(231\)? For the full A337526 class the ordinary \(n\)th-root limit is \(r⁻²\), where \(r∈(0,1)\) uniquely solves \((1-r)^3(1+r)=r^2(1+r^2)^2\). This gives the exponential rate. The paper also gives exact counts at every length by the ascent-slot construction after complementation. Defant and Zheng, §8, first table, 312 row. What is the asymptotic growth of the number of length-\(n\) permutations whose output from the greedy stack forbidding consecutive top-to-bottom \(312\) avoids classical \(231\)? For the full A337522 class the ordinary \(n\)th-root limit is \(r⁻²\), where \(r∈(0,1)\) uniquely solves \((1-r)^3(1+r)=r^2(1+r^2)^2\). This gives the exponential rate. The paper also gives exact counts at every length by the descent-slot construction, with inserted chains emitted in reverse order in complemented variables.
No takes yet. Share an insight, caveat, or question.
Zixuan He (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: