Abstract

Denote by sq(w) the number of distinct squares in a string w and let [Formula: see text] be the class of standard Sturmian words. They are generalizations of Fibonacci words and are important in combinatorics on words. For Fibonacci words the asymptotic behaviour of the number of runs and the number of squares is the same. We show that for Sturmian words the situation is quite different. The tight bound [Formula: see text] for the number of runs was given in [3]. In this paper we show that the tight bound for the maximal number of squares is [Formula: see text]. We use the results of [11], where exact (but not closed) complicated formulas were given for sq(w) for [Formula: see text]. We show that for all [Formula: see text] we have [Formula: see text] and there is an infinite sequence of words [Formula: see text] such that lim k→∞ |wk| = ∞ and [Formula: see text]. Surprisingly the maximal number of squares is reached by the words with recurrences of length only 5. This contrasts with the situation of Fibonacci words, though standard Sturmian words are natural extension of Fibonacci words. If this length drops to 4, the asymptotic behaviour of the maximal number of squares falls down significantly below [Formula: see text]. The structure of Sturmian words rich in squares has been discovered by us experimentally and verified theoretically. The upper bound is much harder, its proof is not a matter of simple calculations. The summation formulas for the number of squares are complicated, no closed formula is known. Some nontrivial reductions were necessary.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.