Minimum Critical Exponents for Palindromes

Similar documents
arxiv:math/ v1 [math.co] 10 Oct 2003

Letter frequency in infinite repetition-free words

ON PATTERNS OCCURRING IN BINARY ALGEBRAIC NUMBERS

Binary words containing infinitely many overlaps

Sums of Digits, Overlaps, and Palindromes

A generalization of Thue freeness for partial words. By: Francine Blanchet-Sadri, Robert Mercaş, and Geoffrey Scott

A Short Proof of the Transcendence of Thue-Morse Continued Fractions

A ternary square-free sequence avoiding factors equivalent to abcacba

A generalization of Thue freeness for partial words

Van der Waerden s Theorem and Avoidability in Words

Extremal infinite overlap-free binary words

On the Unavoidability of k-abelian Squares in Pure Morphic Words

arxiv: v1 [cs.dm] 2 Dec 2007

Polynomial versus Exponential Growth in Repetition-Free Binary Words

Concerning Kurosaki s Squarefree Word

DENSITY OF CRITICAL FACTORIZATIONS

Finite repetition threshold for large alphabets

Van der Waerden s Theorem and Avoidability in Words

An early completion algorithm: Thue s 1914 paper on the transformation of symbol sequences

Upper bound on the number of ternary square-free words

Avoiding Large Squares in Infinite Binary Words

Morphisms and Morphic Words

= More succinctly we can write the preceding statements as

arxiv: v1 [cs.dm] 14 Oct 2016

The Logical Approach to Automatic Sequences

Non-Repetitive Binary Sequences

Avoiding Large Squares in Partial Words

Avoiding Approximate Squares

Pascal Ochem 1 and Elise Vaslet Introduction REPETITION THRESHOLDS FOR SUBDIVIDED GRAPHS AND TREES

Theoretical Computer Science

Bordered Conjugates of Words over Large Alphabets

Hankel Matrices for the Period-Doubling Sequence

Remarks on Separating Words

Jérémie Chalopin 1 and Pascal Ochem 2. Introduction DEJEAN S CONJECTURE AND LETTER FREQUENCY

The Ubiquitous Thue-Morse Sequence

arxiv: v3 [math.co] 19 Aug 2016

The Separating Words Problem

Avoidability of formulas with two variables

Combinatorics on Words:

A Fine and Wilf s theorem for pseudoperiods and Justin s formula for generalized pseudostandard words

A relative of the Thue-Morse Sequence

On the Long-Repetition-Free 2-Colorability of Trees

On repetition thresholds of caterpillars and trees of bounded degree

INFORMATIQUE THÉORIQUE ET APPLICATIONS

group Jean-Eric Pin and Christophe Reutenauer

The Separating Words Problem

1991 Mathematics Subject Classification. 68Q70, 68R15.

Bourget-du-lac cedex, France. Extended Abstract

Automata on linear orderings

Some properties of a Rudin Shapiro-like sequence

Marcin Witkowski. Nonrepetitive sequences on arithmetic progressions. Uniwersytet A. Mickiewicza w Poznaniu

BOUNDS ON ZIMIN WORD AVOIDANCE

Restricted square property and infinite partial words

Square-free Strings Over Alphabet Lists

Open Problems in Automata Theory: An Idiosyncratic View

Automata Theory and Formal Grammars: Lecture 1

Shuffling and Unshuffling

Notes and note pairs in Nørgård s infinity series

On repetition thresholds of caterpillars and trees of bounded degree

Pseudo-Power Avoidance

The complexity of automatic complexity

k-automatic sets of rational numbers

Hierarchy among Automata on Linear Orderings

The obvious way to play repeated Battle-of-the-Sexes games: Theory and evidence.

Finite Automata, Palindromes, Powers, and Patterns

Periodicity Algorithms and a Conjecture on Overlaps in Partial Words

Continued Fractions New and Old Results

Tower-type bounds for unavoidable patterns in words

Context-free languages in Algebraic Geometry and Number Theory

Combinatorics on Finite Words and Data Structures

Doubled patterns are 3-avoidable

Combinatorial Interpretations of a Generalization of the Genocchi Numbers

#A26 INTEGERS 9 (2009), CHRISTOFFEL WORDS AND MARKOFF TRIPLES. Christophe Reutenauer. (Québec) Canada

Avoidability of formulas with two variables

Continued Fractions New and Old Results

Overlapping factors in words

The Formal Inverse of the Period-Doubling Sequence

Hamoon Mousavi 1, Luke Schaeffer 2 and Jeffrey Shallit Decidability DECISION ALGORITHMS FOR FIBONACCI-AUTOMATIC WORDS, I: BASIC RESULTS

PERIODS OF FACTORS OF THE FIBONACCI WORD

Regular Sequences. Eric Rowland. School of Computer Science University of Waterloo, Ontario, Canada. September 5 & 8, 2011

Duality in Logic. Duality in Logic. Lecture 2. Mai Gehrke. Université Paris 7 and CNRS. {ε} A ((ab) (ba) ) (ab) + (ba) +

Nondeterministic automatic complexity of overlap-free and almost square-free words

Finite Automata, Palindromes, Patterns, and Borders

State Complexity Advantages of Ultrametric Automata

arxiv: v1 [cs.fl] 19 Mar 2015

1.7 Proof Methods and Strategy

arxiv: v2 [math.co] 24 Oct 2012

Fifty Years of Fine and Wilf

An Unusual Continued Fraction

MATH 433 Applied Algebra Lecture 22: Semigroups. Rings.

Additive Number Theory and Automata

Regularity-preserving letter selections

How do regular expressions work? CMSC 330: Organization of Programming Languages

Some Variations on a Theme of Irina Mel nichuk Concerning the Avoidability of Patterns in Strings of Symbols

Fifty Years of Fine and Wilf

Words generated by cellular automata

Fall 1999 Formal Language Theory Dr. R. Boyer. 1. There are other methods of nding a regular expression equivalent to a nite automaton in

Deciding whether a regular language is power-closed is PSPACE-complete

One-relation languages and ω-code generators

Transcription:

Minimum Critical Exponents for Palindromes arxiv:1612.05320v2 [cs.fl] 20 Dec 2016 Jeffrey Shallit School of Computer Science University of Waterloo Waterloo, ON N2L 3G1 Canada shallit@cs.uwaterloo.ca December 21, 2016 Abstract We determine the minimum possible critical exponent for all palindromes over finite alphabets. 1 Introduction Palindromes words that read the same forwards and backwards, such as the English word radar have been studied in formal language theory for at least 50 years, starting with the 1965 papers of Freivalds [4] and Barzdin [1]. Recently Mikhailova and Volkov [5] initiated the study of repetitions in palindromes. In this note we completely classify the largest fractional repetitions in palindromes. 2 Notation Throughout,weusethevariablesa,b,ctodenotesingleletters, andthevariablesu,v,w,x,y,z to denote words. By x we mean the length of a word x, and by x R we mean its reversal. The empty word is written ε. A word x is a palindrome if x = x R. It is well-known, and easily proved, that (xy) R = y R x R. If a word w can be written in the form w = xyz for (possibly empty) words x,y,z, then we say that y is a factor of w. We say that a word x = x[1..n] has period p if x[i] = x[i+p] for 1 i n p. We say that a word x is a (p/q)-power, for integers p > q 1, if x has period q and length p. For example, the word ionization is a 10 -power. A 2-power is 7 called a square. The exponent of a finite word w, written exp(w), is defined to be the largest rational number p/q such that w is a (p/q)-power. For example, x = tretretretre, the name of an extinct Madagascan lemur, is both a 2-power and a 4-power, but exp(x) = 4. 1

Finally, we say that a word z contains an α-power if z contains a factor x that is a (p/q)-power for some p/q α. Otherwise we say that z avoids α-powers or is α-power free. We say that a word z avoids α + -powers or is α + -power-free if, for all p/q > α, the word z contains no factor that is a (p/q)-power. The critical exponent of a word, written cexp(w), is the maximum of exp(w ) over all nonempty factors w of w. A morphism h is a map from Σ to for alphabets Σ and satisfying the rule h(xy) = h(x)h(y) for all words x,y Σ. It is said to be k-uniform if the image length of every letter is equal to k. If Σ, we can iterate h, writing h 2 for the composition h h, h 3 for h h h, and so forth. If there is a letter a such that h(a) = ax, with h(x) ǫ, we can iterate h on a, obtaining the infinite fixed point h ω (a) = axh(x)h 2 (x)h 3 (x). As an example, consider the Thue-Morse morphism µ, defined by µ(0) = 01, µ(1) = 10. Then t = µ ω (0) is the infinite Thue-Morse word, studied by Thue [8, 2]. As is well-known, the word t is 2 + -power-free. The following simple lemma will be useful for us. We say that a morphism h : Σ Σ is palindromic if every letter has a palindromic image; that is, if h(a) is a palindrome for all a Σ. Lemma 1. Suppose h is a palindromic morphism, and w is a palindrome. Then h(w) is a palindrome. Proof. Write w = a 1 a 2 a n for letters a i. Then h(w) = h(w R ) = h(a n a 2 a 1 ) = h(a n ) h(a 2 )h(a 1 ) = h(a n ) R h(a 2 ) R h(a 1 ) R = (h(a 1 )h(a 2 ) h(a n )) R = h(w) R. 3 The even-length case In this paper we are interested in the critical exponents of palindromes. Even-length palindromes are not so interesting: the symbol in the middle of every even-length palindrome is repeated aa, and so every even-length palindrome has critical exponent at least 2. Over a binary alphabet (and hence over every alphabet), it is easy to see that µ 2n (0) is a palindromic prefix of the Thue-Morse word of length 2 2n. Hence for all alphabets and all even lengths the smallest possible critical exponent is 2, and it is always achieved. In the remainder of this paper, then, we focus on the odd-length palindromes. We note that, in order to show the existence of a palindrome of length l avoiding α-powers, for all odd l 1, it suffices to exhibit arbitrarily large such palindromes. This is because every odd-length palindrome avoiding α-powers continues to avoid α-powers if a block of size t is removed simultaneously from the front and end of the word. 2

4 Binary alphabet In this section we assume the alphabet is Σ = {0,1}. Proposition 2. Every odd-length binary palindrome of length 7 contains a 7 3 -power. Proof. Every odd-length binary palindrome of length 7 contains within it an odd-length palindrome of length 7. So it suffices to examine the 16 possible odd-length binary palindromes of length 7. The minimum critical exponents are those corresponding to the words 0110110 and 1001001, with exponent 7 3. Theorem 3. For every odd l 7, there is a palindrome of length l with critical exponent 7 3. Proof. We use the following 19-uniform morphism of Rampersad: f(0) = 0110100110110010110 f(1) = 1001011001001101001 Note that f is palindromic, and so f n (0) is a palindrome of odd length for all n 1. Rampersad showed [7] that f ω (0) avoids 7 3+ -powers. Hence f n (0), for n 1, gives us a sequence of longer and longer palindromes with the desired property. Remark 4. It is easy to see that each of the words µ 2n (0)010µ 2n (0) is a palindrome of odd length. It is possible to show, although we do not do it here, that each of these words has critical exponent 7. In fact, the only 7 -power is 1001001, which occurs exactly once at the 3 3 center. This gives an alternative construction. 5 Ternary alphabet Proposition 5. Every odd palindrome of length 17 over a ternary alphabet contains a (7/4)-power. Proof. It suffices to examine all 19683 length-17 palindromes. The word 01210120102101210, and its images under codings that permute the underlying alphabet, are the unique length-17 palindromes with exponent 7 4. Theorem 6. For every odd l 17 there is a palindrome of length l with critical exponent 7 4. Proof. Define the 19-uniform morphism g by g(0) = 0120212012102120210 g(1) = 1201020120210201021 g(2) = 2012101201021012102 3

It is easily checked that g is palindromic, and so from Lemma 1, we see that g n (0) is a palindrome of length 19 n. However, g is up to renaming of the letters just Dejean s famous morphism [3] and she proved its iterates avoid 7 4+ -powers. 6 Alphabet size 4 and larger In this section we assume the alphabet is Σ = {0,1,2,3} or larger. Proposition 7. All odd palindromes of length 3 have a 3 2 -power. Proof. Such a palindrome must contain, at its center, the word aba, which is a 3 2 -power. Theorem 8. Over an alphabet of size 4 or larger, for every odd l 3 there is a palindrome of length l with critical exponent 3 2. Proof. It suffices to do this for an alphabet of size 4. Consider the 11-uniform morphism h defined by h(0) = 01312021310 h(1) = 12023132021 h(2) = 23130203132 h(3) = 30201310203 It is easy to check that h is palindromic. We claim that h ω (0) is 3 2+ -power-free. To see this, we use the Walnut theorem-proving package of H. Mousavi [6]. The appropriate predicate is eval abc "?msd 11 Ei (p>=1) & Ak Aj ((2*j<=p)&(k=i+j)) => H[k]=H[k+p]": where H is an automaton defined in Walnut s Word Automata directory to represent the morphism h. The computation ran in 28.982 seconds on a Linux machine and proved the result. It follows from Lemma 1 that h n (0) is a palindrome of length 11 n that is 3 2+ -powerfree. Furthermore, a similar computation gives that the only 3 2 -powers occurring in hω (0) are of length a 11 i, where a 3,6,9,12. 7 Bi-infinite words Forsome purposes it might benice tohave asingle bi-infinite word a 2 a 1 a 0 a 1 a 2 allof whose truncations a n a 1 a 0 a 1 a n are palindromes and avoid the appropriate powers. Forthisitisusefultohaveapalindromicmorphismγ suchthatγ(0) = x R 0xforsomewordx. Theniteratingγ aroundthecentral0givesthebi-infiniteword γ 2 (x R )γ(x R )0γ(x)γ 2 (x). 4

For the binary case, Rampersad s morphism f gives this, as f(0) = x R 0x for x = 110010110. Thus, iteration of f around the central 0 preserves the 0 and generates such a bi-infinite word. Similarly, for alphabet size 4, our morphism h can be written in the form h(0) = y R 0y, for y = 21310. So again, iteration of h around the central 0 preserves the 0 and generates such a bi-infinite word. However, Dejean s morphism g does not have this property. However, g 3 does; it is 6859-uniform. Alternatively, one can use the 31-uniform morphism defined as follows: α(0) = 0121021201020120210201021201210 α(1) = 1202102012101201021012102012021 α(2) = 2010210120212012102120210120102 Then α is palindromic and it can be shown that α ω (0) avoids 7 4+ powers. Since α(0) = z R 0z for z = 210201021201210, iteration of α around the central 0 preserves the 0 and generates a bi-infinite word. 8 Acknowledgment We thank Narad Rampersad for pointing out the paper of Mikhailova and Volkov. 9 Further work Inthenext version ofthispaper we will have results ontheexponential growthofthe number of palindromes with minimal exponent over all alphabets. References [1] J. M. Barzdin. Complexity of recognition of symmetry on Turing machines. Problemy Kibernetiki 15 (1965), 245 248. In Russian. [2] J. Berstel. Axel Thue s Papers on Repetitions in Words: a Translation. Number 20 in Publications du Laboratoire de Combinatoire et d Informatique Mathématique. Université du Québec à Montréal, February 1995. [3] F. Dejean. Sur un théorème de Thue. J. Combin. Theory. Ser. A 13 (1972), 90 99. [4] R. Freivalds. Complexity of palindromes recognition by Turing machines with an input. Algebra i Logika 4(1) (1965), 47 58. In Russian. [5] I. A. Mikhailova and M. V. Volkov. Pattern avoidance by palindromes. Theoret. Comput. Sci. 410 (2009), 2992 2998. 5

[6] H. Mousavi. Automatic theorem proving in Walnut. Preprint available at https://arxiv.org/abs/1603.06017, 2016. [7] N. Rampersad. Words avoiding 7 -powers and the Thue-Morse morphism. In C. S. 3 Calude, E. Calude, and M. J. Dinneen, editors, Developments in Language Theory, 8th International Conference, DLT 2004, Vol. 3340 of Lecture Notes in Computer Science, pp. 357 367. Springer-Verlag, 2004. [8] A. Thue. Über die gegenseitige Lage gleicher Teile gewisser Zeichenreihen. Norske vid. Selsk. Skr. Mat. Nat. Kl. 1 (1912), 1 67. Reprinted in Selected Mathematical Papers of Axel Thue, T. Nagell, editor, Universitetsforlaget, Oslo, 1977, pp. 413 478. 6