0% found this document useful (0 votes)
52 views9 pages

Properties of Fibonacci Languages: S.S Yu, Yu-Kuang Zhao

This document discusses properties of Fibonacci languages. It begins by defining Fibonacci sequences of words and Fibonacci languages. It then shows that the Fibonacci language Fu;v is context-free and not dense if the word uv contains at least two distinct letters. It also shows that for k≥2 and 1≤i<k, the word wiwi is not a prefix of the Fibonacci word wk. Finally, it shows that for k≥2, the language Fk={wnk|n≥1} is a code.

Uploaded by

vanaj123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views9 pages

Properties of Fibonacci Languages: S.S Yu, Yu-Kuang Zhao

This document discusses properties of Fibonacci languages. It begins by defining Fibonacci sequences of words and Fibonacci languages. It then shows that the Fibonacci language Fu;v is context-free and not dense if the word uv contains at least two distinct letters. It also shows that for k≥2 and 1≤i<k, the word wiwi is not a prefix of the Fibonacci word wk. Finally, it shows that for k≥2, the language Fk={wnk|n≥1} is a code.

Uploaded by

vanaj123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Discrete Mathematics 224 (2000) 215–223

www.elsevier.com/locate/disc

Properties of Fibonacci languages


S.S Yua; ∗ , Yu-Kuang Zhaob
a Department of Applied Mathematics, National Chung-Hsing University, Taichung, Taiwan
b Required Courses Department, National Chung-Yi Institute of Technology, Taichung, Taiwan

Abstract

The Fibonacci language Fu; v is the set of all Fibonacci words, where the rst word and the
second word in the Fibonacci sequence are u and v, respectively. We show that the language
Fu; v is context-free free. We also show that Fu; v is not dense if the word uv contains at least two
distinct letters. Let wi denote the ith Fibonacci word. When considering the Fibonacci language
Fa; b for two distinct letters a and b, we show that for k¿2 and 16i ¡ k, the word wi wi is not
a pre x of the Fibonacci word wk . We also show that for k¿2, the language Fk = {wnk | n¿1}
is a code. c 2000 Elsevier Science B.V. All rights reserved.

Keywords: Fibonacci word; Primitive; Palindrome word; Code; Context-free

1. Introduction

Let X be a nite alphabet consisting of more than one element and let {a; b} ⊆ X . Let
X ∗ be the free monoid generated by X . Let 1 be the empty word and let X + =X ∗ \{1}.
The length of a word x is denoted by lg (x).
In this paper, for two words u; v ∈ X + , we consider the following two types of
Fibonacci sequences of words:
(1) w1 = u; w2 = v; w3 = uv; : : : ; wn = wn−2 wn−1 ; : : : ;
(2) w10 = u; w20 = v; w30 = vu; : : : ; wn0 = wn−1
0 0
wn−2 ;::: .
Clearly, lg (wi ) ¿ lg (wi−1 ) for every i¿3. Let Fu; v ={wi | i¿1} and Fu;0 v ={wi0 | i¿1}.
The language Fa; b is a DOL language generated by the DOL rules a → b and b → ab
(see [9]). The sequence of Fibonacci words plays a very important role in the com-
binatorial theory of free monoids for the recursively de ned structure and remarkable
combinatorial properties of Fibonacci words. Some properties concerning the Fibonacci
language Fu; v have been investigated by De Luca in [6], by Fan and Shyr in [1] and by

∗Corresponding author.
E-mail addresses: pyu@ ower.amath.nchu.edu.tw (S. Yu), zhao@chinyi.ncit.edu.tw (Y. Zhao).

0012-365X/00/$ - see front matter c 2000 Elsevier Science B.V. All rights reserved.
PII: S 0 0 1 2 - 3 6 5 X ( 0 0 ) 0 0 0 8 9 - 3
216 S.S. Yu, Y. Zhao / Discrete Mathematics 224 (2000) 215–223

Knuth et al. in [4]. In this paper, we investigate properties of the Fibonacci language
Fu; v either.
Section 2 is dedicated to investigate the relationships between Fibonacci words and
primitive words. A word f ∈ X + which is not a power of any other word is called a
primitive word. Let Q be the set of all primitive words over X [10]. It is known that
every word in X + can be uniquely expressed as a power of a primitive word [8]. For
x ∈ X + , if x = fn , n¿1, and f is a primitive word, then we call√f the primitive root
√ √
of the word x and is denoted by x. For a language A ⊆ X + , let A = { x | x ∈ A}. In
Section 2, we characterize the Febonacci language Fu; v consisting of primitive words.
A word w ∈ X ∗ is said to be a proper d-factor of a word z ∈ X + if w 6= z and
z = wx = yw for some words x; y. The family of words which have i distinct proper
d-factors is denoted by D(i). A word x ∈ X + is d-primitive if x = wy1 = y2 w, where
w ∈ X + and y1 ; y2 ∈ X ∗ , implies that x = w and y1 = y2 = 1. The set D(1) is exactly
the family of all d-primitive words. For the properties of D(i), one is referred to [12].
Consider wi ∈ Fa; b . In Section 3, we show that {w1 ; w2 ; w3 } ⊆ D(1) and wi ∈ D(j) for
i¿4 and j = bi=2c.
If x = a1 a2 · · · an , where ai ∈ X , then we de ne the reverse (or mirror image) of the
word x to be x̂ = an · · · a2 a1 . A word x is called palindrome if x = x̂. Remark that if
u = a and v = b, then wbi = wi0 , i¿1. Let R be the set of all palindrome words over the
alphabet X . Note that 1 ∈ R. Clearly, if x ∈ XX + ∩ R, then x 6∈ D(1).
The palindrome words and languages are studied by De Luca in [6,7], by Knuth et al.
in [4], and by Lin in his Master thesis [5]. For the motivation of studying palindrome
words and languages, one is referred to [7,8]. We derive that Fa; b ∩ R = {a; b; bab} and
Fa; b Fa; b ∩ R = {aa; bb; aba; babbab; w4 w6 } ∪ {w2n w3 | n¿1} in Section 3.
Section 4 deals with the properties concerning the Fibonacci language Fu; v related
to formal language theory. We show that Fu; v is context-free free and not dense. Items
not de ned here or in the subsequence sections can be found in books [2] and [10].
A non-empty language L is a code if for x1 ; x2 ; : : : ; x n ; y1 ; y2 ; : : : ; ym ∈ L, x1 x2 · · · x n =
y1 y2 · · · ym implies that m = n and xi = yi for i = 1; 2; : : : ; n. In Section 5, we show
that for k¿2, Fk = {wnk | n¿1} ⊆ Fa; b is a code.

2. Fu; v and primitive words

In [1], Fan and Shyr have proved that the Fibonacci languages Fa; b and Fa;0 b are
subsets of Q. Now, we shall characterize non-empty words u and v such that Fu; v ⊆ Q.

Lemma 1 (Lyndon and Schutzenbuger [8]).


(1) Let xy = pi , x; y ∈ X + , p ∈ Q, i¿1. Then yx = qi for some q ∈ Q.
√ √
(2) For x; y ∈ X + , xy = yx implies that x = y.

Lemma 2 (Shyr and Yu [11]). Let xqm = gk for some m; k¿1; x ∈ X + ; q ∈ Q and
g ∈ Q; with x 6∈ q+ . Then q 6= g and lg (g) ¿ lg (qm−1 ).
S.S. Yu, Y. Zhao / Discrete Mathematics 224 (2000) 215–223 217

√ √
Proposition 3. Let u; v ∈ X + . Then uvvuv 6∈ Q if and only if u = v. If uvvuv 6∈ Q;
then v 6∈ Q.

√ √ √
Proof. If u = v, say u = q for some q ∈ Q, then clearly uvvuv ∈ qq+ ; hence
uvvuv 6∈ Q. Now, suppose that uvvuv 6∈ Q. By Lemma 1, vuvuv 6∈ Q. There exist g ∈ Q
and k¿2 such that v(uv)2 =gk . By Lemma 2, lg (g) ¿ lg (uv). Thus, k =2. This implies
that there exist v1 ; v2 ∈ X + such that v =v1 v2 and g=vuv1 =v2 uv, i.e., v1 v2 uv1 =v2 uv1 v2 .
Since lg (vuv1 ) = lg (v2 uv), lg (v1 ) = lg (v2 ). As v1 v2 uv1 = v2 uv1 v2 , v1 = v2 and v1 u =
√ √ √ √ √ √
v2 u = uv1 . By Lemma 1, v1 = u. Thus, v = v1 v1 = v1 = u and v 6∈ Q.

Proposition 4. For u; v ∈ X + ; there exists q∈Q such that Fu; v ⊆ q+ or


(Fu; v \{u; v; uv; vuv}) ⊆ Q.

√ √ √
Proof. If u = v, say u = q for some q ∈ Q, then clearly Fu; v ⊆ q+ . Remark that
√ √ √ √
w = u, w2 = v and wi = wi−2 wi−1 for i¿3. Suppose u 6= v. Clearly, v 6= uv and
√1 √ √ √
uv 6= vuv. That is, wk 6= wk+1 for 16k63. As wi =wi−2 wi−1 =wi−2 wi−3 wi−2 =
wi−4 wi−3 wi−3 wi−4 wi−3 for every i¿5, by (1) of Proposition 3, w5 ; w6 ; w7 ∈ Q. Again,
by (2) of Proposition 3, wj ∈ Q for every j¿8.

Proposition 5. For u; v ∈ X + ; Fu; v ⊆ Q if and only if u; v; uv; vuv ∈ Q.

Proof. If Fu; v ⊆ Q, then clearly u; v; uv; vuv ∈ Q. Now, let u; v; uv; vuv ∈ Q. Since
{u; v; uv; vuv} ⊆ Fu; v and Fu; v * q+ for any q ∈ Q, by Proposition 4, Fu; v ⊆ Q.
√ √
Proposition 6. For u; v ∈ X + ; Fu; v = Fu;0 v if and only if u= v.

√ √
Proof. If Fu; v = Fu;0 v , then uv = vu. By Lemma 1, u = v. Now suppose that
√ √
u = v. Then there exist q ∈ Q and i; j¿1 such that u = qi and v = qj . One has that
Fu; v ⊆ q+ and Fu;0 v ⊆ q+ . For every k¿1, since lg (wk ) = lg (wk0 ), wk = wk0 . Therefore,
Fu; v = Fu;0 v .

For z ∈ X + and x; y ∈ X ∗ , if z = xy, then x is called a preÿx of z and y is called a


sux of z, denoted by x6p z and y6s z, respectively. If x 6= z (y 6= z), then x (y) is
said to be a proper preÿx (proper sux) of z, denoted by x ¡p z (y ¡s z).
√ √
Proposition 7. Let u; v ∈ X + . Then wi 6p wi+1 for any i¿3 if and only if u = v.

Proof. Suppose there exists i¿3 such that, wi 6p wi+1 . Then wi =wi−2 wi−1 and wi+1 =
wi−1 wi = wi−1 wi−2 wi−1 . Since wi−2 wi−1 = wi 6p wi+1 = wi−1 wi−2 wi−1 , wi−2 wi−1 =
√ √
wi−1 wi−2 . Thus, wi−2 = wi−1 . This implies that wi−2 6p wi−1 . Thus, one must have
√ √ √ √ √ √
that wi−3 = wi−2 . Finally, we shall get that u = w1 = w2 = v.
218 S.S. Yu, Y. Zhao / Discrete Mathematics 224 (2000) 215–223

√ √ √
Let q = u. If u = v, then Fu; v ⊆ q+ . Thus, wi = qr and wi+1 = qs for some r; s¿1
and s ¿ r. Then wi 6p wi+1 .

From Propositions 3, 6 and 7, we have the following conclusion:

Theorem 8. Let u; v ∈ X + . Then the following are equivalent:


√ √
(1) u = v;
(2) Fu; v = Fu;0 v ;
(3) uvvuv 6∈ Q;
(4) wi 6p wi+1 for some i¿3.

3. Fa; b and d-primitive properties

This section is dedicated to the studing of d-primitive and palindrome properties of


Fibonacci words. Consider the Fibonacci language Fa; b . First, we are going to investi-
gate the relationship between i and j such that wi ∈ D(j).

Lemma 9. For i¿4; wi+1 y1 6= y2 wi+1 for every non-empty preÿx y1 and sux y2
of wi .

Proof. Suppose there exist i¿4 and y1 ; y2 ∈ X + such that y1 6p wi , y2 6s wi and


wi+1 y1 = y2 wi+1 . Then lg (y1 ) = lg (y2 ).
Case i: lg (y1 )6lg (wi−1 ). Since wi+1 = wi−1 wi−2 wi−1 , y2 wi−1 wi−2 wi−1 = y2 wi+1 =
wi+1 y1 = wi−1 wi−2 wi−1 y1 . This implies that there is z ∈ X ∗ such that wi−1 = zy1 = y0 z
for some y0 ∈ X + . Then lg (y0 ) = lg (y1 ). As lg (y2 ) = lg (y1 ) = lg (y0 ) and y2 6p wi−1 ,
y2 =y0 , i.e., wi−1 =zy1 =y2 z. Thus, y2 y2 zwi−2 zy1 =y2 wi−1 wi−2 wi−1 =wi−1 wi−2 wi−1 y1 =
√ √
y2 zwi−2 y2 zy1 , i.e., y2 zwi−2 = zwi−2 y2 . By Lemma 1, y2 = zwi−2 . One has that
wi−1 wi−2 = y2 zwi−2 6∈ Q. By Lemma 1, wi = wi−2 wi−1 6∈ Q. This contradicts the fact
that wi ∈ Q for every i [3].
Case ii: lg (y1 ) ¿ lg (wi−1 ). As wi = wi−2 wi−1 and y2 6s wi , there exist x1 ; x2 ∈ X ∗
such that wi−2 = x2 x1 and y2 = x1 wi−1 , where lg (x1 )6lg (wi−2 ) ¡ lg (wi−1 ). Again,
wi = wi−2 wi−1 and y1 6p wi imply that there is x3 ∈ X + such that y1 = wi−2 x3 and
x3 6p wi−1 . There is z1 ∈ X ∗ such that wi−1 =x3 z1 . Since wi+1 y1 =wi+1 wi−2 x3 =y2 wi+1 =
y2 wi−1 wi−2 wi−1 , x3 6s wi−1 . There is z2 ∈ X ∗ such that wi−1 = z2 x3 .
Subcase ii(1): z2 6= 1. From the equation wi+1 y1 = wi−1 wi−2 wi−1 wi−2 x3 =
wi−1 wi−2 z2 x3 wi−2 x3 =y2 wi+1 =x1 wi−1 wi−1 wi−2 wi−1 =x1 wi−1 z2 x3 wi−2 d2 x3 , one has that
√ √
z2 x3 wi−2 = x3 wi−2 z2 . By Lemma 1, z2 = x3 wi−2 . Thus, wi−1 wi−2 = z2 x3 wi−2 6∈ Q. By
Lemma 1, wi = wi−2 wi−1 6∈ Q, a contradiction.
Subcase ii(2): z2 = 1. Then x3 = wi−1 and y1 = wi−2 wi−1 = wi . Since lg (y2 ) = lg (y1 )
and y2 6s wi , y2 = wi . One has that wi+1 wi = wi+1 y1 = y2 wi+1 = wi wi+2 . By Lemma 1,
√ √
wi+1 = wi . Again, wi+2 = wi wi+1 6∈ Q, a contradiction.
S.S. Yu, Y. Zhao / Discrete Mathematics 224 (2000) 215–223 219

Proposition 10. For i¿4; wi = x(yx)j for some x; y ∈ X ∗ and j¿0 with
lg (x)¿lg (wi−2 ) if and only if (1) x = wi or (2) x = wi−2 ; y = wi−3 and wi = xyx.

Proof. Let i¿4. If (1) x = wi and y = 1 or (2) x = wi−2 and y = wi−3 , then clearly
wi = x or wi = xyx.
Conversely, by the observation of w1 = a, w2 = b, w3 = ab, w4 = bab, w5 = abbab
and w6 = bababbab, the result is true for i = 4; 5; 6. Now, let i¿7 and wi = x(yx)j for
some x; y ∈ X ∗ and j¿0 with lg (x)¿ ∗ lg (wi−2 ). If x = wi , then clearly wi = x(yx)j
for y = 1 and j = 0. Since wi = wi−2 wi−3 wi−2 and lg (wi−3 ) ¡ lg (wi−2 ), if x = wi−2 ,
then wi = x(yx)j implies that y = wi−3 , j = 1 and wi = xyx. Consider the case that
x 6= wi−2 and x 6= wi . As wi = wi−2 wi−3 wi−2 = x(yx)j and lg(x)¿lg(wi−2 ), j = 1 and
wi = xyx. By the condition lg(x)¿lg(wi−2 ), there exist a non-empty proper pre x y1
and a non-empty proper sux y2 of wi−3 such that x = wi−2 y1 = y2 wi−2 . As i¿7,
i − 3¿4. This contradicts the result wi−2 y1 6= y2 wi−2 obtained in Lemma 9.

Theorem 11. (1) {a; b; ab} ⊆ D(1);


(2) for i¿4; wi ∈ D(j); where j = bi=2c.

Proof. By the observation of w1 = a, w2 = b, w3 = ab, w4 = bab and w5 = abbab,


{a; b; ab} ⊆ D(1) and {w4 ; w5 } ⊆ D(2). Let i¿6. As wi = wi−2 wi−3 wi−2 , if there is
x ∈ X + such that lg(x)¿lg(wi−2 ), x6p wi and x6s wi , then by Proposition 10, x = wi−2
or x = wi . Also, as wi = wi−2 wi−3 wi−2 , for every x ∈ X ∗ with lg(x) ¡ lg(wi−2 ), x6p wi
and x6s wi imply that x6p wi−2 and x6s wi−2 . Thus, if wi−2 ∈ D(k) for some j¿1,
then wi ∈ D(k + 1). Therefore, for i¿4, wi ∈ D(j), where j = bi=2c.

Two words x; y ∈ X + are non-overlapping if every non-empty pre x of x is not a


sux of y, and vice versa. For u; v ∈ X + , if {u; v} ⊆ D(1) and u; v are non-overlapping,
one can also show a similar result for wi ∈ Fu; v as the result obtained in Theorem 11.
Next, we are going to nd out the relationship between the Fibonacci language Fa; b
and R.

Proposition 12. Fa; b ∩ R = {a; b; bab}.

Proof. By [1], Fa; b ∩ R2 = Fa; b \ {a; b; ab; bab}. In [13], we show that R2 ∩ (R ∩ Q) = ∅,
where 1 6∈ Q. In [1], it is shown that Fa; b ⊆ Q. Since a; b; bab ∈ R and ab 6∈ R, Fa; b ∩
R = {a; b; bab}.

Remark that for x; z ∈ X + and y ∈ X ∗ , if xyz ∈ R and lg(x) = lg(z), then


cn = n dn , where n ∈ R and
x̂ = z and y ∈ R. In [6], it is shown that for all n¿3, w
dn = ab if n is even and dn = ba if n is odd. This property implies that for all n¿2,
c3 wc
w 2n ∈ R [5].

Proposition 13. Fa; b Fa; b ∩ R = {aa; bb; aba; babbab; w4 w6 } ∪ {w2n w3 | n¿1}.
220 S.S. Yu, Y. Zhao / Discrete Mathematics 224 (2000) 215–223

Proof. By [5], it is shown that ({aa;


 bb; aba; babbab; w4 w6 }∪{w2n w3 | n¿1}) ⊆ R. Here,
we shall show that Fa; b Fa; b ∩ R \({aa; bb; aba; babbab; w4 w6 } ∪ {w2n w3 | n¿1}) = ∅.
We consider the following cases of wi wj for i; j¿1:
Case 1: j = 1 and i¿1. Clearly, w1 w1 = aa ∈ R and w3 w1 = aba ∈ R. From [6],
one has that b6p wi for every even number i¿4 and w2 = b. Since wj = w1 = a,
wi wj = wi a 6∈ R for every even number i. From [6], again, one has that wi = ab i for
every odd number i¿5, where i ∈ R. Remark that i contains at least one a√for every

i¿5. If wi wj = ab i a ∈ R, then b i ∈ R. Thus, b i = i b. By Lemma 1, b = b = i .
+
That is, i ∈ b which is impossible for every odd number i¿5. Thus w2 w1 6∈ R and
wi w1 6∈ R for every i¿4.
Case 2: j¿2 and i = 2k − 1 for k¿1. Since b6s wj for every j¿2 and a6p wi for
every odd number i, wi wj 6∈ R. Therefore, in the following cases, we only consider the
case of even numbers i.
Case 3: j = 2 and i = 2k for k¿1. Clearly, w2 w2 = bb ∈ R. From [6], one has that
wi = ba i for every even number i¿4, where i ∈ R. Remark that i contains at least
one b for every i¿4. If wi wj = ba i b ∈ R, then a i ∈ R. Thus a i = i a. By Lemma 1,
√ √
a = a = i . That is, i ∈ a+ which is impossible for every even number i¿4.
Case 4: j = 3 and i = 2k for k¿1. For every even number i¿2, by [1], wi wj ∈ R.
Case 5: j = 4 and i = 2k for k¿1. Clearly w2 w4 = bbab 6∈ R and w4 w4 = babbab ∈ R.
For every even number i¿6, since w6 6p wi and w6 = bababbab, wi = baba i b for
some i ∈ X + . Since a i b 6∈ R for every i ∈ X + , wi w4 = baba i bbab 6∈ R for every
even number i¿6.
Case 6: j = 5 and i = 2k for k¿1. Clearly, w2 w5 = babbab ∈ R. By Proposition
12, w4 w5 = w6 6∈ R. For every even number i¿6, since w6 6p wi and w6 = bababbab,
wi = babab i for some i ∈ X + . As lg(babab) = lg(w5 ) and ŵ5 = babba 6= babab, wi w5 =
babab i w5 6∈ R for every even number i¿6.
Case 7: j = 6 and i = 2k for k¿1. Clearly, w2 w6 = bbababbab 6∈ R and
w4 w6 = babbababbab ∈ R. For every even number i¿6, since w6 6p wi , wi = w6 xi for
some xi ∈ X ∗ . By Proposition 12, w6 6∈ R. Thus, wi w6 = w6 xi w6 6∈ R.
Case 8: j¿7 and i = 2k for k¿1. For every j¿7, w6 6s wj . And for every j¿7,
w5 6p wj if j is odd and w6 6p wj if j is even. Thus, for j¿7, there is xj ∈ X ∗ such
that wj = w5 xj w6 = w5 xj bababbab if j is odd and wj = w6 xj w6 = w6 xj bababbab if j is
even. Thus, b6p wj if j is even. Now, we consider the following subcases:
Subcase 8(i): i = 2. If j is even, then bb6p bwj = w2 wj . As ab6s wj , w2 wj 6∈ R. If
j = 7, then w2 w7 = b(abbabbababbab) = (babbab)ba(babbab) 6∈ R. If j¿9 is odd, then
wj =w5 w6 j w6 for some j ∈ X ∗ . Thus, w2 wj =bw5 w6 j w6 =(babbab)w6 j ba(babbab).
As b6p w6 , w6 j ba 6∈ R. This implies that w2 wj 6∈ R.
Subcase 8(ii): i = 4. For odd number j¿7, w4 wj = w4 w5 xj w6 = w6 xj w6 .
Since w6 6∈ R, w4 wj = w6 xj w6 6∈ R. For even number j¿8, w4 wj = w4 w6 xj w6 = (bab)
(bababbab)xj (babbabab) = (bab)bababbabxj babba(bab) 6∈ R.
Subcase 8(ii): i = 2k for k¿3. For i = 2k and k¿3, w6 = w4 w5 6p wi . Then wi = w6 yi
for some yi ∈ X ∗ . Thus wi wj = w6 yi w5 xj w6 or wi wj = w6 yi w6 xj w6 . As w6 6∈ R, wi wj 6∈ R
for every even number i¿6.
S.S. Yu, Y. Zhao / Discrete Mathematics 224 (2000) 215–223 221

4. Fu; v related to formal language theory

A language L is said to be regular free (context-free free) if every in nite subset of


L is not a regular (context-free) language. Of course, if a language is context-free free,
then it is also regular free. It is known that if L is an in nite context-free language,
then there exist x1 ; x2 ; x3 ; x4 ; x5 ∈ X ∗ , lg(x2 x4 )¿1 such that {x1 x2n x3 x4n x5 | n¿0} ⊆ L (see
[2]). A language of the form {x1 x2n x3 x4n x5 | n¿0} is called a context-free component.

Theorem 14. For any u; v ∈ X + ; Fu; v is context-free free.

Proof. Suppose on the contrary that Fu; v is not context-free free. Then there is an in-
nite context-free subset of Fu; v . That is, there exist x1 ; x2 ; x3 ; x4 ; x5 ∈ X ∗ , lg(x2 x4 )¿1,
such that {x1 x2n x3 x4n x5 | n¿0} ⊆ Fu; v . Remark that w1 = u, w2 = v, wi = wi−2 wi−1 for
i¿3, Fu; v = {wi | i¿1} and lg(wi ) ¡ lg(wi+1 ) for every i¿2. There is k¿3 such that
wk = x1 x2j x3 x4j x5 for some j¿1 and lg(wk−1 ) ¿ lg(x2 x4 ). This implies that lg(wk+1 ) =
lg(wk−1 ) + lg(wk ) ¿ lg(x1 x2j+1 x3 x4j+1 x5 ). Thus x1 x2j+1 x3 x4j+1 x5 6∈ Fu; v , a contradiction.
Therefore, Fu; v is context-free free.

A word is said to be 4-powers free if it has no subword in the form x4 for any
word x ∈ X + . A language is called 4-powers free if every word in this language is
4-powers free. A language L is dense if for every x ∈ X ∗ , X ∗ xX ∗ ∩ L 6= ∅. If X = {c}
and u; v ∈ X + , then clearly, Fu; v is dense. In the following proposition, we consider the
case that |X |¿2.

Proposition 15. For u; v ∈ X + ; Fu; v is not dense.

Proof. By de nition, every word in Fu; v , except u and v, is a product of u and v.


If u; v ∈ c+ for c ∈ X , then Fu; v ⊆ c+ . Clearly, in this case, Fu; v is not dense. Now,
suppose that the word uv contains at least two distinct letters. By [3], Fa; b is 4-powers
free. Every subword w of a Fibonacci word with lg(w) = 4 lg(uv) must contain at least
one u and one v. This implies that every subword of a Fibonacci word with length
longer than or equal to 4 lg(uv) containing at least two distinct letters. Thus, for any
a ∈ X , the word a4 lg(uv) cannot be a subword of any word in Fu; v . Thus Fu; v is not
dense.

5. The Fibonacci language Fa; b and codes

It is shown that languages F11 = {wn | n = 2k − 1; k¿1} and F21 = {wn | n = 2k; k¿1}
are codes [1], where w1 = a, w2 = b and wi = wi−2 wi−1 , i¿3. In this section, we are
going to show that for k¿2, the language Fk = {wnk | k¿1} is also a code.

Lemma 16. For every i¿1; wi


p wi+1 .
222 S.S. Yu, Y. Zhao / Discrete Mathematics 224 (2000) 215–223

√ √
Proof. By observation, w1
p w2 and w2
p w3 . Since a=a 6= b= b, by Proposition
7, wi
p wi+1 for every i¿3.

Moreover, from the de nition of Fibonacci sequence w1 ; w2 ; : : : ; wn ; : : : ; we give the


following remark:

Remark 17. (1) If wi1 6p wj and wi2 6p wj for some i1 ; i2 ; j¿1 with i1 ¿i2 , then
wi2 6p wi1 .
(2) wi 6p wj implies that j − i is an even number.

Proposition 18. Let k¿5. Then for 16i6k − 4; wi 6p wk implies that


wi wi+1 wi+1 wi wi+1 6p wk .

Proof. Since wj = wj−2 wj−1 = wj−2 wj−3 wj−2 = wj−4 wj−3 wj−3 wj−4 wj−3 for every j¿5,
w5 = w1 w2 w2 w1 w2 . We shall prove this proposition by induction on the number j. Now
suppose we know the result for 56j6n. Consider the word wk . If i = n − 3 such that
wi 6p wn+1 , by wn+1 = wn−3 wn−2 wn−2 wn−3 wn−2 , wn−3 wn−2 wn−2 wn−3 wn−2 6p wn+1 . If
there is i ¡ n − 3 such that wi 6p wn+1 , then by Remark 17, 16i6n − 5. Since wn+1 =
wn−1 wn , wi 6p wn−1 with i6(n−1)−4. By the induction hypothesis, wi wi+1 wi+1 wi wi+1
6p wn−1 . Thus wi wi+1 wi+1 wi wi+1 6p wn+1 .

Proposition 19. For each k¿2; wi wi


p wk for every i ¡ k.

Proof. Since w1 = a, w2 = b, w3 = ab, w4 = bab and w5 = abbab, for 26k65,


wi wi
p wk for every i ¡ k. For k ¿ 5, suppose there is i ¡ k such that wi wi 6p wk .
Since wk = wk−2 wk−1 and wk−2
p wk−1 , wk−2 wk−2
p wk . By Remark 17, i6k − 4.
By Proposition 18, wi 6p wk and 16i6k −4 imply that wi wi+1 wi+1 wi wi+1 6p wk . Thus,
wi 6p wi+1 , by Lemma 16, which is impossible.

Theorem 20. For k¿2; the language Fk = {wnk | n¿1} is a code.

Proof. As F21 is a code, it is true for every even number k. Now, let k¿3 be an odd
number. Suppose Fk is not a code. Then there exist wi1 ; wi2 ; : : : ; win ; wj1 , wj2 ; : : : ; wjm ∈ Fk
for some nite integers m; n¿1 such that wi1 6= wj1 and wi1 wi2 · · · win = wj1 wj2 · · · wjm .
Since wi1 6= wj1 , let i1 ¡ j1 . Then wi1 6p wj1 . By the de nition of Fk , j1 ¿2k¿6.
By Remark 17 and k is an odd number, i1 6j1 − 2k6j1 − 6. From Proposition 18,
one has that wi1 wi1 +1 wi1 +1 wi1 wi1 +1 6p wj1 . By Proposition 19, wi1 +1 wi1 +1
p wi2 . Thus,
wi2 6p wi1 +1 wi1 +1 ; and hence wi2 6p wi1 +1 . Since wi1 +1 6∈ Fk and wi1
p wi1 +1 , i2 6
i1 − k6i1 − 3, that is, i2 6(i1 + 1) − 4. Again, wi2 wi2 +1 wi2 +1 wi2 wi2 +1 6p wi1 +1 . Similarly,
wi3 ¡p wi2 +1 and i3 6(i2 + 1) − 4. Since n is nite, there exists an integer 16r6n such
that wir
p wir +1 . This contradicts the condition that wi1 wi2 · · · win = wj1 wj2 · · · wjm .

By a similar proof, one can derive that for every k¿2 and m¿1, the language
Fk = {wnk+m | n¿0} is a code. This result extends the results, F11 and F21 being codes,
obtained in [1].
S.S. Yu, Y. Zhao / Discrete Mathematics 224 (2000) 215–223 223

Acknowledgements

The author would like to thank the referee for his careful reading of the manuscript
and valuable suggestions.

References

[1] C.M. Fan, H.J. Shyr, Some properties of bonacci languages, Tamkang J. Math. 27 (2) (1996)
165–182.
[2] J.E. Hopcroft, J.D. Ullman, Formal Languages and Their Relation to Automata, Addison-Wesley,
Reading, MA, 1969.
[3] J. Karhumaki, On cube-free !-words generated by binary morphism, Discrete Appl. Math. 5 (1985)
279–297.
[4] D.E. Knuth, J.H. Morris, V.R. Pratt, Fast pattern matching in strings, SIAM J. Comput. 6 (1977)
323–350.
[5] Y.Y. Lin, in: Properties of words and the related homomorphisms, Master Thesis, Institute of Applied
Mathematics, Chung-Yuan Christan University, Chung-Li, Taiwan, 1995.
[6] A. De Luca, A combinatorial property of bonacci words, Inform. Process Lett. 12 (1981) 193–195.
[7] A. De Luca, On the combinatorial problems in free monoids, Discrete Math. 38 (1982) 207–225.
[8] R.C. Lyndon, M.P. Schutzenberger, The equation aM = bN cP in a free group, Michigan Math. J. 9
(1962) 289–298.
[9] G. Rozenberg, A. Salomaa, The Mathematical Theory of L Systems, Academic Press, New York, 1980.
[10] H.J. Shyr, Free monoids and languages, 2nd Edition, Hon Min Book Company, Taichung, Taiwan,
1991.
[11] H.J. Shyr, S.S. Yu, Non-primitive words in the language p+ q+ , Soochow J. Math. 20 (4) (1994)
535–546.
[12] S.S. Yu, d-Minimal languages, Discrete Appl. Math. 89 (1998) 243–262.
[13] S.S. Yu, Palindrome words and reverse closed languages, Internat. J. Comput. Math. (2000), in press.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy