Abstract
The quasi-Tribonacci sequence , which is a transformation of the Tribonacci sequence, is the fixed point of morphism , , . In this paper, we study the properties of the factors in the quasi-Tribonacci sequence and give the singular factorization and the Lyndon factorization.
MSC:
11B39; 11B50
1. Introduction
Let be the Fibonacci sequence that is the fixed point of the Fibonacci morphism defined by . The Fibonacci sequence has been extensively studied [1,2,3,4]. The combinatorial properties of the Fibonacci sequence are of great interest in number theory, fractal geometry, formal language, computational complexity and quasi-crystals [5,6,7,8,9]. There are several generalizations of the Fibonacci sequence on the alphabet of two letters. Ramírez, Rubiano and Castro [10,11,12] gave the generations of the Fibonacci sequence and proved them to be characteristic Sturmian words of irrational slopes. There are also extensions on alphabets containing at least three letters. A famous one is the Tribonacci sequence, which is the fixed point of the Rauzy substitution . Rauzy [13] studied the dynamical and geometrical aspects of the Tribonacci sequences; see also [4]. Huang and Wen [14] studied the occurrence of the arbitrary factors of and gave a quite general decomposition of . Moreover, Huang and Wen [15,16] studied the kernel words, gap sequence and the numbers of repeated palindromes in the Tribonacci words. Kjos-Hanssen [17] studied the automatic complexity of Fibonacci and Tribonacci words. Břinda, Pelantová and Turek [18] gave the extension of the Fibonacci sequence to an alphabet of m letters, which is called m-bonacci sequence. Jahannia, Mohammad-Noori, Rampersad and Stipulanti [19,20] studied the Ziv–Lempel factorization of m-bonacci words. Recently, Zhang, Wen and Wu [21] gave the extension of the Fibonacci sequence to the infinite alphabet and studied its combinatorial properties, including the growth order, digit sum and several decompositions. Ghareghani, Mohammad-Noori and Sharifani [22,23] gave the generations of the m-bonacci sequence to the infinite alphabet and studied the palindrome complexity, square factors and critical factors. Given the extensive research and significant importance of the Fibonacci and Tribonacci sequences, here, we study the transformation of the Tribonacci morphism, which is called quasi-Tribonacci morphism.
Consider the quasi-Tribonacci morphism which is given by
The quasi-Tribonacci sequence is the fixed point of starting by 0. Wen and Wen [24] studied the properties of factors of the Fibonacci sequence by analyzing its singular words. They proved that the adjacent singular words of the same order are positively separated, and gave the singular factorization of . Levé and Séébold [25] studied the singular factorization of the Fibonacci sequence and its conjugates. Melançon [26,27] studied the Lyndon factorization of the Fibonacci sequence and gave the link between the singular factorization and Lyndon factorization of the Fibonacci word. Tan and Wen [28] studied the factor properties of the Tribonacci sequence. Moreover, they gave the singular factorization and the Lyndon factorization of the Tribonacci sequences. Singular words have applications in the study of combinatorics on words [29,30,31,32,33], including the exploration the power of the factors, local isomorphism, special words and overlap of the subwords. Lyndon factorization has plenty of algorithmic applications and might be computed in an efficient way [34,35]. This factorization is also used in string processing algorithms (see [36]) and for the computation of runs in words (see, e.g., [37]).
In this paper, we mainly study the properties of the factors of the quasi-Tribonacci sequence. After giving notation and listing some known facts, we give the three following decompositions. The first one is a decomposition using its (slightly modified) prefixes (see Theorem 1). The second one is a decomposition using singular words (see Theorem 2). The third one is a decomposition using singular words and their combination (see Theorem 3). Moreover, the Lyndon factorization is also given (see Theorem 6).
This paper is organized as follows. In Section 2, we state some basic notation and study the fundamental properties of the quasi-Tribonacci sequence. In Section 3, we give three decompositions of . In Section 4, we study the Lyndon words and Lyndon decomposition of . In Section 5, we present the conclusion.
2. Preliminary
Let be a three-letter alphabet. Let denote the set of all words of length k on , and denote the set of all finite words on . The length of a finite word is denoted by . For any , we write when the finite word V is a factor of the word W, that is, when there exist words , such that . We say that V is a prefix (resp. suffix) of a word W, and we write (resp. ) if there exists a word , such that (resp. ).
Let be a finite word (or be a sequence). For any , define .
Denote by the inverse of W, that is, where . If V is a suffix of W, we can write , with . This makes sense in , since the reduced word associated with belong to . This abuse of language will be very useful in what follows.
A morphism is called a substitution of . We denote by any one of the fixed points of (i.e., ), if it exists. We define the nth iteration of by , for and . By convention, we define , for all .
The Tribonacci sequence is generated by the Tribonacci morphism : , i.e., . We know that are the Tribonacci numbers.
Consider the morphism which is given by
We know that Then, we observe that . Thus, there exists a fixed point of by iterating with the letter 0. The quasi-Tribonacci sequence is the fixed point of starting by 0. We define as the fixed point of starting by 1. The first several terms of , and are
For convenience, we define , where . Let and , where , , and . Then, we have the following properties:
Proposition 1.
For all ,
i.e.,
Proof.
Since , we have
By the definition of the morphism , , so
□
Proposition 2.
For all , we have
Proof.
Since
according to the definition of , we have
□
Proposition 3.
For all ,
Here, we show that and share the same recurrence relation with the A00521 in the OEIS [38], apart from the initial values. We shall prove it in the following.
Proposition 4.
For all ,
with .
Proof.
By Proposition 1, we know and . It is easy to see that the result is true for . Assuming that the result is true for all , then for , we have
Hence, the result is true. □
3. Singular Words Decomposition
In this section, we present three decompositions (factorisations) of . These are given in Theorems 1–3. We will state the theorems firstly and introduce some notation, then give the three proofs.
Theorem 1.
where .
We observe that the following decomposition of the quasi-Tribonacci sequence is
That is, the length of the nth block in the decomposition is . Then, a question is posed naturally: What are these blocks? As we see, the second decomposition theorem will answer this question completely. To state the second decomposition theorem, we introduce the singular words. For all and , the word
is called a singular word of order n (of letter i), where and are two letters satisfying . In addition, we define . For example, since , then , and .
Theorem 2.
We need the following notation to state the third theorem. Let satisfy that , for all .
Theorem 3.
where and , , .
Then, we will prove the above theorems.
Lemma 1.
For all , .
Proof.
We use induction on n to prove it. It is easy to see that the result is true for , since and .
Assuming that the result is true for all , then for , we have
Hence, the result is true. □
Lemma 2.
For all , .
Proof.
From the definition of the morphism , we have
□
The proof of Theorem 1 is direct from Lemmas 1 and 2.
To prove the second decomposition theorem, we introduce the following notation and properties. Let be the last two letters in , i.e., , for all . For convenience, we denote and .
Proposition 5.
For all , and . Moreover, for all .
Proof.
By the definition of the morphism , we have
where . So, . Since
where , we have .
In addition,
where . So, . Hence, the results are true. □
Remark 1. (1) For all , and , since , and .
(2) for all .
(3) for all .
(4) for all .
Remark 2.
For all , .
Proof.
When , then , , . So,
When , then , , . So,
When , then , , . So,
Hence, the result is true. □
Lemma 3.
For all , .
Proof.
We use induction on n to prove it. It is easy to see that the result is true for , since , and .
Assuming that the result is true for all , then for , we have
Hence, the result is true. □
Lemma 4.
For all , .
Proof.
We use induction on n to prove it. It is easy to see that the result is true for , since , and .
Assuming that the result is true for all , then for , we have
Hence, the result is true. □
Proof of Theorem 2
According to the definition of , we know . From Remark 1(2), we have . Thus, the results are true from Lemmas 3 and 4. □
The following are the relationship between the singular words and , for all .
Proposition 6.
For all , .
Proof.
We use induction on n to prove it. It is easy to see that the result is true for , since , , and .
Assuming that the result is true for all , then for , we have
Hence, the result is true. □
Proposition 7.
For all ,
Moreover, .
Proof.
We use induction on n to prove it. It is easy to see that the result is true for , since , , , and .
Assuming that the result is true for all , then for , we have
Hence, the result is true. □
Proposition 8.
Proof.
From Proposition 7 and Theorem 2, we have
and , so . Moreover, from Proposition 6 and Theorem 2, we have
and , so . □
To prove the third decomposition theorem, Theorem 3, we introduce the following lemmas.
Lemma 5.
For all , .
Proof.
We use induction on n to prove it. For , it is easy to see that , , and . So,
The result is true for . By the definition of , we have . Assuming that the result is true for all , then for , we have
Hence, the result is true. □
Lemma 6.
For all ,
Proof.
We use induction on n to prove it. For , it is easy to see that , , and . Thus,
The result is true for . Assuming that the result is true for all , then for , we have
Hence, the result is true. □
Lemma 7.
For all , .
Proof.
We use induction on n to prove it. For , it is easy to see that , , and . Thus, . Thus, the result is true for . Assuming that the result is true for all , then for , we have
Hence, the result is true. □
Lemma 8.
For all ,
Proof.
We use induction on n to prove it. For , it is easy to see that , , and . Thus,
The result is true for . Assuming that the result is true for all , then for , we have
Hence, the result is true. □
Proof of Theorem 3
For all , we have . Since , by Proposition 5, we know . Moreover, from Remark 1, we have . We have known that and , so the result is true from Lemmas 6 and 8. □
4. Lyndon Decomposition
In this section, we mainly give the Lyndon factorization of . We totally order by and extend this order to the set of all words. Lyndon words are defined as primitive words, which are minimal in the class of all their conjugates [26,27]. We list two main conclusions about Lyndon words in the following.
Theorem 4
(Lyndon Theorem [39]). Any non-empty word is a unique product of non-increasing Lyndon words.
In [40], the authors defined the Lyndon sequences as those sequences which have infinitely many prefixes being Lyndon words. Moreover, they proved the generalization of the Lyndon theorem as follows:
Theorem 5.
Any sequence s can be uniquely factorized in one of the following forms:
(1) , with , are Lyndon words;
(2) , with , are Lyndon words, and is a Lyndon sequence.
The following theorem gives the Lyndon factorization of .
Theorem 6.
is the Lyndon factorization of the sequence . That is,
(1) For any , and are Lyndon words, and
(2)
Proof.
(1) Since and . It is obvious that . From Theorem 5, we only need to show that
Since
and . However, . Thus, (3) holds.
(2) We define
It is easy to see . We only need to show , then .
Since
where . Thus, the result is true. □
5. Conclusions
We studied the combinatorial properties of the factors in the quasi-Tribonacci sequence. Using these factors, we could rebuild the quasi-Tribonacci sequence. We also established two decompositions of the quasi-Tribonacci sequence in singular words and their consequences. These results could be used to discuss the local isomorphism, the overlap properties of the factors and the power of the factors in the quasi-Tribonacci sequence. Meanwhile, we gave the Lyndon factorization of the quasi-Tribonacci sequence. The Lyndon factorization of the quasi-Tribonacci sequence helps us analyze the properties of the sequence, such as its repetitive patterns and structural characteristics. It provides a way to understand the sequence in terms of its minimal components and can be useful in various applications, including combinatorics, string algorithms and data compression. Studying the singular factorization and Lyndon factorization of the quasi-Tribonacci sequence can also contribute to a deeper understanding of its structure and potential connections to other mathematical concepts, which we shall discuss in our following work.
Author Contributions
Writing—original draft, J.Z.; Writing—review & editing, Z.W. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by National Natural Science Foundation of China grant number 12101469.
Data Availability Statement
Not applicable.
Acknowledgments
The authors would like to thank the anonymous referees for a lot of useful suggestions.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Berstel, J. Fibonacci Words—A Survey. In The Book of L; Rosenberg, G., Salomaa, A., Eds.; Springer: Berlin/Heidelberg, Germany, 1986; pp. 11–26. [Google Scholar]
- De Luca, A. A combinatorial property of the Fibonacci words. Inform. Process. Lett. 1981, 12, 193–195. [Google Scholar] [CrossRef]
- Allouche, J.; Shallit, J. Automatic Sequences. Theory, Applications, Generalizations; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
- Fogg, N. Substitutions in Dynamics, Arithmetics and Combinatorics; Lecture Notes in Mathematics; Springer: Berlin/Heidelberg, Germany, 2002; Volume 1794. [Google Scholar]
- Allouche, J. Arithmétique et automates finis. Astérisque 1987, 147, 13–26. [Google Scholar]
- Bombieri, E.; Taylor, J. Which distributions of matter diffract? An initial investigation. J. Phys. 1986, 47, 19–28. [Google Scholar] [CrossRef]
- Queffélec, M. Substitution Dynamical Systems-Spectral Analysis; Lecture Notes in Mathematics; Springer: Berlin/Heidelberg, Germany, 2010; Volume 1294. [Google Scholar]
- Séébold, P. Propriétés Combinatoires des Mots Infinis Engendrés par Certains Morphismes. Ph.D. Thesis, Université P. et M. Curie, Institut de Programmation, Paris, France, 1985. [Google Scholar]
- Wen, Z.; Wen, Z. The sequences of substitution and related topics. Adv. Math. 1989, 123–145. [Google Scholar]
- Ramírez, J.; Rubiano, G. On the k-Fibonacci words. Acta Univ. Sapientiae Inform. 2013, 5, 212–226. [Google Scholar] [CrossRef]
- Ramírez, J.; Rubiano, G. Biperiodic fibonacci word and its fractal curve. Acta Polytech. 2015, 55, 50–58. [Google Scholar] [CrossRef]
- Ramírez, J.; Rubiano, G.; Castro, R. A generalization of the Fibonacci word fractal and the Fibonacci snowflake. Theor. Comput. Sci. 2014, 528, 40–56. [Google Scholar] [CrossRef]
- Rauzy, G. Nombres algébriques et substitutions. Bull. Soc. Math. France 1982, 110, 147–178. (In French) [Google Scholar] [CrossRef]
- Huang, Y.; Wen, Z. The sequence of return words of the Fibonacci sequence. Theor. Comput. Sci. 2015, 593, 106–116. [Google Scholar] [CrossRef]
- Huang, Y.; Wen, Z. Kernel words and gap sequence of the tribonacci sequence. Acta Math. Sci. 2016, 36, 173–194. [Google Scholar] [CrossRef]
- Huang, Y.; Wen, Z. The numbers of repeated palindromes in the Fibonacci and Tribonacci words. Discret. Appl. Math. 2017, 230, 78–90. [Google Scholar] [CrossRef]
- Kjos-Hanssen, B. Automatic complexity of Fibonacci and Tribonacci words. Discret. Appl. Math. 2021, 289, 446–454. [Google Scholar] [CrossRef]
- Břinda, K.; Pelantová, E.; Turek, O. Balances of m-bonacci words. Fundam. Inform. 2014, 132, 33–61. [Google Scholar] [CrossRef]
- Jahannia, M.; Mohammad-Noori, M.; Rampersad, N.; Stipulanti, M. Closed Ziv-Lempel factorization of the m-bonacci words. Theor. Comput. Sci. 2022, 918, 32–47. [Google Scholar] [CrossRef]
- Jahannia, M.; Mohammad-Noori, M.; Rampersad, N.; Stipulanti, M. Palindromic Ziv-Lempel and Crochemore factorizations of m-bonacci infinite words. Theor. Comput. Sci. 2019, 790, 16–40. [Google Scholar] [CrossRef]
- Zhang, J.; Wen, Z.; Wu, W. Some properties of the Fibonacci sequence on an infinite alphabet. Electron. J. Comb. 2017, 24, P2–P52. [Google Scholar] [CrossRef] [PubMed]
- Ghareghani, N.; Sharifani, P. On square factors and critical factors of k-bonacci words on infinite alphabet. Theor. Comput. Sci. 2021, 865, 34–43. [Google Scholar] [CrossRef]
- Ghareghani, N.; Mohammad-Noori, M.; Sharifani, P. Some properties of the k-bonacci words on the infinite alphabet. Electron. J. Comb. 2020, 27, P3–P59. [Google Scholar] [CrossRef]
- Wen, Z.; Wen, Z. Some properties of the singular words of the Fibonacci word. Eur. J. Comb. 1994, 15, 587–598. [Google Scholar]
- Levé, F.; Séébold, P. Conjugation of standard morphisms and a generalization of singular words. Bull. Belg. Math. Soc. 2003, 10, 737–747. [Google Scholar] [CrossRef]
- Melançon, G. Lyndon words and singular factors of Sturmian words. Theor. Comput. Sci. 1999, 218, 41–59. [Google Scholar] [CrossRef]
- Melançon, G. Lyndon factorization of Sturmian words. Discret. Math. 2000, 210, 137–149. [Google Scholar] [CrossRef]
- Tan, B.; Wen, Z. Some properties of the Tribonacci sequence. Eur. J. Combin. 2007, 28, 1703–1719. [Google Scholar] [CrossRef]
- Cao, W.; Wen, Z. Some properties of the factors of Sturmian sequences. Theor. Comput. Sci. 2003, 304, 365–385. [Google Scholar] [CrossRef]
- Glen, A. Occurrences of palindromes in characteristic Sturmian words. Theor. Comput. Sci. 2006, 352, 31–46. [Google Scholar] [CrossRef]
- Saari, K. Lyndon words and Fibonacci numbers. J. Comb. Theory Ser. A 2014, 121, 34–44. [Google Scholar] [CrossRef]
- Berthé, V.; Brlek, S.; Choquette, P. Smooth words over arbitrary alphabets. Theor. Comput. Sci. 2005, 341, 293–310. [Google Scholar] [CrossRef]
- Chuan, W.; Ho, H. Locating factors of the infinite Fibonacci word. Theor. Comput. Sci. 2005, 349, 429–442. [Google Scholar] [CrossRef]
- Apostolico, A.; Crochemore, M. Fast parallel Lyndon factorization with applications. Math. Systems Theory 1995, 28, 89–108. [Google Scholar] [CrossRef]
- Pierre Duval, J. Factorizing words over an ordered alphabet. J. Algorithms 1983, 4, 363–381. [Google Scholar] [CrossRef]
- Bonizzoni, P.; De Felice, C.; Zaccagnino, R.; Zizza, R. Inverse Lyndon words and inverse Lyndon factorizations of words. Adv. Appl. Math. 2018, 101, 281–319. [Google Scholar] [CrossRef]
- Crochemore, M.; Russo, L. Cartesian and Lyndon trees. Theor. Comput. Sci. 2020, 806, 1–9. [Google Scholar] [CrossRef]
- Sloane, N.; Guy, R. Entry A005251 in The On-Line Encyclopedia of Integer Sequences. Available online: https://oeis.org/A005251 (accessed on 5 May 2023).
- Lothaire, M. Combinatorics on Words; Encyclopedia of Mathematics and its Applications; AddisonWesley: Boston, MA, USA, 1983; Volume 17. [Google Scholar]
- Siromoney, R.; Mattew, L.; Dare, V.; Subramanian, K. Infinite Lyndon words. Inform. Process. Lett. 1994, 50, 101–104. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).