Generating key points…
Answers are grounded in this paper and cite their sources.
Diaconis asked how many universal cycles for ordinary set partitions can be written on an \(n\)-letter alphabet. For a positive integer \(n\), put \([n]=\{1,…,n\}\), let \( P_n\) be the set of partitions of \([n]\), and let \(L=B_n=| P_n|\) be the \(n\)th Bell number. A cyclic word of length \(L\) is a universal cycle if the length-\(n\) windows starting at its \(L\) cyclic positions give every partition exactly once. Two positions within a window belong to the same block precisely when their letters agree. The formula below counts the actual words up to rotation on any alphabet of size \(k\), and gives the count up to both rotation and global relabelling on the original \(n\)-letter alphabet. Problem 478 also raises separate questions about efficient generation, cutting down and finding a position in a specified cycle. Diaconis's Problem 478 and the definition in Problem 477, Jackson–Stevens–Hurlbert, printed pp. 5343–5344 The all-singleton partition \(D\) requires \(n\) distinct letters, so the count is zero for \(k<n\). For \(k≥ n\), label the alphabet \(0,…,k-1\). The unique window of type \(D\) fixes the starting point of the word. Let \(F_n(k)\) count completions when the letters of this first window are fixed to \(0,…,n-1\) in that order. The count with alphabet labels distinguished, up to rotation, is \[C_n(k)=(k)_nF_n(k), \] where \((x)_r=x(x-1)⋯(x-r+1)\) for an integer \(r≥1\), and \((x)_0=1\). On an \(n\)-letter alphabet, fixing the first window also fixes every alphabet name, so \(F_n(n)\) counts cycles up to rotation and global relabelling. To calculate \(F_n(k)\), keep the first \(n-1\) letters \(0,…,n-2\) marked because these are the letters needed to form the windows that cross the end of the word. A state records the equality classes of the most recent \(n-1\) letters, including the exact identity of each marked letter that occurs there. Name the remaining classes in order of first occurrence within this suffix. The initial state \(σ_0\) is the state of the suffix \(1,…,n-1\). If a state has \(b\) unmarked classes, appending a particular marked letter has weight \(1\), even if it is absent from the suffix, and appending the letter of a particular unmarked class also has weight \(1\). The remaining \(k-(n-1)-b\) letters have a common effect, so they form a single choice of that weight, omitted if the weight is zero. This choice includes previously used letters that are neither marked nor present in the suffix. For each choice, read the partition of the resulting length-\(n\) window, drop the oldest letter and rename the unmarked classes in the new suffix. For each \(A⊆ P_n\{D\}\), form the matrix \(M_A(k)\) whose entry in row \(σ\) and column \(τ\) sums the weights of choices from state \(σ\) to state \(τ\) that produce a pattern in \(A\). Set \(h_A(σ)=1\) if appending the actual marked letters \(0,…,n-2\) in order from \(σ\) produces only patterns in \(A\), and set it to zero otherwise. Writing \(h_A\) as a column vector and \(eσ_0\) for the coordinate unit column at \(σ_0\), the exact count is \[F_n(k)=∑_{A⊆ P_n\{D\}} (-1)L-1-|A|eσ_0TM_A(k)L-nh_A. \] The \(L-n\) transfers account for windows formed by appending letters after the first window. The closure test accounts for the \(n-1\) windows crossing the end. Inclusion–exclusion retains exactly the words that contain every pattern other than \(D\) across these \(L-1\) positions, so each such pattern occurs once. The matrix powers can be evaluated by sparse vector transfers. The bit time is \(2L-1poly(L,n,log(k+1))\) and the bit space is \(poly(L,n,log(k+1))\), where \(poly\) denotes a polynomial bound in the displayed arguments. At \(n=1\) the state is empty and there are no transfers or closure letters, giving \(F_1(k)=1\) for \(k≥1\). The same counts determine how many cycles use exactly a given number of letters. Let \(dn,j\) be the number of classes up to rotation and global relabelling that use exactly \(n+j\) distinct letters. Naming the additional letters in order of first appearance gives \[F_n(k)=∑ⱼ₌₀^{Bₙ₋₁-1}dn,j(k-n)_j, dn,j=1/j!∑ᵢ₌₀ʲ(-1)ʲ⁻ⁱ jiF_n(n+i) (0≤ j≤ Bₙ₋₁-1), \] with \(B_0=1\). Each letter first used after the opening window produces a window with a singleton final position. There are \(Bₙ₋₁\) such patterns, and the opening window already uses one of them. This bounds the number of additional letters. To count the classes that fit on a \(k\)-letter alphabet, sum \(dn,j\) over the displayed range with \(j≤ k-n\). The counts up to rotation and relabelling on the respective \(n\)-letter alphabets are \(1,0,0\) at widths \(1,2,3\). At width four the formula gives \(F_4(k)=432+312(k-4)\) for every \(k≥4\). There are therefore \(432\) classes using four letters and \(312\) using five, with zero classes using more. On a prescribed four-letter alphabet there are \(C_4(4)=24·432=10{,}368\) cycles up to rotation.
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: