### Current browse context:

math.CO

### Change to browse by:

### References & Citations

# Mathematics > Combinatorics

# Title: Finite and infinite closed-rich words

(Submitted on 1 Nov 2021 (v1), last revised 4 Jan 2023 (this version, v3))

Abstract: A word is called closed if it has a prefix which is also its suffix and there is no internal occurrences of this prefix in the word. In this paper we study words that are rich in closed factors, i.e., which contain the maximal possible number of distinct closed factors. As the main result, we show that for finite words the asymptotics of the maximal number of distinct closed factors in a word of length $n$ is $\frac{n^2}{6}$. For infinite words, we show there exist words such that each their factor of length $n$ contains a quadratic number of distinct closed factors, with uniformly bounded constant; we call such words infinite closed-rich. We provide several necessary and some sufficient conditions for a word to be infinite closed rich. For example, we show that all linearly recurrent words are closed-rich. We provide a characterization of rich words among Sturmian words. Certain examples we provide involve non-constructive methods.

## Submission history

From: Olga Parshina [view email]**[v1]**Mon, 1 Nov 2021 12:07:01 GMT (36kb)

**[v2]**Fri, 19 Nov 2021 10:02:55 GMT (25kb)

**[v3]**Wed, 4 Jan 2023 10:35:50 GMT (25kb)

Link back to: arXiv, form interface, contact.