Problem 88: Periodicity and Factor Complexity |
The property stated in the problem provides a useful condition to detect the periodicity of infinite words.
An infinite word $x$ (indices run through natural numbers) is said to be ultimately periodic or simply u-periodic if it can be written $yz^\infty$ for some (finite) words $y$ and $z$, $z\neq \varepsilon$.
Let $\sub_x(n)$ denote the number of (distinct) factors of length $n$ occurring in the infinite word $x$. The function $\sub_x$ is called the factor (or subword) complexity function of $x$.