Generating key points…
Answers are grounded in this paper and cite their sources.
Sawada and Williams asked for a simple formula for the number of binary pseudo-necklaces of each length and density, where the density is the number of ones. The count is given by an exact generating function and a finite binomial sum for every length \(n≥ 1\) and every density \(0≤ d≤ n\). The total by length has a nonconstant leading factor that repeats as a function of \(log_2 n\). Sawada–Williams, §2.1, PDF p. 3 To test a binary word, cut it at every transition from 1 to 0. The resulting blocks consist of zeros followed by ones, with either run allowed to be empty. The word qualifies if its first block is lexicographically at most every later block, with \(0<1\) and a proper prefix smaller than the block containing it. A qualifying nonconstant word starts with 0 and ends with 1. Its first block has the largest zero-run length and, among blocks with that zero-run length, the shortest following one-run length. Ties are allowed. Each distinct qualifying word is counted, including distinct qualifying rotations of the same word. Write \(P(n,d)\) for the count and let \(u\) mark zeros and \(v\) mark ones. If the first block contains \(a≥1\) zeros and \(b≥1\) ones, each later block has either fewer than \(a\) zeros and any positive number of ones, or exactly \(a\) zeros and at least \(b\) ones. The later blocks form an arbitrary ordered sequence subject to this rule. Including the two constant words at each positive length gives the formal series \[∑n≥1∑d=0ⁿ P(n,d)uⁿ⁻ᵈv^d =u/1-u+v/1-v +∑a,b≥1{u^av^b}{1-v/1-v∑c=1ᵃ⁻¹u^c-u^av^b/1-v}. \] The inner sum is zero for \(a=1\). To compute \(P(n,d)\), take the coefficient of \(uⁿ⁻ᵈv^d\). Only finitely many first blocks can contribute to that coefficient. In particular, \(P(n,0)=P(n,n)=1\). For direct evaluation at a mixed density, put \(z=n-d>0\) and take \(d>0\). For integers \(a≥1\), \(q≥0\) and \(s≥0\), let \(C_a(q,s)\) count ordered lists of \(s\) integers from \(1\) to \(a-1\) whose sum is \(q\). Thus \(C_a(q,0)\) is 1 for \(q=0\) and 0 otherwise, and for \(s>0\), \[C_a(q,s)=∑ᵢ₌₀ˢ(-1)^i{s}{i}{q-1-i(a-1)}{s-1}. \] The count is \[P(n,d)=1+∑ᵣ₌₂min(z,d)∑ⱼ₌₁ʳ∑ₐ₌₁z/j {r-1}{j-1}C_a(z-ja,r-j) ∑b=1(d-r+j)/j{d-jb+j-2}{r-2}. \] Here \(r\) is the number of blocks, \(j\) is the number with the largest zero-run length \(a\), and \(b\) is the number of ones in the first block. The initial 1 counts the single-block word. Empty sums are zero, and \( hk=0\) unless \(0≤ k≤ h\). Sawada, Williams and Wong asked for the total over all densities at each length. Setting \(u=v=x\) gives the exact answer for \(P_n=∑d=0^nP(n,d)\), with \(m=a+b\) denoting the first block's length. Sawada–Williams–Wong, §2.1, PDF p. 3 \[∑n≥1P_nx^n=2x/1-x+(1-x)∑m≥2∑ₐ₌₁ᵐ⁻¹x^m/1-x-x^2-⋯-x^a-x^m. \] For each pair \((a,m)\), the reciprocal denominator counts ordered compositions with parts \(1,…,a,m\). Its coefficients satisfy \(F_0=1\), \(F_k=0\) for \(k<0\), and \(F_k=∑ᵢ₌₁^aFₖ₋ᵢ+Fₖ₋ₘ\) for \(k>0\). Keeping a running sum of the first \(a\) terms gives all totals through length \(N\) in \(O(N^3)\) integer additions. For example, \(P_8=38\). As \(n\) tends to infinity through the positive integers, the total satisfies \[P_n=2^n/n(Φ(t_n)+o(1)), t_n=log_2 n-log_2 n, \] where the error inside the parentheses tends to zero and the positive, continuous, one-periodic function \(Φ\) is given by the convergent series \[Φ(t)=∑ν∈ Z∑b≥12⁻ᵇ2t-νexp\!(-(2-2¹⁻ᵇ)2t-ν), t∈ R. \] In a uniformly random binary ring with \(n\) labelled positions, let \(M\) count the zero-run starts that attain the longest zero run and, among those, the shortest following one run. Count all tied positions and set \(M=0\) on constant rings. Then \( E M=n(P_n-2)/2^n\). Zero runs near length \(log_2 n\) account for the leading count. In the series, \(ν\) indexes their integer lengths relative to this scale, and the exponential is the limiting probability that a candidate with following one-run length \(b\) has no strictly better competitor. The weights therefore depend on the fractional part of \(log_2 n\). The oscillation is genuine. The first Fourier coefficient \(∫_0^1Φ(t)e-2π it\,dt\) is nonzero. It is \(Γ(1-iξ)/ln 2\) times \(∑b≥12⁻ᵇ(2-2¹⁻ᵇ)-1+iξ\), where \(i^2=-1\), \(ξ=2π/ln 2\), and \(Γ\) is the gamma function. The \(b=1\) term is \(1/2\), and the remaining terms have combined absolute magnitude at most \(1/3\). Thus along lengths \(n=2ʲ⁺ᵗ\) with fixed \(0<t<1\) and integer \(j→∞\), the normalised count \(nP_n/2^n\) tends to \(Φ(t)\), with different limiting values for some choices of \(t\).
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: