1. Introduction
In this note, we are concerned with the abelian complexity
of the Rudin-Shapiro sequence
. The Rudin-Shapiro sequence
is given by the following recurrence relations:
The Rudin-Shapiro sequence
is a typical 2-automatic sequence [
1]. It has been proved in [
2] that the sequence
satisfies
,
,
and for every
,
Let
be an infinite sequence with
for every
. There are many papers focusing on the summatory function
. In [
3,
4,
5], Brillhart and Morton studied the summatory function
of the Rudin-Shapiro sequence. The sequence
satisfies
,
,
,
and for every
,
In detail, Brillhart and Morton proved that for every
,
and
is dense in
In [
6], Lafrance, Rampersad and Yee introduced a Rudin-Shapiro-like sequence
which satisfies
and for every
,
They studied the properties of the summatory function
. The sequence
satisfies
and for every
,
Moreover, Lafrance, Rampersad and Yee showed that
The sequences
and
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
be a
k-regular sequence over
. It was proved in [
1] that there exists a constant
c such that
. 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
where
is the sequence of coefficients of the compositional inverse of the generating function of the Thue-Morse sequence. The sequence
satisfies that
and for all
,
with
,
and
. They proved that
and
is dense in
. In [
2], Chen, Wen, Wu and the first author studied the maximal digit sum sequence
and proved that the abelian complexity
of the Rudin-Shapiro sequence satisfies
for every
. It is remarkable that the authors in [
2] just gave the recursive formulas for the sequence
and proved the 2-regularity of the sequence
. It is natural to ask whether the function
has similar properties as the summatory function
. 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 of the Rudin-Shapiro sequence Firstly, by studying the maximal and minimal values of the function in the interval with , we got . Then, we investigated two functions and , and obtained the optimal lower and upper bound of the sequence . Finally, we showed that is a quasi-linear function for 4. As a consequence, the set is dense between its optimal lower bound and upper bound. In detail, we proved the following theorems.
Theorem 1. For every integer , we have Theorem 2. The set is dense in
The outline of this note is as follows. In
Section 2, we compute the maximal and minimal values of the function
in the interval
for every
. In
Section 3, we give the proofs of Theorem 1 and Theorem 2.
2. Basic Properties of the Function
In this section, we exhibit some basic properties of the abelian complexity function of the Rudin-Shapiro sequence .
Following from ([
2] Theorem 1 and Lemma 3), the abelian complexity function
of the Rudin-Shapiro sequence is given by the following formulas:
,
,
and for every integer
,
Set
For every integer
, let
. Then
, and for every integer
,
This implies that
for every integer
. The first 16 terms of
, starting with
, are listed in
Table 1.
For simplicity of notation, for every integer , put and Then we have the following two lemmas which give the minimal and maximal values of the function in the interval for every .
Lemma 1. For every integer , the minimum value of in is . Moreover, Proof. We will prove this by induction on the variable
k. For
it follows from
Table 1 that this assertion is true. Assume the assertion holds for the interval
We first show that is the lower bound for in . If n lies in , then we can write for some and some . There are two cases to be considered.
At the same time, using the fact
it is easy to check that
Now it suffices to show that
Following from the inductive assumption, for every
satisfying
, we have
. By (1), we can get
Now we only need to consider the case
with
In fact, for every
and
it follows from (1) that
By (3), the case for holds, which completes the proof. □
Lemma 2. Let k be a non-negative integer. The maximum value of in is and this value occurs only at the point .
Proof. We will prove this by induction on the variable
k. For
, this assertion holds following from
Table 1. Assume the assertion is true for the interval
. When
n lies in
, let
for some
and
. Similarly with the proof of Lemma 1, we divide it into two cases.
Following from (4) and (5), we can obtain that is the unique point in which attains the maximal value of in the interval . This completes the proof. □
Remark 1. From Lemma 1, we have that for every Remark 2. If , Lemma 1 gives uswhile Lemma 2 implies that Thus, for every integer , , and so is roughly a constant times . However, these bounds are not optimal. Note that for every It is easy to verify thatand In other words, 3 and are two accumulation points of the set . In the following section, we will prove that 3 and are the optimal upper and lower bound for the sequence respectively.
3. Proofs of Theorems 1 and 2
Following that and 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 has a fixed value k. When , for a fixed k, the ratio 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 with , let us focus on the smallest and largest values of n such that . For this purpose, we introduced two auxiliary functions and .
Definition 1. Given an integer , let and be the smallest and largest values of n such that respectively, i.e., Following from (1),
Table 1 and
, the initial 8 terms of the sequences
and
are given in
Table 2.
For the sequences and , we have the following results.
Lemma 3. The sequence satisfies and for every integer , Proof. The assertion holds for
by
Table 2. Fix some integer
assume
Then
By the definition of
and (2), for every integer
,
and
Therefore, for every
and
,
At the same time, when
, it is obvious that
This implies that □
Lemma 4. The sequence satisfies , , and for every Proof. The initial values
,
and
can be easily verified by
Table 2. For an integer
, suppose
for some integer
n. Then
. By the definition of
and (2), we have that
whenever
and
Therefore, following from (1), for every
and
we have
Note that the value of
ranges from 0 to
. At the same time, it follows from (1) that
This implies that The other formula follows from the fact that and for every . This ends the proof. □
The following two propositions show the upper bound for the sequence
and the lower bound for the sequence
. For the sake of simplicity, for every integer
, let
be the binary expansion of
k with
and
For every
, let
be the greatest integer which is no more than
x.
Proposition 1. For every integer , we have Proof. For every
, let the binary expansion of
k be
Following from Lemma 3, we have
Now we apply (
6) by replacing
k with
, which yields
Repeating this progress
m times, by the fact that
for every
, we can obtain that
Note that
This implies that
Consider the function
It is not hard to check that
is strictly increasing on the interval
with fixed
Hence
which is the desired result. □
Proposition 2. For every integer , we have Proof. The assertion holds when
and
since
and
For every integer
, let the binary expansion of
k be
with
and
. Following from Lemma 4, we have
Arguing analogously as in the proof of Proposition 1, we have
The last equality uses the fact that and
If
then we have
and it follows that
Put
It is obvious that
is strictly increasing on the interval
with fixed
Hence
If
then we have
and it follows that
which implies
This ends the proof. □
Now, combining Proposition 1 and Proposition 2, we can prove Theorem 1.
Proof of Theorem 1. For every integer
, assume
for some integer
k. It follows from Remark 1 that
. By Proposition 1 and the definition of
, we have
Following from Proposition 2 and the definition of
, we have
This completes the proof. □
By Remark 2 and Theorem 1, we get the following corollary.
Corollary 1. The numbers and 3 are the optimal lower and upper bounds for the set respectively.
To prove Theorem 2, we need an auxiliary notation which was firstly introduced in [
8]. Let
be an integer and
be a discrete function (or an integer sequence). For every
, let
Write
. Set
Definition 2. (Quasi-linear function) Let . If and there exists a constant and an integer such that for all positive integers n and ,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 , set . Suppose and are two accumulation points of . If f is a quasi-linear function, then is dense in . Proof of Theorem 2. Following from the fact that
for every
, we have
. By Theorem 1,
. Moreover, for every
and
, (1) yields
Therefore is a quasi-linear function for .
It follows from Remark 2 that and 3 are two accumulation points of the set Hence we obtained the desired result by Lemma 5. □