Maximal Degree in Subsequence-Frequency Enumeration over Finite Alphabets
For a fixed subsequence pattern of length ℓ with r ≥ 2 runs, which multiplicities give the largest possible degree in the count of words containing the pattern exactly k times? We answer Bruda's binary question and prove a necessary and sufficient condition over every finite alphabet. For an alphabet of size m, the polynomial multiplying (m − 1)^n in the eventual length-n count attains degree ℓ − r + 1 for every positive k if an interior run has length one. With at least three runs and all interior runs of length at least two, the admissible multiplicities are exactly the products of two binomial coefficients whose lower indices are the first and last run lengths. For two runs, they are the weights of Ferrers diagrams with explicit binomial cell weights. A finite sum over words in which every position participates in an occurrence gives the exact generating function, the loss of leading degree and the leading coefficient. We also prove that the occurrence histograms determine every binary pattern with at most four runs up to reversal and complementation, and asymptotically almost every pattern at each fixed run count.
Authors
- Scott Schubr (ORCID: https://orcid.org/0009-0009-7357-4439)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24692519
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint