Generating key points…
Answers are grounded in this paper and cite their sources.
For every \(n≥ 1\), a circular word with \(m\) distinct length-\(n\) weak-order windows exists exactly when \(1≤ m≤ F_n\), where \[F_n=∑ⱼ₌₁ⁿj!{n j}. \] Here \({n j}\) counts partitions of the \(n\) labels into \(j\) nonempty classes, and \(j!\) orders those classes. In the literal height representation, the letter at position \(i\) counts the strict cuts preceding the class of label \(i\). Thus the set of letters in each valid window is exactly \(\{0,…,h\}\) for some \(0≤ h<n\). Windows are read cyclically from every position, going round the circle again as needed when \(m<n\). This gives the full range of lengths asked for in Diaconis and Ruskey's Problem 477, Question 6, permutations with ties, printed p. 5343. At full length \(F_n\), every valid window occurs once. The number \(U_n\) of such circles up to rotation is given below by a determinant of order \(Fₙ₋₁-1\) for \(n≥2\), multiplied by an explicit factorial product. The count identifies words under rotation only. This answers the enumeration question in Diaconis and Ruskey's Problem 477, Question 3, permutations with ties, printed p. 5343. Both answers concern the literal height branch \(P'_n\). To construct a circle of a prescribed length, use the directed overlap graph in which each valid window is an arc from its length-\((n-1)\) prefix to its length-\((n-1)\) suffix. A set of \(m\) arcs with equal incoming and outgoing degrees at each vertex and connected after directions and isolated vertices are ignored gives the required circle. Take an Euler tour, which traverses each selected arc once, and read the last letter of each arc in order. The overlaps recover the arc labels as windows, including across the join. The binary part of the construction supplies every length \(1≤ b≤ B=2^n-1\) while excluding the invalid window \(1^n\), where a power denotes repetition of a letter. At width \(n=1\), use the circle \(0\). At width \(n≥2\), for \(b<2ⁿ⁻¹\), reuse the length-\(b\) circle constructed at width \(n-1\). For \(2ⁿ⁻¹≤ b≤ B\), start with the full binary overlap graph and delete the loop \(1^n\). Set \(d=B-b\). If \(d>0\), construct the length-\(d\) circle at width \(n-1\) and delete the cycle through its successive length-\((n-1)\) windows. These deletions leave every binary vertex with positive, equal incoming and outgoing degrees. To join components, choose a full-graph arc \(xt→ ty\) between two components and retained arcs \(xt→ tz\) and \(wt→ ty\). Here \(x,y,z,w\) are bits and \(t\) has length \(n-2\). Replace the two retained arcs by \(xt→ ty\) and \(wt→ tz\). Each switch joins components, preserves the number of arcs and leaves the forbidden loop absent. Repeat until connected. The resulting selection at these lengths visits every binary vertex. The switch is adapted from Gabric, Holub and Shallit, §2, Lemma 4. For \(B<m≤ F_n\), group the windows containing a height of at least 2 into rotation classes, each of which gives a closed trail of at most \(n\) arcs. Order the classes by increasing sum of their letters, breaking ties arbitrarily. Let \(S_i\) count the arcs in the first \(i\) classes, with \(S_0=0\), and take the first \(i\) such that \(B+S_i≥ m\). Join those classes to a binary selection of \(m-S_i\) arcs. This binary selection can visit every binary vertex because \(2ⁿ⁻¹≤ B-n+1≤ m-S_i≤ B\). In each added class, rotate a largest letter \(h\) to the front, giving a window \(hβ\) with suffix \(β\). Replacing it by \(h-1\) gives another valid window with the same suffix and smaller letter sum. Thus the class meets an earlier class or a binary vertex, regardless of which binary arcs were selected. The class sizes and the adjustable binary length together give exactly \(m\) arcs. The largest-letter decrement is inherited from Sawada and Wong, §4. For the exact full-length count, build the matrix using only the length-\((n-1)\) words whose letters form an initial interval \(\{0,…,s-1\}\), with \(1≤ s≤ n-1\). Call these words packed, write \(P\) for their set and let \(s(u)\) be the number of distinct letters in \(u∈ P\). From each \(u\), take each appended letter \(a∈\{0,…,s(u)\}\). Rotate the resulting window \(ua\) left one position at a time, stopping after the first positive number of rotations for which its length-\((n-1)\) prefix is packed. Denote that prefix by \(v(u,a)\). This takes at most \(n\) rotations. Every intervening vertex has exactly one legal continuation, so the rotation rule follows the forced portion of the walk to the next packed vertex. For \(u,v∈ P\), set \[Cu,v=#\{a∈\{0,…,s(u)\}:v(u,a)=v\}, Lu,v=(s(u)+1) 1ᵤ₌ᵥ-Cu,v, \] where \( 1ᵤ₌ᵥ\) is 1 when \(u=v\) and 0 otherwise. Count each appended letter separately, even when several choices reach the same prefix. Delete the row and column for \(r=0ⁿ⁻¹\) to obtain \(L⁽ʳ⁾\). Then \[U_1=1, U_n= L⁽ʳ⁾∏ₛ₌₁ⁿ⁻¹(s!)^{\,s!{n-1 s}}(n≥2), \] with the empty determinant equal to 1. The determinant counts directed spanning trees leading to \(r\) after contracting the forced paths. The factorials count the choices of outgoing arc order in the Euler tour, using the unique window \(0^n\) to fix its starting position. The resulting counts for \(n=1,2,3,4\) are \(1,1,8,113192681472\), respectively. As \(n→∞\), with natural logarithms, \[log U_n=F_n/2(log n-1-log(2log 2)) +O\!(F_nlog n/n). \] The factorial product supplies both displayed terms. The tree count contributes between \(0\) and \(Fₙ₋₁log n\) to \(log U_n\), so the asymptotic estimates the growth without evaluating the determinant.
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: