Next Article in Journal
The Insertion of Economic Cybernetics Students on the Romanian Labor Market in the Context of Digital Economy and COVID-19 Pandemic
Previous Article in Journal
Approximate Diagonal Integral Representations and Eigenmeasures for Lipschitz Operators on Banach Spaces
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Note on the Abelian Complexity of the Rudin-Shapiro Sequence

College of Science, Huazhong Agricultural University, Wuhan 430070, China
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(2), 221; https://doi.org/10.3390/math10020221
Submission received: 17 December 2021 / Revised: 9 January 2022 / Accepted: 11 January 2022 / Published: 12 January 2022

Abstract

:
Let { r ( n ) } n 0 be the Rudin-Shapiro sequence, and let ρ ( n ) : = max { j = i i + n 1 r ( j ) i 0 } + 1 be the abelian complexity function of the Rudin-Shapiro sequence. In this note, we show that the function ρ ( n ) has many similarities with the classical summatory function S r ( n ) : = i = 0 n r ( i ) . In particular, we prove that for every positive integer n, 3 ρ ( n ) n 3 . Moreover, the point set { ρ ( n ) n : n 1 } is dense in [ 3 , 3 ] .

1. Introduction

In this note, we are concerned with the abelian complexity ρ ( n ) = max { j = i i + n 1 r ( j ) i 0 } + 1 of the Rudin-Shapiro sequence r . The Rudin-Shapiro sequence r = r ( 0 ) r ( 1 ) { 1 , 1 } N is given by the following recurrence relations:
r ( 0 ) = 1 , r ( 2 n ) = r ( n ) , r ( 2 n + 1 ) = ( 1 ) n r ( n ) ( n 0 ) .
The Rudin-Shapiro sequence r is a typical 2-automatic sequence [1]. It has been proved in [2] that the sequence ρ ( n ) satisfies ρ ( 1 ) = 2 , ρ ( 2 ) = 3 , ρ ( 3 ) = 4 and for every n 1 ,
ρ ( 4 n ) = 2 ρ ( n ) + 1 , ρ ( 4 n + 1 ) = 2 ρ ( n ) , ρ ( 4 n + 2 ) = ρ ( n ) + ρ ( n + 1 ) , ρ ( 4 n + 3 ) = 2 ρ ( n + 1 ) .
Let w = w ( 0 ) w ( 1 ) w ( 2 ) be an infinite sequence with w ( i ) Z for every i 0 . There are many papers focusing on the summatory function S w ( n ) : = j = 0 n w ( j ) . In [3,4,5], Brillhart and Morton studied the summatory function S r ( n ) : = i = 0 n r ( i ) of the Rudin-Shapiro sequence. The sequence S r ( n ) satisfies S r ( 0 ) = 1 , S r ( 1 ) = 2 , S r ( 2 ) = 3 , S r ( 3 ) = 2 and for every n 1 ,
S r ( 4 n ) = 2 S r ( n ) + r ( n ) , S r ( 4 n + 1 ) = S r ( 4 n + 3 ) = 2 S r ( n ) , S r ( 4 n + 2 ) = 2 S r ( n ) + ( 1 ) n r ( n ) .
In detail, Brillhart and Morton proved that for every n 1 ,
3 / 5 S r ( n ) n 6 ,
and { S r ( n ) n : n 1 } is dense in [ 3 / 5 , 6 ] . In [6], Lafrance, Rampersad and Yee introduced a Rudin-Shapiro-like sequence ( l ( n ) ) n 0 which satisfies l ( 0 ) = 1 and for every n 0 ,
l ( 4 n ) = l ( n ) , l ( 4 n + 1 ) = l ( 2 n ) , l ( 4 n + 2 ) = l ( 2 n ) and l ( 4 n + 3 ) = l ( n ) .
They studied the properties of the summatory function S l ( N ) : = n = 0 N l ( n ) . The sequence S l ( N ) satisfies S l ( 0 ) = 1 and for every m 0 ,
S l ( 4 m ) = 2 S l ( m ) l ( m ) = S l ( 4 m + 2 ) , S l ( 4 m + 1 ) = 2 S l ( m ) l ( m ) + l ( 2 m ) , S l ( 4 m + 3 ) = 2 S l ( m ) .
Moreover, Lafrance, Rampersad and Yee showed that
lim sup n + S l ( n ) n = 2 , lim inf n + S l ( n ) n = 3 3 .
The sequences S r ( n ) and S l ( n ) are both 2-regular sequences (in the sense of Allouche and Shallit [1]). For the definition and properties of k-regular sequences, one can refer to [1]. Let ( s ( n ) ) n 0 be a k-regular sequence over Z . It was proved in [1] that there exists a constant c such that s ( n ) = O ( n c ) . In general, it is a difficult task to compute the exact growth order of sequences satisfying certain recursive relations such as k-regular sequences.
In [7], Gawron and Ulas obtained the sequence { a ( n ) n N } : = { m N c ( m ) = 1 } where ( c ( n ) ) n 0 is the sequence of coefficients of the compositional inverse of the generating function of the Thue-Morse sequence. The sequence ( a ( n ) ) n 0 satisfies that a ( 0 ) = 0 , a ( 1 ) = 1 , a ( 2 ) = 2 , a ( 3 ) = 7 and for all n 1 , a ( 4 n + i ) = a ( 4 n 1 ) + i + 1 with i [ 0 , 2 ] , a ( 8 n + 3 ) = a ( 8 n ) + 7 and a ( 8 n + 7 ) = 4 a ( 4 n + 3 ) + 3 . They proved that
lim inf n + a ( n ) n 2 = 1 6 , lim sup n + a ( n ) n 2 = 1 2
and { a ( n ) n 2 : n 1 } is dense in [ 1 6 , 1 2 ] . In [2], Chen, Wen, Wu and the first author studied the maximal digit sum sequence M r ( n ) : = max { j = i i + n 1 r ( j ) i 0 } and proved that the abelian complexity ρ ( n ) of the Rudin-Shapiro sequence satisfies ρ ( n ) = M r ( n ) + 1 for every n 1 . It is remarkable that the authors in [2] just gave the recursive formulas for the sequence M r ( n ) and proved the 2-regularity of the sequence ρ ( n ) . It is natural to ask whether the function ρ ( n ) has similar properties as the summatory function S r ( n ) . In fact, it is of great interest to study the properties of sequences which satisfy certain recursive formulas.
This note focuses on the growth order of the abelian complexity ( ρ ( n ) ) n 1 of the Rudin-Shapiro sequence r . Firstly, by studying the maximal and minimal values of the function ρ ( n ) in the interval I k : = [ 4 k , 4 k + 1 1 ] with k 0 , we got ρ ( n ) = Θ ( n ) . Then, we investigated two functions s ( k ) : = min { n ρ ( n ) = k } and ( k ) : = max { n ρ ( n ) = k } , and obtained the optimal lower and upper bound of the sequence ( ρ ( n ) n ) n 1 . Finally, we showed that ρ ( n ) is a quasi-linear function for 4. As a consequence, the set { ρ ( n ) n : n 1 } is dense between its optimal lower bound and upper bound. In detail, we proved the following theorems.
Theorem 1.
For every integer n 1 , we have
3 ρ ( n ) n 3 .
Theorem 2.
The set { ρ ( n ) / n : n 1 } is dense in [ 3 , 3 ] .
The outline of this note is as follows. In Section 2, we compute the maximal and minimal values of the function ρ ( n ) in the interval I k : = [ 4 k , 4 k + 1 1 ] for every k 0 . In Section 3, we give the proofs of Theorem 1 and Theorem 2.

2. Basic Properties of the Function ρ ( n )

In this section, we exhibit some basic properties of the abelian complexity function ρ ( n ) of the Rudin-Shapiro sequence r .
Following from ([2] Theorem 1 and Lemma 3), the abelian complexity function ρ ( n ) of the Rudin-Shapiro sequence is given by the following formulas: ρ ( 1 ) = 2 , ρ ( 2 ) = 3 , ρ ( 3 ) = 4 and for every integer n 1 ,
ρ ( 4 n ) =   2 ρ ( n ) + 1 , ρ ( 4 n + 1 ) =   2 ρ ( n ) , ρ ( 4 n + 2 ) =   ρ ( n ) + ρ ( n + 1 ) , ρ ( 4 n + 3 ) =   2 ρ ( n + 1 ) .
Set ρ ( 0 ) : = 1 . For every integer n 0 , let Δ ρ ( n ) : = ρ ( n + 1 ) ρ ( n ) . Then Δ ρ ( 0 ) = Δ ρ ( 1 ) = Δ ρ ( 2 ) = Δ ρ ( 3 ) = 1 , and for every integer n 1 ,
Δ ρ ( 4 n ) = 1 , Δ ρ ( 4 n + 3 ) = 1 , Δ ρ ( 4 n + 1 ) = Δ ρ ( 4 n + 2 ) = Δ ρ ( n ) .
This implies that Δ ρ ( n ) { 1 , 1 } for every integer n 0 . The first 16 terms of ρ ( n ) , starting with n = 1 , are listed in Table 1.
For simplicity of notation, for every integer k 0 , put m k : = 4 k + 1 1 3 , M k : = 4 k + 1 1 and I k : = [ 4 k , 4 k + 1 1 ] . Then we have the following two lemmas which give the minimal and maximal values of the function ρ ( n ) in the interval I k for every k 0 .
Lemma 1.
For every integer k 0 , the minimum value of ρ ( n ) in I k = [ 4 k , 4 k + 1 1 ] is 2 k + 1 . Moreover,
max n I k : ρ ( n ) = 2 k + 1 = m k .
Proof. 
We will prove this by induction on the variable k. For k = 0 , it follows from Table 1 that this assertion is true. Assume the assertion holds for the interval I k .
We first show that 2 k + 2 is the lower bound for ρ ( n ) in I k + 1 . If n lies in I k + 1 = [ 4 k + 1 , 4 k + 2 1 ] , then we can write n = 4 m + d for some m I k and some d { 0 , 1 , 2 , 3 } . There are two cases to be considered.
  • When 4 k m 4 k + 1 2 , (1) yields that for every d { 0 , 1 , 2 , 3 }
    ρ ( n ) = ρ ( 4 m + d ) 2 min { ρ ( m ) : m I k } = 2 k + 2 .
    The last equality is true under the inductive assumption.
  • When m = 4 k + 1 1 , it follows from (2) that Δ ( m ) = 1 , which implies
    ρ ( m + 1 ) = ρ ( 4 k + 1 1 ) + 1 = ρ ( m ) + 1 .
    Hence, for every d { 0 , 1 , 2 , 3 } , using (1) again, we have
    ρ ( n ) = ρ ( 4 m + d ) 2 ρ ( m ) > 2 min { ρ ( m ) : m I k } = 2 k + 2 .
At the same time, using the fact m k + 1 = 4 m k + 1 , it is easy to check that
ρ ( m k + 1 ) = ρ ( 4 m k + 1 ) = 2 ρ ( m k ) = 2 k + 2 .
Now it suffices to show that
m k + 1 = max n I k + 1 : ρ ( n ) = 2 k + 2 .
Following from the inductive assumption, for every m I k satisfying m > m k , we have ρ ( m ) ρ ( m k ) + 1 . By (1), we can get
ρ ( m k + 1 + 1 ) =   ρ ( 4 m k + 2 )   =   ρ ( m k ) + ρ ( m k + 1 ) 2 k + 2 + 1 , ρ ( m k + 1 + 2 ) =   ρ ( 4 m k + 3 )   =   2 ρ ( m k + 1 ) 2 k + 2 + 2 .
Now we only need to consider the case n = 4 m + d 4 m k + 4 with d { 0 , 1 , 2 , 3 } . In fact, for every m k + 1 m 4 k + 1 2 and d { 0 , 1 , 2 , 3 } , it follows from (1) that
ρ ( 4 m + d ) 2 min { ρ ( m ) : m k + 1 m 4 k + 1 1 } 2 k + 2 + 2 .
By (3), the case n = 4 m + d for m = 4 k + 1 1 holds, which completes the proof. □
Lemma 2.
Let k be a non-negative integer. The maximum value of ρ ( n ) in I k = [ 4 k , 4 k + 1 1 ] is 3 · 2 k + 1 2 and this value occurs only at the point n = M k = 4 k + 1 1 .
Proof. 
We will prove this by induction on the variable k. For k = 0 , this assertion holds following from Table 1. Assume the assertion is true for the interval I k . When n lies in I k + 1 , let n = 4 m + d for some m I k and d { 0 , 1 , 2 , 3 } . Similarly with the proof of Lemma 1, we divide it into two cases.
  • When 4 k m < 4 k + 1 1 . By (1) and the inductive assumption, we have
    ρ ( n ) = ρ ( 4 m + d ) 2 max { ρ ( m ) : m I k } + 1 < 3 · 2 k + 2 2 .
  • When m = M k = 4 k + 1 1 . Following from (1) and (2), we have
    ρ ( 4 M k ) =   2 ρ ( M k ) + 1 = 3 · 2 k + 2 3 , ρ ( 4 M k + 1 ) =   2 ρ ( M k ) = 3 · 2 k + 2 4 , ρ ( 4 M k + 2 ) =   ρ ( M k ) + ρ ( M k + 1 ) = 3 · 2 k + 2 3 , ρ ( 4 M k + 3 ) =   2 ρ ( M k + 1 ) = 3 · 2 k + 2 2 .
    This implies that ρ ( n ) ρ ( 4 M k + 3 ) = ρ ( 4 k + 2 1 ) = 3 · 2 k + 2 2 .
Following from (4) and (5), we can obtain that M k + 1 = 4 M k + 3 is the unique point in I k + 1 which attains the maximal value of ρ in the interval I k + 1 . This completes the proof. □
Remark 1.
From Lemma 1, we have that for every n 1 ,
ρ ( n ) 2 .
Remark 2.
If n I k = [ 4 k , 4 k + 1 1 ] , Lemma 1 gives us
ρ ( n ) n > 2 k + 1 4 k + 1 = 1 ,
while Lemma 2 implies that
ρ ( n ) n < 3 · 2 k + 1 2 4 k < 6 .
Thus, for every integer n 1 , 1 ρ ( n ) n 6 , and so ρ ( n ) is roughly a constant times n . However, these bounds are not optimal. Note that ρ ( n ) 2 for every n 1 . It is easy to verify that
lim k ρ ( M k ) M k = lim k 3 · 2 k + 1 2 4 k + 1 1 = 3
and
lim k ρ ( m k ) m k = lim k 2 k + 1 4 k + 1 1 3 = 3 .
In other words, 3 and 3 are two accumulation points of the set { ρ ( n ) n : n 1 } . In the following section, we will prove that 3 and 3 are the optimal upper and lower bound for the sequence ( ρ ( n ) n ) n 1 respectively.

3. Proofs of Theorems 1 and 2

Following that M k and m k both go to infinity with k tending to infinity (by Lemmas 1 and 2), we can see that there are only finite number of places n such that ρ ( n ) has a fixed value k. When ρ ( n ) = k , for a fixed k, the ratio ρ ( n ) / n will be the smallest when n is largest while it will be largest if n is smallest. This leads us to the following idea: for a fixed k N with k 1 , let us focus on the smallest and largest values of n such that ρ ( n ) = k . For this purpose, we introduced two auxiliary functions s ( k ) and ( k ) .
Definition 1.
Given an integer k 1 , let s ( k ) and ( k ) be the smallest and largest values of n such that ρ ( n ) = k respectively, i.e.,
s ( k ) : = min { n : ρ ( n ) = k } , ( k ) : = max { n : ρ ( n ) = k } .
Following from (1), Table 1 and ρ ( 0 ) = 1 , the initial 8 terms of the sequences s ( k ) and ( k ) are given in Table 2.
For the sequences s ( k ) and ( k ) , we have the following results.
Lemma 3.
The sequence ( k ) satisfies ( 1 ) = 0 and for every integer k 1 ,
( 2 k ) = 4 ( k ) + 1 , ( 2 k + 1 ) = 4 ( k ) + 2 .
Proof. 
The assertion holds for k = 1 by Table 2. Fix some integer k 2 , assume ( k ) = n . Then ρ ( n ) = k . By the definition of ( n ) and (2), for every integer m > n , ρ ( m ) ρ ( n ) + 1 = k + 1 and
ρ ( n + 1 ) = ρ ( n ) + 1 = k + 1 .
Therefore, for every m > n and d { 0 , 1 , 2 , 3 } ,
ρ ( 4 m + d ) 2 min { ρ ( m ) : m > n } = 2 k + 2 .
At the same time, when m = n , it is obvious that
ρ ( 4 n ) =   2 ρ ( n ) + 1 = 2 k + 1 , ρ ( 4 n + 1 ) =   2 ρ ( n ) = 2 k , ρ ( 4 n + 2 ) =   ρ ( n ) + ρ ( n + 1 ) = 2 k + 1 , ρ ( 4 n + 3 ) =   2 ρ ( n + 1 ) = 2 k + 2 .
This implies that ( 2 k ) = 4 n + 1 = 4 ( k ) + 1 and ( 2 k + 1 ) = 4 n + 2 = 4 ( k ) + 2 .
Lemma 4.
The sequence s ( k ) satisfies s ( 1 ) = 0 , s ( 2 ) = 1 , s ( 3 ) = 2 and for every k 2 ,
s ( 2 k ) = 4 s ( k ) 1 , s ( 2 k + 1 ) = 4 s ( k ) .
Proof. 
The initial values s ( 1 ) , s ( 2 ) and s ( 3 ) can be easily verified by Table 2. For an integer k 2 , suppose s ( k ) = n for some integer n. Then ρ ( n ) = k . By the definition of s ( k ) and (2), we have that ρ ( m ) < ρ ( n ) whenever m < n and
ρ ( n 1 ) = ρ ( n ) 1 = k 1 .
Therefore, following from (1), for every 0 m < n 1 and d { 0 , 1 , 2 , 3 } , we have
ρ ( 4 m + d ) 2 max { ρ ( m ) : 0 m n 1 } + 1 = 2 k 1 .
Note that the value of 4 m + d ranges from 0 to 4 n 5 . At the same time, it follows from (1) that
ρ ( 4 n 4 ) =   2 ρ ( n 1 ) + 1 = 2 k 1 , ρ ( 4 n 3 ) =   2 ρ ( n 1 ) = 2 k 2 , ρ ( 4 n 2 ) =   ρ ( n 1 ) + ρ ( n ) = 2 k 1 , ρ ( 4 n 1 ) =   2 ρ ( n ) = 2 k .
This implies that s ( 2 k ) = 4 n 1 = 4 s ( k ) 1 . The other formula s ( 2 k + 1 ) = 4 s ( k ) follows from the fact that ρ ( 4 n ) = 2 ρ ( n ) + 1 = 2 k + 1 and ρ ( i ) 2 k for every 0 i 4 n 1 . This ends the proof. □
The following two propositions show the upper bound for the sequence ( k ) and the lower bound for the sequence s ( k ) . For the sake of simplicity, for every integer k 2 , let
k = j = 0 m k j 2 j : = [ k m k m 1 k 0 ] 2
be the binary expansion of k with m 1 and k m = 1 . For every x 0 , let x be the greatest integer which is no more than x.
Proposition 1.
For every integer k 2 , we have
( k ) k 2 3 .
Proof. 
For every k 2 , let the binary expansion of k be [ k m k m 1 k 0 ] 2 . Following from Lemma 3, we have
( k ) = ( [ k m k m 1 k 0 ] 2 ) = 4 ( [ k m k m 1 k 1 ] 2 ) + k 0 + 1 .
Now we apply (6) by replacing k with [ k m k m 1 k 1 ] 2 , which yields
( [ k m k m 1 k 1 ] 2 ) = 4 ( [ k m k m 1 k 2 ] 2 ) + k 1 + 1 .
Repeating this progress m times, by the fact that k j = k 2 j 2 k 2 j + 1 for every 0 j m 1 , we can obtain that
( k ) =   ( [ k m k m 1 k 0 ] 2 ) =   4 ( [ k m k m 1 k 1 ] 2 ) + k 0 + 1 =   4 2 ( [ k m k m 1 k 2 ] 2 ) + 4 ( k 1 + 1 ) + k 0 + 1 =   =   4 m ( k m ) + j = 0 m 1 4 j ( k j + 1 ) =   4 m ( 1 ) + j = 0 m 1 4 j ( k 2 j 2 k 2 j + 1 + 1 ) =   4 m 1 3 + j = 0 m 1 4 j ( k 2 j 2 k 2 j + 1 )   4 m 3 + k 2 k 2 + 4 k 2 8 k 2 2 + + 4 m 1 k 2 m 1 2 · 4 m 1 k 2 m =   4 m 3 2 · 4 m 1 + k + 2 j = 1 m 1 4 j 1 k 2 j   4 m 3 2 · 4 m 1 + k + 2 j = 1 m 1 4 j 1 k 2 j =   2 m 1 k 2 3 · 4 m 1 .
It suffices to show that
2 m 1 k 2 3 · 4 m 1 k 2 3 .
Note that 2 m k < 2 m + 1 . This implies that
k 4 < 2 m 1 k 2 .
Consider the function f k ( x ) = k x 2 3 x 2 . It is not hard to check that f k ( x ) is strictly increasing on the interval ( k 4 , k 2 ] with fixed k 1 . Hence
k x 2 3 x 2 f k k 2 = 1 3 k 2 ,
which is the desired result. □
Proposition 2.
For every integer k 2 , we have
s ( k ) k 2 9 .
Proof. 
The assertion holds when k = 2 and k = 3 since s ( 2 ) = 1 > 4 / 9 and s ( 3 ) = 2 > 1 . For every integer k 4 , let the binary expansion of k be [ k m k m 1 k 0 ] 2 with m 2 and k m = 1 . Following from Lemma 4, we have
s ( k ) = s ( [ k m k m 1 k 0 ] 2 ) = 4 s ( [ k m k m 1 k 1 ] 2 ) + k 0 1 .
Arguing analogously as in the proof of Proposition 1, we have
s ( k ) =   s ( [ k m k m 1 k 0 ] 2 ) =   4 m 1 s ( [ k m k m 1 ] 2 ) + j = 0 m 2 4 j ( k j 1 ) =   4 m 1 s ( 2 + k m 1 ) + j = 0 m 2 4 j ( k 2 j 2 k 2 j + 1 1 ) =   4 m 1 s ( 2 + k m 1 ) 4 m 1 1 3 + j = 0 m 2 4 j ( k 2 j 2 k 2 j + 1 ) =   4 m 1 s ( 2 + k m 1 ) 4 m 1 1 3 2 · 4 m 2 k 2 m 1 + k + 2 j = 1 m 2 4 j 1 k 2 j   4 m 1 s ( 2 + k m 1 ) 4 m 1 3 2 · 4 m 2 k 2 m 1 + k + 2 j = 1 m 2 4 j 1 ( k 2 j 1 )   4 m 1 s ( 2 + k m 1 ) 2 · 4 m 2 ( 3 + k m 1 ) + 2 m 2 k =   2 m 2 k 2 · 4 m 2 if k m 1 = 0 , 2 m 2 k if k m 1 = 1 .
The last equality uses the fact that s ( 2 ) = 1 and s ( 3 ) = 2 .
  • If k m 1 = 0 , then we have 2 m k < 3 · 2 m 1 , and it follows that
    k 6 < 2 m 2 k 4 .
    Put g k ( x ) : = x k 2 x 2 . It is obvious that g k ( x ) is strictly increasing on the interval ( k 6 , k 4 ] with fixed k . Hence
    2 m 2 k 2 · 4 m 2 g k k 6 = k 2 9 .
  • If k m 1 = 1 , then we have 3 · 2 m 1 k < 2 m + 1 , and it follows that
    k 8 < 2 m 2 k 6 ,
    which implies
    2 m 2 k k 2 8 k 2 9 .
This ends the proof. □
Now, combining Proposition 1 and Proposition 2, we can prove Theorem 1.
Proof of Theorem 1.
For every integer n 1 , assume ρ ( n ) = k for some integer k. It follows from Remark 1 that k 2 . By Proposition 1 and the definition of ( k ) , we have
ρ ( n ) n k ( k ) 3 .
Following from Proposition 2 and the definition of s ( k ) , we have
ρ ( n ) n k s ( k ) 3 .
This completes the proof. □
By Remark 2 and Theorem 1, we get the following corollary.
Corollary 1.
The numbers 3 and 3 are the optimal lower and upper bounds for the set { ρ ( n ) n : n 1 } respectively.
To prove Theorem 2, we need an auxiliary notation which was firstly introduced in [8]. Let b 2 be an integer and f : N Z be a discrete function (or an integer sequence). For every x 0 , let
δ f ( x ) : = lim sup n + | f ( n ) | n x .
Write Δ f ( n ) : = f ( n + 1 ) f ( n ) . Set
α = α ( f ) : = inf { x 0 δ f ( x ) = 0 } and β = β ( f ) : = inf { x 0 δ Δ f ( x ) = 0 } .
Definition 2.
(Quasi-linear function) Let f : N Z . If α ( f ) > β ( f ) and there exists a constant C 1 > 0 and an integer b 2 such that for all positive integers n and 0 i b 1 ,
| f ( b n + i ) b α f ( n ) | C 1 n β ,
then we call f a quasi-linear function for b.
For the quasi-linear functions, we have the following lemma. For more details about this, see [8].
Lemma 5
([8]). Given an integer function f ( n ) , set α : = α ( f ) . Suppose a 1 and a 2 are two accumulation points of { f ( n ) / n α : n 1 } . If f is a quasi-linear function, then { f ( n ) / n α : n 1 } is dense in [ a 1 , a 2 ] .
Proof of Theorem 2.
Following from the fact that Δ ρ ( n ) { 1 , 1 } for every n 0 , we have β ( ρ ) = 0 . By Theorem 1, α ( ρ ) = 1 2 . Moreover, for every 0 i 3 and n 1 , (1) yields
| ρ ( 4 n + i ) 2 ρ ( n ) | 2 | ρ ( n + 1 ) ρ ( n ) | = 2 .
Therefore ρ ( n ) is a quasi-linear function for b = 4 .
It follows from Remark 2 that 3 and 3 are two accumulation points of the set { ρ ( n ) / n : n 1 } . Hence we obtained the desired result by Lemma 5. □

Author Contributions

Formal analysis, X.L.; Investigation, X.L.; Project administration, X.L.; writing—review and editing, P.H. All authors have read and agree to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (Grant No. 11801203).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Allouche, J.-P.; Shallit, J. Automatic Sequences: Theory, Applications, Generalizations; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
  2. Lü, X.-T.; Chen, J.; Wen, Z.-X.; Wu, W. On the abelian complexity of the Rudin-Shapiro sequences. J. Math. Anal. Appl. 2017, 451, 822–838. [Google Scholar] [CrossRef] [Green Version]
  3. Brillhart, J.; Morton, P. Uber Summen von Rudin-Shapiroschen Koeffizienten. Ill. J. Math. 1978, 22, 126–148. [Google Scholar] [CrossRef]
  4. Brillhart, J.; Morton, P. A case study in mathematical research: The Golay-Rudin-Shapiro sequence. Am. Math. Mon. 1996, 130, 854–869. [Google Scholar] [CrossRef]
  5. Brillhart, J.; Erdős, P.; Morton, P. On sums of Rudin–Shapiro coefficients II. Pac. J. Math. 1983, 107, 39–69. [Google Scholar] [CrossRef] [Green Version]
  6. Lafrance, P.; Rampersad, N.; Yee, R. Some properties of a Rudin–Shapiro-like sequence. Adv. Appl. Math. 2015, 63, 19–40. [Google Scholar] [CrossRef]
  7. Gawron, M.; Ulas, M. On the formal inverse of the Prouhet-Thue-Morse sequence. Discret. Math. 2016, 339, 1459–1470. [Google Scholar] [CrossRef] [Green Version]
  8. Lü, X.-T.; Chen, J.; Wen, Z.-X.; Wu, W. Limit behavior of the quasi-linear discrete functions. Fractals 2020, 28, 2050041. [Google Scholar] [CrossRef]
Table 1. The first 16 terms of the sequence ρ ( n ) .
Table 1. The first 16 terms of the sequence ρ ( n ) .
n ρ ( n ) n ρ ( n )
1296
23107
34118
45129
54138
65149
761510
871611
Table 2. The initial values for the sequences s ( k ) and ( k ) .
Table 2. The initial values for the sequences s ( k ) and ( k ) .
k12345678
s ( k ) 012347811
( k ) 0125691021
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Lü, X.; Han, P. A Note on the Abelian Complexity of the Rudin-Shapiro Sequence. Mathematics 2022, 10, 221. https://doi.org/10.3390/math10020221

AMA Style

Lü X, Han P. A Note on the Abelian Complexity of the Rudin-Shapiro Sequence. Mathematics. 2022; 10(2):221. https://doi.org/10.3390/math10020221

Chicago/Turabian Style

Lü, Xiaotao, and Pengju Han. 2022. "A Note on the Abelian Complexity of the Rudin-Shapiro Sequence" Mathematics 10, no. 2: 221. https://doi.org/10.3390/math10020221

APA Style

Lü, X., & Han, P. (2022). A Note on the Abelian Complexity of the Rudin-Shapiro Sequence. Mathematics, 10(2), 221. https://doi.org/10.3390/math10020221

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