TOPICS
Search

Factor Complexity


The factor complexity p_w(n) of a finite or infinite word w, also called its subword complexity, is the number of distinct contiguous factors of length n occurring in w.

The Morse-Hedlund theorem states that a right-infinite word is ultimately periodic iff p_w(n)<=n for some positive integer n. Consequently, a right-infinite word that is not ultimately periodic has factor complexity at least n+1 for every positive integer n. Sturmian sequences are precisely the aperiodic right-infinite binary words attaining p_w(n)=n+1 for every positive integer n.

Among right-infinite ternary words with factor complexity 2n+1 for every positive integer n, the minimum possible critical exponent is 2.4808627... (Currie 2026).

For the base-b digit expansion of a real algebraic number xi that is irrational, write the factor complexity as p(n,xi,b). Stephan (2026) proved that for every integer b>=2, every eta<1/4, and every C>0,

 p(n,xi,b)>Cn(lnn)^eta

for infinitely many n, improving the range eta<1/11 of Bugeaud and Evertse (2008). This is not an eventual lower bound and does not establish that xi is a normal number. Stephan (2026) obtained the analogous bound for the word of partial quotients in the continued fraction of a real algebraic number of degree at least three. The paper reports Lean formalizations.


See also

Critical Exponent, Morse-Hedlund Theorem, Sturmian Sequence, Word

Explore with Wolfram|Alpha

References

Allouche, J.-P. and Shallit, J. Automatic Sequences: Theory, Applications, Generalizations. Cambridge, England: Cambridge University Press, 2003.Bugeaud, Y. and Evertse, J.-H. "On Two Notions of Complexity of Algebraic Numbers." Acta Arith. 133, 221-250, 2008. https://doi.org/10.4064/aa133-3-3.Currie, J. D. "Words with Factor Complexity 2n+1 and Minimal Critical Exponent." Elec. J. Combin. 33, P3.31, 2026. https://doi.org/10.37236/14527.Morse, M. and Hedlund, G. A. "Symbolic Dynamics II. Sturmian Trajectories." Amer. J. Math. 62, 1-42, 1940. https://doi.org/10.2307/2371431.Stephan, R. "The Exponent 1/4 in Three Complexity Bounds: Integer Bases, Continued Fractions, and the (3/2)^n Steering Word." 22 Oct 2026. https://arxiv.org/abs/2610.30937.

Cite this as:

Weisstein, Eric W. "Factor Complexity." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/FactorComplexity.html

Subject classifications