English

Counting Lyndon factors

Combinatorics 2017-01-05 v1 Discrete Mathematics

Abstract

In this paper, we determine the maximum number of distinct Lyndon factors that a word of length nn can contain. We also derive formulas for the expected total number of Lyndon factors in a word of length nn on an alphabet of size σ\sigma, as well as the expected number of distinct Lyndon factors in such a word. The minimum number of distinct Lyndon factors in a word of length nn is 11 and the minimum total number is nn, with both bounds being achieved by xnx^n where xx is a letter. A more interesting question to ask is what is the minimum number of distinct Lyndon factors in a Lyndon word of length nn? In this direction, it is known (Saari, 2014) that an optimal lower bound for the number of distinct Lyndon factors in a Lyndon word of length nn is logϕ(n)+1\lceil\log_{\phi}(n) + 1\rceil, where ϕ\phi denotes the golden ratio (1+5)/2(1 + \sqrt{5})/2. Moreover, this lower bound is attained by the so-called finite "Fibonacci Lyndon words", which are precisely the Lyndon factors of the well-known "infinite Fibonacci word" -- a special example of a "infinite Sturmian word". Saari (2014) conjectured that if ww is Lyndon word of length nn, n6n\ne 6, containing the least number of distinct Lyndon factors over all Lyndon words of the same length, then ww is a Christoffel word (i.e., a Lyndon factor of an infinite Sturmian word). We give a counterexample to this conjecture. Furthermore, we generalise Saari's result on the number of distinct Lyndon factors of a Fibonacci Lyndon word by determining the number of distinct Lyndon factors of a given Christoffel word. We end with two open problems.

Keywords

Cite

@article{arxiv.1701.00928,
  title  = {Counting Lyndon factors},
  author = {Amy Glen and Jamie Simpson and W. F. Smyth},
  journal= {arXiv preprint arXiv:1701.00928},
  year   = {2017}
}

Comments

10 pages

R2 v1 2026-06-22T17:40:41.595Z