“…A right shift by one position of a substring The notion of double squares and their factorization can be traced to Lam [10], and was further investigated and generalized by Deza, Franek, and Thierry [4] and by Bai, Franek, and Smyth [1]. Given a balanced double square (u, v), the unique 4-tuple (u 1 , u 2 , e 1 , e 2 ) yielded by Lemma 5 is referred to as the canonical factorization of the double square (u, v) and is denoted by (u, v : u 1 , u 2 , e 1 , e 2 ).…”