Abstract
Let be the Rudin-Shapiro sequence, and let be the abelian complexity function of the Rudin-Shapiro sequence. In this note, we show that the function has many similarities with the classical summatory function . In particular, we prove that for every positive integer n, . Moreover, the point set is dense in .
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
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.
Table 1.
The first 16 terms of the sequence
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.
- When , (1) yields that for everyThe last equality is true under the inductive assumption.
- When , it follows from (2) that which impliesHence, for every using (1) again, we have
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.
- When . By (1) and the inductive assumption, we have
- When . Following from (1) and (2), we haveThis implies that
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 us
while 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 that
and
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.,
Table 2.
The initial values for the sequences and .
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
Repeating this progress m times, by the fact that for every , we can obtain that
It suffices to show 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 thatPut It is obvious that is strictly increasing on the interval with fixed Hence
- If then we have and it follows thatwhich 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. □
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
- Allouche, J.-P.; Shallit, J. Automatic Sequences: Theory, Applications, Generalizations; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
- 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]
- Brillhart, J.; Morton, P. Uber Summen von Rudin-Shapiroschen Koeffizienten. Ill. J. Math. 1978, 22, 126–148. [Google Scholar] [CrossRef]
- 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]
- 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]
- Lafrance, P.; Rampersad, N.; Yee, R. Some properties of a Rudin–Shapiro-like sequence. Adv. Appl. Math. 2015, 63, 19–40. [Google Scholar] [CrossRef]
- Gawron, M.; Ulas, M. On the formal inverse of the Prouhet-Thue-Morse sequence. Discret. Math. 2016, 339, 1459–1470. [Google Scholar] [CrossRef]
- 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]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 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/).