paper

On the number of squares in a finite word

arXiv:2204.10204

Abstract

A {\em square} is a word of the form . In this paper we prove that for a given finite word , the number of distinct square factors of is bounded by $|w|-|\Alphabet(w)|+1$, where denotes the length of and $|\Alphabet(w)|$ denotes the number of distinct letters in . This result answers a conjecture of Fraenkel and Simpson stated in 1998.