Next Article in Journal
The Evolution of Probability Density Function for Power System Excited by Fractional Gaussian Noise
Previous Article in Journal
Coefficients and Fekete–Szegö Functional Estimations of Bi-Univalent Subclasses Based on Gegenbauer Polynomials
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Some Properties of the Quasi-Tribonacci Sequence

1
School of Mathematics and Physics, Wuhan Institute of Technology, Wuhan 430205, China
2
School of Mathematics and Statistics, Huazhong University of Science and Technology, Wuhan 430074, China
*
Author to whom correspondence should be addressed.
Mathematics 2023, 11(13), 2853; https://doi.org/10.3390/math11132853
Submission received: 5 May 2023 / Revised: 12 June 2023 / Accepted: 21 June 2023 / Published: 26 June 2023

Abstract

:
The quasi-Tribonacci sequence T , which is a transformation of the Tribonacci sequence, is the fixed point of morphism ϕ : 0 01 , 1 12 , 2 0 . In this paper, we study the properties of the factors in the quasi-Tribonacci sequence and give the singular factorization and the Lyndon factorization.

1. Introduction

Let f = { f n } n 0 be the Fibonacci sequence that is the fixed point of the Fibonacci morphism σ f defined by 0 01 , 1 0 . 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 0 01 , 1 02 , 2 0 . 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 f and gave a quite general decomposition of f . 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 N 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
ϕ : 0 01 , 1 12 and 2 0 .
The quasi-Tribonacci sequence  T = { T i } i 0 is the fixed point of ϕ starting by 0. Wen and Wen [24] studied the properties of factors of the Fibonacci sequence f 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 f . 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 T . In Section 4, we study the Lyndon words and Lyndon decomposition of T . In Section 5, we present the conclusion.

2. Preliminary

Let A = { 0 , 1 , 2 } be a three-letter alphabet. Let A k denote the set of all words of length k on A , and A * denote the set of all finite words on A . The length of a finite word w A * is denoted by | w | . For any V , W A * , we write V W when the finite word V is a factor of the word W, that is, when there exist words U , U A * , such that W = U V U . We say that V is a prefix (resp. suffix) of a word W, and we write V W (resp. V W ) if there exists a word U A * , such that W = V U (resp. W = U V ).
Let u = u 0 u 1 u 2 u n be a finite word (or u = u 0 u 1 u 2 u n be a sequence). For any i j n , define u [ i , j ] : = u i u i + 1 u j 1 u j .
Denote by W 1 the inverse of W, that is, W 1 = w p 1 w 2 1 w 1 1 where W = w 1 w 2 w p . If V is a suffix of W, we can write W V 1 = U , with W = U V . This makes sense in A * , since the reduced word associated with W V 1 belong to A * . This abuse of language will be very useful in what follows.
A morphism τ : A * A * is called a substitution of A * . We denote F by any one of the fixed points of τ (i.e., τ ( F ) = F ), if it exists. We define the nth iteration of τ by τ n ( a ) = τ ( τ n 1 ( a ) ) , for n 2 and a A . By convention, we define τ 0 ( a ) = a , for all a A .
The Tribonacci sequence t = { t n } n 0 is generated by the Tribonacci morphism σ : 0 01 , 1 02 , 2 0 , i.e., t = σ ( 0 ) . We know that { | σ n ( 0 ) | } n 0 are the Tribonacci numbers.
Consider the morphism ϕ which is given by
ϕ : 0 01 , 1 12 , 2 0 .
We know that ϕ ( 0 ) = 01 , ϕ 2 ( 0 ) = ϕ ( ϕ ( 0 ) ) = ϕ ( 01 ) = ϕ ( 0 ) ϕ ( 1 ) = 0112 , ϕ 3 ( 0 ) = ϕ ( ϕ 2 ( 0 ) ) = 0112120 , Then, we observe that ϕ n ( 0 ) ϕ n + 1 ( 0 ) . Thus, there exists a fixed point of ϕ by iterating ϕ with the letter 0. The quasi-Tribonacci sequence  T = { T i } i 0 is the fixed point of ϕ starting by 0. We define T ˜ = { T i ˜ } i 0 as the fixed point of ϕ starting by 1. The first several terms of T , T ˜ and t are
T = 0 1 1 2 1 2 0 1 2 0 0 1 1 2 0 0 1 0 1 1 2 1 2 0 T ˜ = 1 2 0 0 1 0 1 1 2 0 1 1 2 1 2 0 0 1 1 2 1 2 0 1 t = 0 1 0 2 0 1 0 0 1 0 2 0 1 0 1 0 2 0 1 0 0 1 0 2
For convenience, we define ϕ 0 ( i ) = i , where i { 0 , 1 , 2 } . Let L n : = | ϕ n ( 0 ) | and n : = | ϕ n ( 1 ) | , where L 0 = 1 , L 1 = 2 , 0 = 1 and 1 = 2 . Then, we have the following properties:
Proposition 1. 
For all n 2 ,
L n = L n 1 + n 1 , n = n 1 + L n 2 ,
i.e.,
L n + 1 L n n + 1 n = 1 0 1 0 0 1 0 1 0 1 1 0 0 0 1 0 L n L n 1 n n 1 .
Proof. 
Since ϕ n ( 0 ) = ϕ n 1 ( 01 ) = ϕ n 1 ( 0 ) ϕ n 1 ( 1 ) , we have
L n = | ϕ n ( 0 ) | = | ϕ n 1 ( 0 ) | + | ϕ n 1 ( 1 ) | = L n 1 + n 1 .
By the definition of the morphism ϕ , ϕ n ( 1 ) = ϕ n 1 ( 12 ) = ϕ n 1 ( 1 ) ϕ n 2 ( 0 ) , so
n = | ϕ n ( 1 ) | = | ϕ n 1 ( 1 ) | + | ϕ n 2 ( 0 ) | = n 1 + L n 2 .
Proposition 2. 
For all n 2 , we have
n = 2 + i = 0 n 2 L n .
Proof. 
Since
ϕ n ( 1 ) = ϕ n 1 ( 1 ) ϕ n 1 ( 2 ) = ϕ n 1 ( 1 ) ϕ n 2 ( 0 ) = ϕ n 2 ( 1 ) ϕ n 2 ( 2 ) ϕ n 2 ( 0 ) = ϕ n 2 ( 1 ) ϕ n 3 ( 0 ) ϕ n 2 ( 0 ) = = ϕ ( 1 ) ϕ 0 ( 0 ) ϕ 2 ( 0 ) ϕ n 2 ( 0 ) = 1 2 ϕ 0 ( 0 ) ϕ 2 ( 0 ) ϕ n 2 ( 0 ) ,
according to the definition of n , we have
n = 2 + i = 0 n 2 L n .
Proposition 3. 
For all n 3 ,
L n = 2 + i = 0 n 3 L n .
Proof. 
By Equations (1) and (2), we have
L n = L n 1 + n 1 = L n 1 + 2 + i = 0 n 3 L n = 2 + i = 0 n 3 L n .
Here, we show that L n and n 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 n 4 ,
L n = L n 1 + L n 2 + L n 4 ,
n = n 1 + n 2 + n 4 ,
with L 0 = 1 , L 1 = 2 , L 2 = 4 , L 3 = 7 , 0 = 1 , 1 = 2 , 2 = 3 , 3 = 5 .
Proof. 
By Proposition 1, we know L 4 = L 3 + 3 = 12 and 4 = 3 + L 2 = 9 . It is easy to see that the result is true for n = 4 . Assuming that the result is true for all m n , then for m = n + 1 , we have
L n + 1 = L n + n = L n 1 + L n 2 + L n 4 + n 1 + n 2 + n 4 = L n 1 + n 1 + L n 2 + n 2 + L n 4 + n 4 = L n + L n 1 + L n 3 ,
n + 1 = n + L n 1 = n 1 + n 2 + n 4 + L n 2 + L n 3 + L n 5 = n 1 + L n 2 + n 2 + L n 3 + n 4 + L n 5 = n + n 1 + n 3 .
Hence, the result is true. □

3. Singular Words Decomposition

In this section, we present three decompositions (factorisations) of T . These are given in Theorems 1–3. We will state the theorems firstly and introduce some notation, then give the three proofs.
Theorem 1. 
T = i = 1 ϕ i ( 1 ) , T ˜ = 1 2 i = 0 ϕ i ( 0 ) ,
where ϕ 1 ( 1 ) : = 0 .
We observe that the following decomposition of the quasi-Tribonacci sequence is
T = 0 0 11 1 212 2 01200 3 112001011 4 2120010112011212 5
That is, the length of the nth block in the decomposition is n . 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 n 1 and i { 0 , 1 , 2 } , the word
α ϕ n ( i ) β 1 = : S n ( i )
is called a singular word of order n (of letter i), where α and β are two letters satisfying α β ϕ n ( i ) . In addition, we define S 0 ( i ) : = 0 . For example, since ϕ 3 ( 0 ) = 0112120 , then α = 2 , β = 0 and S 3 ( 0 ) = 2011212 .
Theorem 2. 
T = i = 0 S i ( 1 ) = 0 ̲ 11 ̲ 212 ̲ 01200 ̲ 112001011 ̲ ,
T ˜ = 1 2 i = 1 S i ( 0 ) = 1 2 00 ̲ 1011 ̲ 2011212 ̲ 001121201200 ̲ .
We need the following notation to state the third theorem. Let r n { 0 , 1 , 2 } satisfy that r n n ( mod 3 ) , for all n 0 .
Theorem 3. 
T = 011212012 i = 1 S i ( 0 ) G i ( 0 ) , T ˜ = 1 2 j = 0 r j i = 0 j S i ( 1 ) ,
where G n ( 0 ) = A r n i = 1 n S i ( 0 ) ( n 1 ) and A 0 = 012 , A 1 = 112 , A 2 = 212 .
Then, we will prove the above theorems.
Lemma 1. 
For all n 0 , ϕ n ( 0 ) = i = 1 n 1 ϕ i ( 1 ) .
Proof. 
We use induction on n to prove it. It is easy to see that the result is true for n = 0 , since ϕ 0 ( 0 ) = 0 and ϕ 1 ( 1 ) = 0 .
Assuming that the result is true for all m n , then for m = n + 1 , we have
ϕ n + 1 ( 0 ) = ϕ n ( 0 ) ϕ n ( 1 ) = i = 1 n 1 ϕ i ( 1 ) ϕ n ( 1 ) = i = 1 n ϕ i ( 1 ) .
Hence, the result is true. □
Lemma 2. 
For all n 0 , ϕ n + 2 ( 1 ) = ϕ ( 1 ) i = 0 n ϕ i ( 0 ) .
Proof. 
From the definition of the morphism ϕ , we have
ϕ n + 2 ( 1 ) = ϕ n + 1 ( 1 ) ϕ n + 1 ( 2 ) = ϕ n + 1 ( 1 ) ϕ n ( 0 ) = ϕ n ( 1 ) ϕ n 1 ( 0 ) ϕ n ( 0 ) = = ϕ ( 1 ) ϕ 0 ( 0 ) ϕ ( 0 ) ϕ n 1 ( 0 ) ϕ n ( 0 ) = ϕ ( 1 ) i = 0 n ϕ i ( 0 ) .
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 α n , β n be the last two letters in ϕ n ( 0 ) , i.e., α n β n ϕ n ( 0 ) , for all n 1 . For convenience, we denote α 0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 ( 0 ) ,
where 1 2 ϕ 2 ( 0 ) = 0 1 1 2 . So, α 3 n + 2 = 1 , β 3 n + 2 = 2 . Hence, the results are true. □
Remark 1. (1) For all n 0 , α n β n ϕ n + 2 ( 1 ) and β n + 2 β n + 3 ϕ n + 2 ( 1 ) , since ϕ n + 2 ( 1 ) = ϕ n + 1 ( 1 ) ϕ n ( 0 ) , α n = β n + 2 and β n = β n + 3 .
(2) S n ( 1 ) = β n ϕ n ( 1 ) β n + 1 1 for all n 0 .
(3) α n = r n 1 = β n + 2 for all n 1 .
(4) r n = β n for all n 0 .
Remark 2. 
For all n 0 , β n + 4 β n + 3 1 A r n = A r n + 1 .
Proof. 
When n = 3 k , then r n = 0 , β n + 4 = 1 , β n + 3 = 0 . So,
β n + 4 β n + 3 1 A r n = 1 0 1 0 1 2 = 1 1 2 = A 1 = A r n + 1 .
When n = 3 k + 1 , then r n = 1 , β n + 4 = 2 , β n + 3 = 1 . So,
β n + 4 β n + 3 1 A r n = 2 1 1 1 1 2 = 2 1 2 = A 2 = A r n + 1 .
When n = 3 k + 2 , then r n = 2 , β n + 4 = 0 , β n + 3 = 2 . So,
β n + 4 β n + 3 1 A r n = 0 2 1 2 1 2 = 0 1 2 = A 0 = A r n + 1 .
Hence, the result is true. □
Lemma 3. 
For all n 1 , ϕ n ( 0 ) = i = 0 n 1 S i ( 1 ) β n .
Proof. 
We use induction on n to prove it. It is easy to see that the result is true for n = 1 , since β 1 = 1 , S 0 ( 1 ) = 0 and ϕ ( 0 ) = 01 = S 0 ( 1 ) β 1 .
Assuming that the result is true for all m < n , then for m = n , we have
ϕ n ( 0 ) = ϕ n 1 ( 0 ) ϕ n 1 ( 1 ) = i = 0 n 2 S i ( 1 ) β n 1 ϕ n 1 ( 1 ) = i = 0 n 2 S i ( 1 ) β n 1 ϕ n 1 ( 1 ) β n 1 β n = i = 0 n 2 S i ( 1 ) S n 1 ( 1 ) β n = i = 0 n 1 S i ( 1 ) β n .
Hence, the result is true. □
Lemma 4. 
For all n 3 , ϕ n ( 1 ) = 1 2 i = 1 n 2 S i ( 0 ) α n 1 .
Proof. 
We use induction on n to prove it. It is easy to see that the result is true for n = 3 , since α 2 = 1 , S 1 ( 0 ) = 00 and ϕ 3 ( 1 ) = 12001 = 1 2 S 1 ( 0 ) α 2 .
Assuming that the result is true for all m n , then for m = n + 1 , we have
ϕ n + 1 ( 1 ) = ϕ n ( 1 ) ϕ n 1 ( 0 ) = 1 2 i = 1 n 2 S i ( 0 ) α n 1 ϕ n 1 ( 0 ) = 1 2 i = 1 n 2 S i ( 0 ) α n 1 ϕ n 1 ( 0 ) β n 1 1 β n 1 = 1 2 i = 1 n 2 S i ( 0 ) S n 1 ( 0 ) α n ( by   Proposition   5 ) = 1 2 i = 1 n 1 S i ( 0 ) α n .
Hence, the result is true. □
Proof of Theorem 2 
According to the definition of α n , we know α n S n ( 0 ) . From Remark 1(2), we have β n S n ( 1 ) . Thus, the results are true from Lemmas 3 and 4. □
The following are the relationship between the singular words S n ( 0 ) and S n ( 1 ) , for all n 0 .
Proposition 6. 
For all n 0 , S n + 1 ( 0 ) = r n i = 0 n S i ( 1 ) .
Proof. 
We use induction on n to prove it. It is easy to see that the result is true for n = 0 , since S 1 ( 0 ) = 00 , S 0 ( 1 ) = 0 , r 0 = 0 and S 1 ( 0 ) = r 0 S 0 ( 1 ) .
Assuming that the result is true for all m n , then for m = n + 1 , we have
S n + 2 ( 0 ) = α n + 2 ϕ n + 2 ( 0 ) β n + 2 1 = α n + 2 ϕ n + 1 ( 0 ) ϕ n + 1 ( 1 ) β n + 2 1 = α n + 2 α n + 1 1 α n + 1 ϕ n + 1 ( 0 ) β n + 1 1 β n + 1 ϕ n + 1 ( 1 ) β n + 2 1 = α n + 2 α n + 1 1 S n + 1 ( 0 ) S n + 1 ( 1 ) ( by   Remark   1 ( 2 ) ) = α n + 2 α n + 1 1 r n i = 0 n S i ( 1 ) S n + 1 ( 1 ) = r n + 1 r n 1 r n i = 0 n S i ( 1 ) S n + 1 ( 1 ) ( by   Remark   1 ( 3 ) ) = r n + 1 i = 0 n + 1 S i ( 1 ) .
Hence, the result is true. □
Proposition 7. 
For all n 1 ,
S n + 2 ( 1 ) = A r n 1 i = 1 n S i ( 0 ) .
Moreover, S n + 2 ( 1 ) = r n 1 1 2 i = 1 n S i ( 0 ) .
Proof. 
We use induction on n to prove it. It is easy to see that the result is true for n = 1 , since S 1 ( 0 ) = 00 , S 3 ( 1 ) = 01200 , r 0 = 0 , A r 0 = 012 and S 3 ( 1 ) = A r 0 S 1 ( 0 ) .
Assuming that the result is true for all m < n , then for m = n , we have
S n + 2 ( 1 ) = β n + 2 ϕ n + 2 ( 1 ) β n + 3 1 ( by   Remark   1 ( 2 ) ) = β n + 2 ϕ n + 1 ( 1 ) ϕ n ( 0 ) β n + 3 1 = β n + 2 β n + 1 1 β n + 1 ϕ n + 1 ( 1 ) β n + 2 1 β n + 2 ϕ n ( 0 ) β n + 3 1 = β n + 2 β n + 1 1 β n + 1 ϕ n + 1 ( 1 ) β n + 2 1 a l p h a n ϕ n ( 0 ) β n 1 ( by   Proposition   5 ) = β n + 2 β n + 1 1 S n + 1 ( 1 ) S n ( 0 ) = β n + 2 β n + 1 1 A r n 2 i = 1 n 1 S i ( 0 ) S n ( 0 ) = A r n 1 i = 1 n S i ( 0 ) ( by   Remark   2 ) .
Hence, the result is true. □
Proposition 8. 
i = 1 S i ( 0 ) T , i = 1 S i ( 1 ) T ˜ .
Proof. 
From Proposition 7 and Theorem 2, we have
S n + 2 ( 1 ) = r n 1 2 i = 1 n S i ( 0 )
and T = i = 0 S i ( 1 ) , so i = 1 S i ( 0 ) T . Moreover, from Proposition 6 and Theorem 2, we have
S n + 1 ( 0 ) = r n i = 0 n S i ( 1 )
and T ˜ = 1 2 i = 1 S i ( 0 ) , so i = 1 S i ( 1 ) T ˜ . □
To prove the third decomposition theorem, Theorem 3, we introduce the following lemmas.
Lemma 5. 
For all n 5 , β n ϕ n ( 1 ) = G n 3 ( 0 ) S n 2 ( 0 ) β n + 1 .
Proof. 
We use induction on n to prove it. For n = 5 , it is easy to see that β 5 = 2 , β 6 = 0 , G 2 ( 0 ) = 212001011 and S 3 ( 0 ) = 2011212 . So,
β 5 ϕ 5 ( 1 ) = 2 1 2 0 0 1 0 1 1 ̲ 2 0 1 1 2 1 2 ̲ 0 = G 2 ( 0 ) S 3 ( 0 ) β 6 .
The result is true for n = 5 . By the definition of G n 0 , we have G n 0 = A r n i = 1 n S i ( 0 ) . Assuming that the result is true for all m n , then for m = n + 1 , we have
β n + 1 ϕ n + 1 ( 1 ) = β n + 1 ϕ n ( 1 ) ϕ n ( 2 ) = β n + 1 ϕ n ( 1 ) ϕ n 1 ( 0 ) = β n + 1 β n 1 β n ϕ n ( 1 ) ϕ n 1 ( 0 ) = β n + 1 β n 1 G n 3 ( 0 ) S n 2 ( 0 ) β n + 1 ϕ n 1 ( 0 ) = β n + 1 β n 1 A r n 3 i = 1 n 3 S i ( 0 ) S n 2 ( 0 ) β n + 1 ϕ n 1 ( 0 ) = A r n 2 i = 1 n 3 S i ( 0 ) S n 2 ( 0 ) α n 1 ϕ n 1 ( 0 ) β n 1 1 β n 1 ( by   Remark   2 ) = A r n 2 i = 1 n 2 S i ( 0 ) S n 1 ( 0 ) β n + 2 = G n 2 S n 1 ( 0 ) β n + 2 .
Hence, the result is true. □
Lemma 6. 
For all n 5 ,
ϕ n ( 0 ) = 011212012 i = 1 n 4 S i ( 0 ) G i ( 0 ) S n 3 ( 0 ) β n .
Proof. 
We use induction on n to prove it. For n = 5 , it is easy to see that β 5 = 2 , S 1 ( 0 ) = 00 , S 2 ( 0 ) = 1011 and G 1 ( 0 ) = 11200 . Thus,
ϕ 5 ( 0 ) = 0 1 1 2 1 2 0 1 2 0 0 1 1 2 0 0 ̲ 1 0 1 1 ̲ 2 = 0 1 1 2 1 2 0 1 2 S 1 ( 0 ) G 1 ( 0 ) S 2 ( 0 ) β 5 .
The result is true for n = 5 . Assuming that the result is true for all m n , then for m = n + 1 , we have
ϕ n + 1 ( 0 ) = ϕ n ( 0 ) ϕ n ( 1 ) = 011212012 i = 1 n 4 S i ( 0 ) G i ( 0 ) S n 3 ( 0 ) β n ϕ n ( 1 ) = 011212012 i = 1 n 4 S i ( 0 ) G i ( 0 ) S n 3 ( 0 ) G n 3 ( 0 ) S n 2 ( 0 ) β n + 1 ( by   Lemma   5 ) = 011212012 i = 1 n 3 S i ( 0 ) G i ( 0 ) S n 2 ( 0 ) β n + 1 .
Hence, the result is true. □
Lemma 7. 
For all n 0 , β n ϕ n + 1 ( 0 ) = r n i = 0 n S i ( 1 ) β n + 1 .
Proof. 
We use induction on n to prove it. For n = 0 , it is easy to see that β 0 = 0 , β 1 = 1 , r 0 = 0 and S 0 ( 1 ) = 0 . Thus, β 0 ϕ ( 0 ) = 001 = r 0 S 0 ( 1 ) β 1 . Thus, the result is true for n = 0 . Assuming that the result is true for all m n , then for m = n + 1 , we have
β n + 1 ϕ n + 2 ( 0 ) = β n + 1 ϕ n + 1 ( 0 ) ϕ n + 1 ( 1 ) = β n + 1 β n 1 β n ϕ n + 1 ( 0 ) ϕ n + 1 ( 1 ) = β n + 1 β n 1 r n i = 0 n S i ( 1 ) β n + 1 ϕ n + 1 ( 1 ) = ( β n + 1 β n 1 r n ) i = 0 n S i ( 1 ) β n + 1 ϕ n + 1 ( 1 ) β n + 2 1 β n + 2 = r n + 1 i = 0 n S i ( 1 ) S n + 1 ( 1 ) β n + 2 ( by   Remark   1 ( 2 ) ) = r n + 1 i = 0 n + 1 S i ( 1 ) β n + 2 .
Hence, the result is true. □
Lemma 8. 
For all n 3 ,
ϕ n ( 1 ) = 12 j = 0 n 3 r j i = 0 j S i ( 1 ) β n 2 .
Proof. 
We use induction on n to prove it. For n = 3 , it is easy to see that r 0 = 0 , β 1 = 1 , S 0 ( 1 ) = 0 and S 1 ( 1 ) = 11 . Thus,
ϕ 3 ( 1 ) = 1 2 0 0 ̲ 1 ̲ = 1 2 r 0 S 0 ( 1 ) β 1 .
The result is true for n = 3 . Assuming that the result is true for all m n , then for m = n + 1 , we have
ϕ n + 1 ( 1 ) = ϕ n ( 1 ) ϕ n 1 ( 0 ) = 12 j = 0 n 3 r j i = 0 j S i ( 1 ) β n 2 ϕ n 1 ( 0 ) = 12 j = 0 n 3 r j i = 0 j S i ( 1 ) r n 2 i = 0 n 2 S i ( 1 ) β n 1 ( by   Lemma   7 ) = 12 j = 0 n 2 r j i = 0 j S i ( 1 ) β n 1 .
Hence, the result is true. □
Proof of Theorem 3 
For all n 5 , we have G n 3 ( 0 ) = A r n 3 i = 1 n 3 S i ( 0 ) . Since A 0 = 012 , A 1 = 112 a n d A 2 = 212 , by Proposition 5, we know β n G n 3 ( 0 ) . Moreover, from Remark 1 ( 4 ) , we have β n = r n . We have known that ϕ n ( 0 ) T and ϕ n ( 1 ) T ˜ , so the result is true from Lemmas 6 and 8. □

4. Lyndon Decomposition

In this section, we mainly give the Lyndon factorization of T . We totally order A by 0 < 1 < 2 and extend this order to the set A * 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) s = s 0 s 1 s 2 , with s 0 s 1 s 2 , are Lyndon words;
(2) s = s 0 s 1 s 2 s k s k + 1 , with s 0 s 1 s 2 s k , are Lyndon words, and s k + 1 < s k is a Lyndon sequence.
The following theorem gives the Lyndon factorization of T .
Theorem 6. 
T = ϕ 3 ( 0 ) ϕ ( 1 ) j = 1 i = 0 j ϕ i ( 0 ) ϕ ( 1 )
is the Lyndon factorization of the sequence T . That is,
(1) For any n 0 , ϕ 3 ( 0 ) ϕ ( 1 ) and i = 0 n + 1 ϕ i ( 0 ) ϕ ( 1 ) are Lyndon words, and
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0 ) ϕ ( 1 ) ) ϕ ( ϕ 0 ( 0 ) ϕ ( 0 ) ϕ 2 ( 0 ) ϕ ( 1 ) ) ϕ ( ϕ 0 ( 0 ) ϕ ( 0 ) ϕ 2 ( 0 ) ϕ 3 ( 0 ) ϕ ( 1 ) ) = [ ϕ 4 ( 0 ) ϕ 2 ( 1 ) ] [ ϕ ( 0 ) ϕ 2 ( 0 ) ϕ 2 ( 1 ) ] [ ϕ ( 0 ) ϕ 2 ( 0 ) ϕ 3 ( 0 ) ϕ 2 ( 1 ) ] [ ϕ ( 0 ) ϕ 2 ( 0 ) ϕ 3 ( 0 ) ϕ 4 ( 0 ) ϕ 2 ( 1 ) ] = [ ϕ 3 ( 0 ) ϕ ( 1 ) ] [ ϕ 0 ( 0 ) ϕ ( 0 ) ϕ ( 1 ) ] [ ϕ 0 ( 0 ) ϕ ( 0 ) ϕ 2 ( 0 ) ϕ ( 1 ) ϕ 0 ( 0 ) ] [ ϕ ( 0 ) ϕ 2 ( 0 ) ϕ 3 ( 0 ) ϕ ( 1 ) ϕ 0 ( 0 ) ] = [ ϕ 3 ( 0 ) ϕ ( 1 ) ] [ ϕ 0 ( 0 ) ϕ ( 0 ) ϕ ( 1 ) ] [ ϕ 0 ( 0 ) ϕ ( 0 ) ϕ 2 ( 0 ) ϕ ( 1 ) ] [ ϕ 0 ( 0 ) ϕ ( 0 ) ϕ 2 ( 0 ) ϕ 3 ( 0 ) ϕ ( 1 ) ] = ξ ,
where ϕ 4 ( 0 ) = ϕ 3 ( 0 ) ϕ 3 ( 1 ) = ϕ 3 ( 0 ) ϕ 2 ( 1 ) ϕ ( 0 ) = ϕ 3 ( 0 ) ϕ ( 1 ) ϕ 0 ( 0 ) ϕ ( 0 ) . 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

  1. 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]
  2. De Luca, A. A combinatorial property of the Fibonacci words. Inform. Process. Lett. 1981, 12, 193–195. [Google Scholar] [CrossRef]
  3. Allouche, J.; Shallit, J. Automatic Sequences. Theory, Applications, Generalizations; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
  4. Fogg, N. Substitutions in Dynamics, Arithmetics and Combinatorics; Lecture Notes in Mathematics; Springer: Berlin/Heidelberg, Germany, 2002; Volume 1794. [Google Scholar]
  5. Allouche, J. Arithmétique et automates finis. Astérisque 1987, 147, 13–26. [Google Scholar]
  6. Bombieri, E.; Taylor, J. Which distributions of matter diffract? An initial investigation. J. Phys. 1986, 47, 19–28. [Google Scholar] [CrossRef] [Green Version]
  7. Queffélec, M. Substitution Dynamical Systems-Spectral Analysis; Lecture Notes in Mathematics; Springer: Berlin/Heidelberg, Germany, 2010; Volume 1294. [Google Scholar]
  8. 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]
  9. Wen, Z.; Wen, Z. The sequences of substitution and related topics. Adv. Math. 1989, 123–145. [Google Scholar]
  10. Ramírez, J.; Rubiano, G. On the k-Fibonacci words. Acta Univ. Sapientiae Inform. 2013, 5, 212–226. [Google Scholar] [CrossRef] [Green Version]
  11. Ramírez, J.; Rubiano, G. Biperiodic fibonacci word and its fractal curve. Acta Polytech. 2015, 55, 50–58. [Google Scholar] [CrossRef] [Green Version]
  12. 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] [Green Version]
  13. Rauzy, G. Nombres algébriques et substitutions. Bull. Soc. Math. France 1982, 110, 147–178. (In French) [Google Scholar] [CrossRef]
  14. Huang, Y.; Wen, Z. The sequence of return words of the Fibonacci sequence. Theor. Comput. Sci. 2015, 593, 106–116. [Google Scholar] [CrossRef] [Green Version]
  15. Huang, Y.; Wen, Z. Kernel words and gap sequence of the tribonacci sequence. Acta Math. Sci. 2016, 36, 173–194. [Google Scholar] [CrossRef]
  16. 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]
  17. Kjos-Hanssen, B. Automatic complexity of Fibonacci and Tribonacci words. Discret. Appl. Math. 2021, 289, 446–454. [Google Scholar] [CrossRef]
  18. Břinda, K.; Pelantová, E.; Turek, O. Balances of m-bonacci words. Fundam. Inform. 2014, 132, 33–61. [Google Scholar] [CrossRef] [Green Version]
  19. 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]
  20. 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] [Green Version]
  21. 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]
  22. 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]
  23. 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]
  24. Wen, Z.; Wen, Z. Some properties of the singular words of the Fibonacci word. Eur. J. Comb. 1994, 15, 587–598. [Google Scholar]
  25. 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]
  26. Melançon, G. Lyndon words and singular factors of Sturmian words. Theor. Comput. Sci. 1999, 218, 41–59. [Google Scholar] [CrossRef] [Green Version]
  27. Melançon, G. Lyndon factorization of Sturmian words. Discret. Math. 2000, 210, 137–149. [Google Scholar] [CrossRef] [Green Version]
  28. Tan, B.; Wen, Z. Some properties of the Tribonacci sequence. Eur. J. Combin. 2007, 28, 1703–1719. [Google Scholar] [CrossRef] [Green Version]
  29. Cao, W.; Wen, Z. Some properties of the factors of Sturmian sequences. Theor. Comput. Sci. 2003, 304, 365–385. [Google Scholar] [CrossRef] [Green Version]
  30. Glen, A. Occurrences of palindromes in characteristic Sturmian words. Theor. Comput. Sci. 2006, 352, 31–46. [Google Scholar] [CrossRef] [Green Version]
  31. Saari, K. Lyndon words and Fibonacci numbers. J. Comb. Theory Ser. A 2014, 121, 34–44. [Google Scholar] [CrossRef]
  32. Berthé, V.; Brlek, S.; Choquette, P. Smooth words over arbitrary alphabets. Theor. Comput. Sci. 2005, 341, 293–310. [Google Scholar] [CrossRef] [Green Version]
  33. Chuan, W.; Ho, H. Locating factors of the infinite Fibonacci word. Theor. Comput. Sci. 2005, 349, 429–442. [Google Scholar] [CrossRef] [Green Version]
  34. Apostolico, A.; Crochemore, M. Fast parallel Lyndon factorization with applications. Math. Systems Theory 1995, 28, 89–108. [Google Scholar] [CrossRef] [Green Version]
  35. Pierre Duval, J. Factorizing words over an ordered alphabet. J. Algorithms 1983, 4, 363–381. [Google Scholar] [CrossRef]
  36. 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] [Green Version]
  37. Crochemore, M.; Russo, L. Cartesian and Lyndon trees. Theor. Comput. Sci. 2020, 806, 1–9. [Google Scholar] [CrossRef]
  38. 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).
  39. Lothaire, M. Combinatorics on Words; Encyclopedia of Mathematics and its Applications; AddisonWesley: Boston, MA, USA, 1983; Volume 17. [Google Scholar]
  40. 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.

Share and Cite

MDPI and ACS Style

Zhang, J.; Wen, Z. Some Properties of the Quasi-Tribonacci Sequence. Mathematics 2023, 11, 2853. https://doi.org/10.3390/math11132853

AMA Style

Zhang J, Wen Z. Some Properties of the Quasi-Tribonacci Sequence. Mathematics. 2023; 11(13):2853. https://doi.org/10.3390/math11132853

Chicago/Turabian Style

Zhang, Jiemeng, and Zhixiong Wen. 2023. "Some Properties of the Quasi-Tribonacci Sequence" Mathematics 11, no. 13: 2853. https://doi.org/10.3390/math11132853

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop