Abstract
In this article, q-regular sequences in the sense of Allouche and Shallit are analysed asymptotically. It is shown that the summatory function of a regular sequence can asymptotically be decomposed as a finite sum of periodic fluctuations multiplied by a scaling factor. Each of these terms corresponds to an eigenvalue of the sum of matrices of a linear representation of the sequence; only the eigenvalues of absolute value larger than the joint spectral radius of the matrices contribute terms which grow faster than the error term. The paper has a particular focus on the Fourier coefficients of the periodic fluctuations: they are expressed as residues of the corresponding Dirichlet generating function. This makes it possible to compute them in an efficient way. The asymptotic analysis deals with Mellin–Perron summations and uses two arguments to overcome convergence issues, namely Hölder regularity of the fluctuations together with a pseudo-Tauberian argument. Apart from the very general result, three examples are discussed in more detail:
sequences defined as the sum of outputs written by a transducer when reading a q-ary expansion of the input;
the amount of esthetic numbers in the first N natural numbers; and
the number of odd entries in the rows of Pascal’s rhombus.
For these examples, very precise asymptotic formulæ are presented. In the latter two examples, prior to this analysis only rough estimates were known.
Keywords: Regular sequence, Mellin–Perron summation, Summatory function, Tauberian theorem, Transducer, Esthetic numbers, Pascal’s rhombus
Part I: Introduction
Synopsis: The Objects of Interest and the Result
In this paper, we study the asymptotic behaviour of the summatory function of a q-regular sequence x(n). At this point, we give a short overview of the notion of q-regular sequences1 and our main result.
One characterisation of a q-regular sequence is as follows: the sequence x(n) is said to be q-regular if there are square matrices and a vector-valued sequence v(n) such that
and such that x(n) is the first component of v(n).
Regular sequences are intimately related to the q-ary expansion of their arguments. They have been introduced by Allouche and Shallit [2]; see also [3, Chapter 16]. Many special cases have been investigated in the literature; this is also due to their relation to divide-and-conquer algorithms. Moreover, every q-automatic sequence—those sequences are defined by finite automata—is q-regular as well. Take also a look at the book [3] for many examples.
Our main result is, roughly speaking, that the summatory function of a q-regular sequence x(n) has the asymptotic form
| 1.1 |
as for a suitable positive integer J, suitable constants , suitable non-negative integers , a suitable R and 1-periodic continuous functions . The will turn out to be eigenvalues of , the be related to the multiplicities of these eigenvalues and the constant R will be a bound for the joint spectral radius of the matrices .
While (1.1) gives the shape of the asymptotic form, gathering as much information as possible on the periodic fluctuations is required to have a full picture. To this aim, we will give a description of the Fourier coefficients of the which allows to compute them algorithmically and therefore to describe these periodic fluctuations with high precision. In particular, this allows to detect non-vanishing fluctuations. Code2 is provided to compute the Fourier coefficients.
We close this introductory section by noting that the normalized sum enlightens us about the expectation of a random element of the sequence x(n) with respect to uniform distribution on the non-negative integers smaller than a certain N.
How to Read This Paper
This is a long (and perhaps sometimes technical) paper and not all readers might find the time to read it from the very beginning to the very end. We therefore outline reading strategies for various interests.
For the reader who wants to apply our results to a particular problem: Read Sect. 3.1 on the definition of q-regular sequences and Sect. 3.2 containing the main result in a condensed version which should cover most applications. These two sections also have a simple, illustrative and well-known running example. If it turns out that the refined versions of the results are needed, follow the upcoming paragraph below.
For the reader who still wants to apply our results to a particular problem but finds the condensed version insufficient, turn to the overview of the results (Sect. 4.1) and then continue with Sect. 6 where the notations and results are stated in full generality. Formulating them will need quite a number of definitions provided in Sect. 6.2. In order to cut straight to the results themselves, we will refrain from motivations and comments on these definitions and postpone those comments to Sect. 7.
For the reader who wants to determine the asympotics of a regular sequence instead of determining the asymptotics of the summatory function of the regular sequence, advice is given in Sect. 3.3.
For the reader who wants to read more about showcase applications of our method yielding new asymptotic results, additionally to Sect. 3 read Sect. 5 where an overview of the examples in this paper is given and then Part II where these examples are discussed in detail. For many more examples to which the methods can be applied, read the original papers [2, 4] and the book by Allouche and Shallit [3] which contain many examples of q-regular sequences.
For the reader who wants to compute the Fourier coefficients for a particular application, use the provided code. Read Part IV for more details, in particular, see Sect. 19 for some comments on how to decide whether fluctuations are constant or even vanish.
Moreover, for the reader who is interested in the background on the algorithmic aspects and details of the implementation of the actual computation, we also refer to Part IV; this part will also be useful for the reader who wants to review the code written for SageMath.
For the reader who is interested in the history of the problem, we refer to Sect. 4.4.
For the reader who wants to see a heuristic argument why everything works out, there is Sect. 4.2 where it is shown that once one does not care about convergence issues, the Mellin–Perron summation formula of order zero explains the result.
For the reader who wants to understand the idea of the proof, there is Sect. 4.3 with a high level overview of the proof how the above mentioned convergence issues with the Mellin–Perron summation formula can be overcome by a pseudo-Tauberian argument.
For the reader who wants to overcome convergence problems with the Mellin–Perron summation formula in other contexts involving periodic fluctuations, we note that the pseudo-Tauberian argument (Proposition 14.1) is completely independent of our application to q-regular sequences; the only prerequisite is the knowledge on the existence of the fluctuation and sufficient knowledge on analyticity and growth of the Dirichlet generating function. As a consequence, Theorem E has been formulated as an independent result and provisions have been made for several applications of the pseudo-Tauberian argument.
Finally, for the reader who wants to fully understand the proof: We have no other advice than reading the whole introduction, the whole Sect. 6 on results and the whole Part III on the proofs starting with a very short Sect. 11 where a few notations used throughout the proofs are fixed.
User-Friendly Main Result and a First Example Application
q-Regular Sequences
We start by giving a definition of q-regular sequences; see Allouche and Shallit [2]. Let be a fixed integer and x be a sequence on .3 Then x is said to be -regular (briefly: q-regular or simply regular) if the -vector space generated by its q-kernel
has finite dimension. In other words, x is q-regular if there are an integer and sequences such that for every and there exist complex numbers with
By Allouche and Shallit [2, Theorem 2.2], the sequence x is q-regular if and only if there exists a vector-valued sequence v whose first component coincides with x and there exist square matrices such that
| 3.1 |
This is called a q-linear representation of the sequence x.
The best-known example for a 2-regular function is the binary sum-of-digits function.
Example 3.1
For , let be the binary sum-of-digits of n. We clearly have
| 3.2 |
for . Indeed, we have
for integers , and ; i.e., the complex vector space generated by the 2-kernel is generated by x and the constant sequence .
Alternatively, we set and have
for . Thus (3.1) holds with
At this point, we note that a linear representation (3.1) immediately leads to an explicit expression for x(n) by induction.
Remark 3.2
Let be the q-ary digit expansion4 of n. Then
where .
Condensed Main Result
We are interested in the asymptotic behaviour of the summatory function .
At this point, we give a simplified version of our results. We choose any vector norm on and its induced matrix norm. We set . We choose such that
holds for all and . In other words, R is an upper bound for the joint spectral radius of . The spectrum of C, i.e., the set of eigenvalues of C, is denoted by . For , let denote the size of the largest Jordan block of C associated with ; in particular, if . Finally, we consider the scalar-valued Dirichlet series and the vector-valued Dirichlet series defined by5
where v(n) is the vector-valued sequence defined in (3.1). Of course, is the first component of . The principal value of the complex logarithm is denoted by . The fractional part of a real number z is denoted by .
Theorem A
(User-friendly all-in-one theorem) With the notations above, we have
| 3.3 |
for suitable 1-periodic continuous functions . If there are no eigenvalues with , the O-term can be omitted.
For and , the function is Hölder continuous with any exponent smaller than .
The Dirichlet series converges absolutely and uniformly on compact subsets of the half plane and can be continued to a meromorphic function on the half plane . It satisfies the functional equation
| 3.4 |
for . The right-hand side of (3.4) converges absolutely and uniformly on compact subsets of . In particular, can only have poles where .
For with , the Fourier series
converges pointwise for where the Fourier coefficients are defined by the singular expansion6
| 3.5 |
for .
This theorem is proved in Sect. 15. We note:
We write to optically emphasise the 1-periodicity; technically, we have .
The arguments in the proof could be used to meromophically continue the Dirichlet series to the complex plane, but we do not need this result for our purposes. See [1] for the corresponding argument for automatic sequences.
- Sometimes, it will be convenient to write (3.5) in the equivalent explicit formulation
In particular, this can be used to algorithmically compute the .
3.6 Computing the Fourier coefficients via the explicit formulation (3.6) by reliable numerical arithmetic (see Part IV for details) enables us to detect the non-vanishing of a fluctuation; see also the example below and in Sect. 8 (on sequences defined by transducers) for examples where the fluctuation of the leading term is in fact constant. There, additional arguments are required to actually prove this fact; see Sect. 19 for more details.
We come back to the binary sum of digits.
Example 3.3
(Continuation of Example 3.1) We have . As is the identity matrix, any product has the shape where k is the number of factors in the product. This implies that R with
may be chosen to be any number greater than 1. As C is a Jordan block itself, we simply read off that the only eigenvalue of C is with .
Thus Theorem A yields
for suitable 1-periodic continuous functions and .
In principle, we can now use the functional equation (3.4) to obtain the Dirichlet series . Due to the fact that one component of v is the constant sequence where everything is known, it is more efficient to use an ad-hoc calculation for by splitting the sum according to the parity of the index and using the recurrence relation (3.2) for x(n). We obtain
![]() |
where the Hurwitz zeta function
has been used. We get
| 3.7 |
As the sum of digits is bounded by the length of the expansion, we have
. By combining this estimate with
we see that the sum in (3.7) converges absolutely for and is therefore analytic for .
Therefore, the right-hand side of (3.7) is a meromorphic function for whose only pole is simple and at which originates from
. Thus, is a meromorphic function for with a double pole at and simple poles at for .
This gives us
| 3.8 |
We conclude that
We will explain in Part IV how to compute rigorous numerical values for the Fourier coefficients, in our case those of the fluctuation which can be deduced from (3.7). In this particular case of the binary sum-of-digits, simpler and even explicit expressions for the Fourier coefficients have been stated and derived by other authors: they can be obtained in our set-up by rewriting the residues of in terms of shifted residues of and by computing the latter explicitly; see [31, Proof of Corollary 2.5]. This yields the well-known result by Delange [9].
It will also turn out that (3.8) being a constant function is an immediate consequence of the fact that is a left eigenvector of both and associated with the eigenvalue 1; see Theorem B.
Asymptotics of Regular Sequences
This article is written with a focus on the sequence of partial sums of a regular sequence. In this section, however, we explain how to use all material for the regular sequence itself.
Let x(N) be a q-regular sequence. We may rewrite it as a telescoping sum
| 3.9 |
By [2, Theorems 2.5 and 2.6], the sequence of differences is again q-regular. Conversely, it is also well-known that the summatory function of a q-regular sequence is itself q-regular. (This is an immediate consequence of [2, Theorem 3.1].)
Therefore, we might also start to analyse a regular sequence by considering it to be the summatory function of its sequence of differences as in (3.9). In this way, we can apply all of the machinery developed in this article.
We end this short section with some remarks on why focusing on the sequence of partial sums can be rewarding. When modelling a quantity by a regular sequences, its asymptotic behaviour is often not smooth, but the asymptotic behaviour of its summatory function is. Moreover, we will see throughout this work that from a technical perspective, considering partial sums is appropriate. Therefore, we adopt this point of view of summatory functions of q-regular sequences throughout this paper.
Overview of the Full Results and Proofs
Overview of the Results
We have already seen the main results collected in a user-friendly simplified version as Theorem A which was written down in a self-contained way in Sect. 3.2.
In Theorem B the assumptions are refined. In particular, this theorem uses the joint spectral radius R of the matrices in a linear representation of the sequence (instead of a suitable bound for this quantity in Theorem A). Theorem B states the contribution of each eigenvalue of the sum C of matrices of the linear representation—split into the three cases of smaller, equal and larger in absolute value than R, respectively. This is formulated in terms of generalised eigenvectors. As a consequence of this precise breakdown of contributions, Theorem C, which collects the different cases into one result, provides a condition on when the error term vanishes.
Theorem D brings up the full formulation of the functional equation of the Dirichlet series associated to our regular sequence. This is accompanied by a meromorphic continuation as well as bounds on the growth of the Dirichlet series along vertical lines (i.e., points with fixed real value). The analytic properties provided by Theorem D will be used to verify the assumptions of Theorem E.
Theorem E is in fact stated and proved very generally: it is not limited to Dirichlet series coming from matrix products and regular sequences, but it works for general Dirichlet series provided that periodicity and continuity properties of the result are known a priori. This theorem handles the Mellin–Perron summation and the theoretical foundations for the computation of the Fourier coefficients of the appearing fluctuations.
We want to point out that Theorem E can be viewed as a “successful” version of the Mellin–Perron summation formula of order zero. In fact, the theorem states sufficient conditions to provide the analytic justification for the zeroth order formula.
Note that there is another result shown in this article, namely a pseudo-Tauberian theorem for summing up periodic functions. This is formulated as Proposition 14.1, and all the details around this topic are collected in Sect. 14.1. This pseudo-Tauberian argument is an essential step in proving Theorem E.
Heuristic Approach: Mellin–Perron Summation
The purpose of this section is to explain why the formula (3.5) for the Fourier coefficients is expected. The approach here is heuristic and non-rigorous because we do not have the required growth estimates. See also [10].
By the Mellin–Perron summation formula of order 0 (see, for example, [18, Theorem 2.1]), we have
By Remark 3.2 and the definition of R, we have
. Adding the summand x(0) to match our definition of X(N) amounts to adding
. Shifting the line of integration to the left—we have no analytic justification that this is allowed—and using the location of the poles of claimed in Theorem A yield
![]() |
for some . Expanding as
and assuming that the remainder integral converges absolutely yield
where denotes the order of the pole of at and is as in (3.5). (For and , the contribution of x(0) / s in (3.5) is absorbed by the error term
here.)
Summarising, this heuristic approach explains most of the formulæ in Theorem A. Some details (exact error term and order of the poles) are not explained by this approach. A result “repairing” the zeroth order Mellin–Perron formula is known as Landau’s theorem; see [5, Sect. 9]. It is not applicable to our situation due to multiple poles along vertical lines which then yield the periodic fluctuations. Instead, we present Theorem E which provides the required justification (not by estimating the relevant quantities, but by reducing the problem to higher order Mellin–Perron summation). The essential assumption is that the summatory function can be decomposed into fluctuations multiplied by some growth factors such as in (3.3).
High Level Overview of the Proof
As we want to use Mellin–Perron summation in some form, we derive properties of the Dirichlet series associated to the regular sequence. In particular, we derive a functional equation which allows to compute the Dirichlet series and its residues with arbitrary precision (Theorem D).
We cannot directly use Mellin–Perron summation of order zero for computing the Fourier coefficients of the fluctuations of interest. As demonstrated in Sect. 4.2, however, our theorems coincide with the results which Mellin–Perron summation of order zero would give if the required growth estimates could be provided. Unfortunately, we are unable to prove these required growth estimates. Therefore, we have to circumvent the problem by applying a generalisation of the pseudo-Tauberian argument by Flajolet, Grabner, Kirschenhofer, Prodinger and Tichy [18].
In order to use this argument, we have to know that the asymptotic formula has the shape (3.3). Note that a successful application (not directly possible!) of Mellin–Perron summation of order zero would give this directly. Therefore, we first prove (3.3) and the existence of the fluctuations (Theorems B, C). To do so, we decompose the problem into contributions of the eigenspaces of the matrix . The regular sequence is then expressed as a matrix product. Next, we construct the fluctuations by elementary means: We replace finite sums occurring in the summatory functions by infinite sums involving digits using the factorisation as a matrix product.
Then the pseudo-Tauberian argument states that the summatory function of the fluctuation is again a fluctuation and there is a relation between the Fourier coefficients of these fluctuations. The Fourier coefficients of the summatory function of the fluctuation, however, can be computed by Mellin–Perron summation of order one, so the Fourier coefficients of the original fluctuation can be recovered; see Theorem E.
Relation to Previous Work
The asymptotics of the summatory function of specific examples of regular sequences has been studied in [14, 23, 24]. There, various methods have been used to show that the fluctuations exist; then the original pseudo-Tauberian argument by Flajolet, Grabner, Kirschenhofer, Prodinger and Tichy [18] is used to compute the Fourier coefficients of the fluctuations.
The first version of the pseudo-Tauberian argument in Theorem E was provided in [18]: there, no logarithmic factors were allowed, only values with were allowed and the result contained an error term of o(1) whereas we give a more precise error estimate in order to allow repeated application.
Dumas [12, 13] proved the first part of Theorem A using dilation equations. We re-prove it here in a self-contained way because we need more explicit results than obtained by Dumas (e.g., we need explicit expressions for the fluctuations) to explicitly get the precise structure depending on the eigenspaces (Theorem B). Notice that the order of factors in Dumas’ paper is inconsistent between his versions of (3.1) and Remark 3.2.
A functional equation for the Dirichlet series of an automatic sequence has been proved by Allouche, Mendès France and Peyrière [1].
In Sect. 8 we study transducers. The sequences there are defined as the output sum of transducer automata in the sense of [31]. They are a special case of regular sequences and are a generalisation of many previously studied concepts. In that case, much more is known (variance, limiting distribution, higher dimensional input); see [31] for references and results. A more detailed comparison can be found in Sect. 8. Divide and conquer recurrences (see [11, 32]) can also be seen as special cases of regular sequences.
The present article gives a unified approach which covers all cases of regular sequences. As long as the conditions on the joint spectral radius are met, the main asymptotic terms are not absorbed by the error terms. Otherwise, the regular sequence is so irregular that the summatory function is not smooth enough to allow a result of this shape.
Overview of the Examples
We take a closer look at three particular examples. In this section, we provide an overview of these examples; all details can be found in Part II.
At first gance it seems that these examples are straight-forward applications of the results. However, we have to reformulate the relevant questions in terms of a q-regular sequence and will then provide shortcuts for the computation of the Fourier series. We put a special effort on the details which gives additional insights like dependencies on certain residue classes; see Sect. 5.3. Moreover, the study of these examples also encourages us to investigate symmetries in the eigenvalues; see Sect. 5.4 for an overview and Sect. 6.6 for general considerations.
We start with transducer automata. Transducers have been chosen in order to compare the results here with the previously available results [31]. In some sense, the results complement each other: while the results in [31] also contain information on the variance and the limiting distribution, our approach here yields more terms of the asymptotic expansion of the mean, at least in the general case. Also, it is a class of examples.
We then continue with esthetic numbers. These numbers are an example of an automatic sequence, therefore can be treated by a transducer. However, it turns out that the generic results (the results here and in [31]) degenerate: they are too weak to give a meaningful main term. Therefore a different effort is needed for esthetic numbers. No precise asymptotic results were known previously.
The example on Pascal’s Rhombus is a choice of a regular sequence where all components of the vector sequence have some combinatorial meaning. Again, no precise asymptotic results were known previously.
Section 5.6 contains further examples. Note that there are the two additional Sects. 5.3 and 5.4 pointing out phenomena appearing in the analysis of our examples.
Transducers
The sum of the output labels of a complete deterministic finite transducer when reading the q-ary expansion of an integer n has been investigated in [31]. As this can be seen as a q-regular sequence, we reconsider the problem in the light of our general results in this article; see Sect. 8. For the summatory function, the main terms corresponding to the eigenvalue q can be extracted by both results; if there are further eigenvalues larger than the joint spectral radius, our Corollary F allows to describe more asymptotic terms which are absorbed by the error term in [31]. Note, however, that our approach here does not give any readily available information on the variance (this could somehow be repaired for specific examples because regular sequences are known to form a ring) nor on the limiting distribution.
Esthetic Numbers
In this article, we also contribute a precise asymptotic analysis of q-esthetic numbers; see De Koninck and Doyon [8]. These are numbers whose q-ary digit expansion satisfies the condition that neighboring digits differ by exactly one. The sequence of such numbers turns out to be q-automatic, thus are q-regular and can also be seen as an output sum of a transducer; see the first author’s joint work with Kropf and Prodinger [31] or Sect. 8. However, the asymptotics obtained by using the main result of [31] is degenerated in the sense that the provided main term and second order term both equal zero; only an error term remains. On the other hand, using a more direct approach via our main theorem brings up the actual main term and the fluctuation in this main term. We also explicitly compute the Fourier coefficients. The full theorem is formulated in Sect. 9. Prior to this precise analysis, the authors of [8] only performed an analysis of esthetic numbers by digit-length (and not by the number itself).
The approach used in the analysis of q-esthetic numbers can easily be adapted to numbers defined by other conditions on the word of digits of their q-ary expansion.
Dependence on Residue Classes
The analysis of q-esthetic numbers also brings another aspect into the light of day, namely a quite interesting dependence of the behaviour with respect to q on different moduli:
The dimensions in the matrix approach of [8] need to be increased for certain residue classes of q modulo 4 in order to get a formulation as a q-automatic and q-regular sequence, respectively.
The main result in [8] already depends on the parity of q (i.e., on q modulo 2). This reflects our Corollary G by having 2-periodic fluctuations (in contrast to 1-periodic fluctuations in the main Theorem A).
Surprisingly, the error term in the resulting formula of Corollary G depends on the residue class of q modulo 3. This can be seen in the spectrum of the matrix : there is an appearance of an eigenvalue 1 in certain cases.
As an interesting side-note: In the spectrum of C, the algebraic multiplicity of the eigenvalue 0 changes again only modulo 2.
Symmetrically Arranged Eigenvalues
Fluctuations with longer periods (like in the second of the four bullet points above) come from a particular configuration in the spectrum of C. Whenever eigenvalues are arranged as vertices of a regular polygon, then their influence can be collected; this results in periodic fluctuations with larger period than 1. We elaborate on the influence of such eigenvalues in Sect. 6.6. This is then used in the particular cases of esthetic numbers and in conjunction with the output sum of transducers. More specifically, in the latter example this yields the second order term in Corollary F; see also [31].
Pascal’s Rhombus
Beside esthetic numbers, we perform an asymptotic analysis of the number of ones in the rows of Pascal’s rhombus. The rhombus is in some sense a variant of Pascal’s triangle—its recurrence is similar to that of Pascal’s triangle. It turns out that the number of ones in the rows of Pascal’s rhombus can be modelled by a 2-regular sequence.
The authors of [21] investigate this number of ones, but only for blocks whose number of rows is a power of 2. In the precise analysis in Sect. 10 we not only obtain the asymptotic formula, we also explicitly compute the Fourier coefficients.
Further Examples
There are many further examples of specific q-regular sequences which await precise asymptotic analysis, for example the Stern–Brocot sequence [39, A002487], the denominators of Farey tree fractions [39, A007306], the number of unbordered factors of length n of the Thue–Morse sequence (see [22]).
The Stern–Brocot sequence is a typical example: it is defined by , and
| 5.1 |
i.e., the right-hand sides are linear combinations of shifted versions of the original sequence.
Note that recurrence relations like (5.1) are not proper linear representations of regular sequences in the sense of (3.1). The good news, however, is that in general, such a sequence is q-regular. The following remark formulates this more explicitly.
Remark 5.1
Let x(n) be a sequence such that there are fixed integers and constants for and such that
holds for and . Then the sequence x(n) is q-regular with q-linear representation for where
Note that if , then a simple permutation of the components of v(n) brings x(n) to its first component (so that the above is indeed a proper linear representation as defined in Sect. 3.1).
By using this remark on (5.1), we set and obtain the 2-linear representation
for for the Stern–Brocot sequence.
Full Results
In this section, we fully formulate our results. As pointed out in Remark 3.2, regular sequences can essentially be seen as matrix products. Therefore, we will study these matrix products instead of regular sequences. Theorem A can then be proved as a simple corollary of the results for matrix products; see Sect. 15.
Problem Statement
Let , be fixed integers and . We investigate the sequence f of matrices such that
| 6.1 |
and .
Let n be an integer with q-ary expansion . Then it is easily seen that (6.1) implies that
| 6.2 |
We are interested in the asymptotic behaviour of .
Definitions and Notations
In this section, we give all definitions and notations which are required in order to state the results. For the sake of conciseness, we do not give any motivations for our definitions here; those are deferred to Sect. 7.
The following notations are essential:
Let denote a fixed norm on and its induced matrix norm on .
We set for and .
- The joint spectral radius of is denoted by
If the set of matrices has the finiteness property, i.e., there is an such that
then we set . Otherwise, we choose in such a way that there is no eigenvalue of C with .
The spectrum of C, i.e., the set of eigenvalues of C, is denoted by .
- For a positive integer , let be the matrix-valued Dirichlet series defined by
for a complex variable s. Set for .
In the formulation of Theorems B and C, the following constants are needed additionally:
Choose a regular matrix T such that is in Jordan form.
Let D be the diagonal matrix whose jth diagonal element is 1 if the jth diagonal element of J is not equal to 1; otherwise the jth diagonal element of D is 0.
Set .
Set .
For a , let be the size of the largest Jordan block associated with . In particular, if .
- For , set
here, remains undefined if .7 Define .
All implicit O-constants depend on q, d, the matrices (and therefore on ), as well as on R.
Decomposition into Periodic Fluctuations
Instead of considering F(N), it is certainly enough to consider wF(N) for all generalised left eigenvectors w of C, e.g., the rows of T. The result for F(N) then follows by taking appropriate linear combinations.
Theorem B
Let w be a generalised left eigenvector of rank m of C corresponding to the eigenvalue .
- If , then

- If , then

-
If , then there are 1-periodic continuous functions , , such that
for . The function is Hölder continuous with any exponent smaller than .If, additionally, the left eigenvector of C happens to be a left eigenvector to each matrix associated with the eigenvalue 1, then
is constant.
Here, for and for .
This theorem is proved in Sect. 12. Note that in general, the three summands in the theorem have different growths: a constant, a logarithmic term and a term whose growth depends essentially on the joint spectral radius and the eigenvalues larger than the joint spectral radius, respectively. The vector w is not directly visible in front of the third summand; instead, the vectors of its Jordan chain are part of the function .
Expressing the identity matrix as linear combinations of generalised left eigenvalues and summing up the contributions of Theorem B essentially yields the following corollary.
Theorem C
With the notations above, we have
for suitable 1-periodic continuous functions . If 1 is not an eigenvalue of C, then . If there are no eigenvalues with , then the O-term can be omitted.
For , the function is Hölder continuous with any exponent smaller than .
This theorem is proved in Sect. 12.4.
Remark 6.1
We want to point out that the condition is inherent in the problem: Single summands f(n) might be as large as and must therefore be absorbed by the error term in any smooth asymptotic formula for the summatory function.
Dirichlet Series
This section gives the required result on the Dirichlet series . For theoretical purposes, it is enough to study ; for numerical purposes, however, convergence improves for larger values of . This is because for large and large , the value of is roughly ; see also Part IV.
Theorem D
Let be a positive integer. Then the Dirichlet series converges absolutely and uniformly on compact subsets of the half plane , thus is analytic there.
We have
| 6.3 |
for with
| 6.4 |
The series in (6.4) converge absolutely and uniformly on compact sets for . Thus (6.3) gives a meromorphic continuation of to the half plane with possible poles at for each with and whose pole order is at most .
Let . For real z, we set
i.e., the linear function on the interval with and . Then
| 6.5 |
holds uniformly for and for all eigenvalues . Here, the implicit O-constant also depends on .
Note that by the introductory remark on , the infinite sum over k in (6.4) can be well approximated by a finite sum. Detailed error bounds are discussed in Part IV. Therefore the theorem allows to transfer the information on for large where convergence is unproblematical to values of s where the convergence of the Dirichlet series itself is bad.
Remark 6.2
By the identity theorem for analytic functions, the meromorphic continuation of is unique on the domain given in the theorem. Therefore, the bound (6.5) does not depend on the particular expression for the meromorphic continuation given in (6.3) and (6.4).
Theorem D is proved in Sect. 13. In the proof we translate the linear representation of f into a system of equations involving and shifted versions like . We will have to bound the difference between the shifted and unshifted versions of the Dirichlet series. These bounds are provided by the following lemma. It will turn out to be useful to have it as a result listed in this section and not buried in the proofs sections.
Lemma 6.3
Let be a Dirichlet series with coefficients
for all . Let with and . Set
Then
where the series converges absolutely and uniformly on compact sets for , thus
is analytic there. Moreover, with as in Theorem D,
as holds uniformly for .
Fourier Coefficients
As discussed in Sect. 4.2, we would like to apply the zeroth order Mellin–Perron summation formula but need analytic justification. In the following theorem we prove that whenever it is known that the result is a periodic fluctuation, the use of zeroth order Mellin–Perron summation can be justified. In contrast to the remaining parts of the paper, this theorem does not assume that f(n) is a matrix product.
Theorem E
Let f be a sequence on , let and with , , be real numbers with and , and let m be a positive integer. Moreover, let be Hölder continuous (with exponent with ) 1-periodic functions for such that
| 6.6 |
for integers .
For the Dirichlet series assume that
there is some real number such that converges absolutely for ;
- the function can be continued to a meromorphic function for such that poles can only occur at for and such that these poles have order at most m and a possible pole at 0; the local expansions are written as
with suitable constants for j, ;6.7 - there is some real number such that for and for all , we have
for .
6.8
All implicit O-constants may depend on f, q, m, , , , , and .
Then
| 6.9 |
for , and .
If and , then .
This theorem is proved in Sect. 14. The theorem is more general than necessary for q-regular sequences because Theorem D shows that we could use some . However, it might be applicable in other cases, so we prefer to state it in this more general form.
Fluctuations of Symmetrically Arranged Eigenvalues
In our main results, the occurring fluctuations are always 1-periodic functions. However, if eigenvalues of the sum of matrices of the linear representation are arranged in a symmetric way, then we can combine summands and get fluctuations with longer periods. This is in particular true if all vertices of a regular polygon (with center 0) are eigenvalues.
Proposition 6.4
Let , and let and be integers. Denote by the set of pth roots of unity. Suppose for each we have a continuous 1-periodic function
whose Fourier coefficients are
for a suitable function .
Then
| 6.10 |
with a continuous p-periodic function
whose Fourier coefficients are
Note that we again write to optically emphasise the p-periodicity. Moreover, the factor in (6.10) could be cancelled, however it is there to optically highlight the similarities to the main results (e.g. Theorem A). The proof of Proposition 6.4 can be found in Sect. 16.
The above proposition will be used for proving Corollary F which deals with transducer automata; there, the second order term exhibits a fluctuation with possible period larger than 1. We will also use the proposition for the analysis of esthetic numbers in Sect. 9.
Remark 6.5
We can view Proposition 6.4 from a different perspective: A q-regular sequence is -regular as well (by [2, Theorem 2.9]). Then, all eigenvalues of the original sequence become eigenvalues whose algebraic multiplicity is the sum of the individual multiplicities but the sizes of the corresponding Jordan blocks do not change. Moreover, the joint spectral radius is also taken to the pth power. We apply, for example, Theorem A in our -world and get again 1-period fluctuations. Note that for actually computing the Fourier coefficients, the approach presented in the proposition seems to be more suitable.
Remarks on the Definitions
In this section, we give some motivation for and comments on the definitions listed in Sect. 6.2.
q-Regular Sequences Versus Matrix Products
We note one significant difference between the study of q-regular sequences as in (3.1) and the study of matrix products (6.2). The recurrence (3.1) is supposed to hold for , too; i.e. . This implies that v(0) is either the zero vector (which is not interesting at all) or that v(0) is a right eigenvector of associated with the eigenvalue 1.
We do not want to impose this condition in the study of the matrix product (6.2). Therefore, we exclude the case in (6.1). This comes at the price of the terms K, , in Theorem B which vanish if multiplied by a right eigenvector to the eigenvalue 1 of from the right. This is the reason why Theorem A has simpler expressions than those encountered in Theorem B.
Joint Spectral Radius
Let
Then the submultiplicativity of the norm and Fekete’s subadditivity lemma [15] imply that ; cf. [37]. In view of equivalence of norms, this shows that the joint spectral radius does not depend on the chosen norm. For our purposes, the important point is that the choice of R ensures that there is an such that , i.e., for all . For any , we use long division to write , and by submultiplicativity of the norm, we get and thus
| 7.1 |
for all and . We will only use (7.1) and no further properties of the joint spectral radius. Note that (6.2) and (7.1) imply that
for .
As mentioned, we say that the set of matrices , has the finiteness property if there is an with ; see [34, 35].
Constants for Theorem B
In contrast to usual conventions, we write matrix representations of endomorphisms as multiplications where x is a (row) vector in and M is a matrix. Note that we usually denote this endomorphism by the corresponding calligraphic letter, for example, the endomorphism represented by the matrix M is denoted by .
Consider the endomorphism which maps a row vector to xC and its generalised eigenspaces for . (These are the generalised left eigenspaces of C. If , then .) Then it is well-known that is an endomorphism of and that . Let be the basis formed by the rows of T. Then the matrix representation of with respect to is J.
Let now be the endomorphism of which acts as identity on for and as zero on . Its matrix representation with respect to the basis is D; its matrix representation with respect to the standard basis is .
Finally, let be the endomorphism . As and decompose along and commutes with every other endomorphism on for all , we clearly also have . Thus the matrix representation of with respect to is ; its matrix representation with respect to the standard basis is .
Now consider a generalised left eigenvector w of C. If it is associated to the eigenvalue 1, then , and . Otherwise, that is, if w is associated to an eigenvalue not equal to 1, we have , , for and . Also note that 1 is not an eigenvalue of , thus is indeed regular. If 1 is not an eigenvalue of C, then everything is simpler: D is the identity matrix, , and .
Part II: Examples
In this part we investigate three examples in-depth. For an overview, we refer to Sect. 5 where some of the appearing phenomena are discussed as well. Further examples are also mentioned there.
Sequences Defined by Transducer Automata
We discuss the asymptotic analysis related to transducers; see also Sect. 5.1 for an overview.
Transducer and Automata
Let us start with two paragraphs recalling some notions around transducer automata. A transducer automaton has a finite set of states together with transitions (directed edges) between these states. Each transition has an input label and an output label out of the input alphabet and the output alphabet, respectively. A transducer is said to be deterministic and complete if for every state and every letter of the input alphabet, there is exactly one transition starting in this state with this input label.
A deterministic and complete transducer processes a word (over the input alphabet) in the following way:
It starts at its unique initial state.
- Then the transducer reads the word letter by letter and for each letter
- takes the transition with matching input label,
- the output label is written, and
- we proceed to the next state (according to the end of the transition).
Each state has a final output label that is written when we halt in this final state; we call a transducer with this property a subsequential transducer.
We refer to [6, Chapter 1] for a more detailed introduction to transducers and automata.
Now we are ready to start with the set-up for our example.
Sums of Output Labels
Let be a positive integer. We consider a complete deterministic subsequential transducer with input alphabet and output alphabet ; see [31]. For a non-negative integer n, let be the sum of the output labels (including the final output label) encountered when the transducer reads the q-ary expansion of n. Therefore, letters of the input alphabet will from now on be called digits.
This concept has been thoroughly studied in [31]: there, is considered as a random variable defined on the probability space equipped with uniform distribution. The expectation in this model corresponds (up to a factor of N) to our summatory function . We remark that in [31], the variance and limiting distribution of the random variable have also been investigated. Most of the results there are also valid for higher dimensional input.
The purpose of this section is to show that is a q-regular sequence and to see that the corresponding results in [31] also follow from our more general framework here. We note that the binary sum of digits considered in Example 3.1 is the special case of and the transducer consisting of a single state which implements the identity map. For additional special cases of this concept; see [31]. Note that our result here for the summatory function contains (fluctuating) terms for all eigenvalues of the adjacency matrix of the underlying digraph with whereas in [31] only contributions of those eigenvalues with are available, all other contributions are absorbed by the error term there.
Some Perron–Frobenius Theory
We will need the following consequence of Perron–Frobenius theory. By a component of a digraph we always mean a strongly connected component. We call a component final if there are no arcs leaving the component. The period of a component is the greatest common divisor of its cycle lengths. The final period of a digraph is the least common multiple of the periods of its final components.
Lemma 8.1
Let D be a directed graph where each vertex has outdegree q. Let M be its adjacency matrix and p be its final period. Then M has spectral radius q, q is an eigenvalue of M and for all eigenvalues of M of modulus q, the algebraic and geometric multiplicities coincide and for some pth root of unity .
This lemma follows from setting in [31, Lemma 2.3]. As [31, Lemma 2.3] proves more than we need here and depends on the notions of that article, we extract the relevant parts of [31] to provide a self-contained (apart from Perron–Frobenius theorem) proof of Lemma 8.1.
Proof
As usual, the condensation of D is the graph resulting from contracting each component of the original digraph to a single new vertex. By construction, the condensation is acyclic.
We choose a refinement of the partial order of the components given by the successor relation in the condensation to a linear order in such a way that the final components come last. Note that this implies that if there is an arc from one component to another, the former component comes before the latter component in our linear order. We then denote the components by , where the first k components are non-final and the last are final. Without loss of generality, we assume that the vertices of the original digraph D are labeled such that vertices within a component get successive labels and such that the linear order of the components established above is respected.
Therefore, the adjacency matrix M is an upper block triagonal matrix of the shape
![]() |
where is the adjacency matrix of the component .
Each row of the non-negative square matrix M has sum q by construction. Thus
and therefore the spectral radius of M is bounded from above by q. As the all ones vector is obviously a right eigenvector associated with the eigenvalue q of M, the spectral radius of M equals q. The same argument applies to .
By construction, the matrices are irreducible. For all eigenvalues of of modulus q have algebraic and geometric multiplicities 1 by Perron–Frobenius theory and for some th root of unity where is the period of .
By construction, the vertices of the components for have out-degree at most q. We add loops to these vertices to increase their out-degree to q, resulting in . The corresponding adjacency matrices are denoted by . By the above argument, has spectral radius q for . As (component-wise) and by construction, the spectral radius of is strictly less than q by [20, Theorem 8.8.1].
A left eigenvector of for can easily be extended to a left eigenvector of M. This observation shows that the geometric multiplicity of any eigenvalue of M of modulus q is at least its algebraic multiplicity. This concludes the proof.
Analysis of Output Sums of Transducers
We consider the states of to be numbered by for some positive integer such that the initial state is state 1. We set to be the sum of the output labels (including the final output label) encountered when the transducer reads the q-ary expansion of n when starting in state j. By construction, we have and is the final output label of state j. We set . For , we define the -dimensional -matrix in such a way that there is a one in row j, column k if and only if there is a transition from state j to state k with input label r. The vector is defined by setting its jth coordinate to be the output label of the transition from state j with input label r.
For , we set
The last Dirichlet series is a truncated version of the Hurwitz zeta function.
Corollary F
Let be a transducer as described at the beginning of this section. Let M be the adjacency matrix and p be the final period of the underlying digraph. For let be the size of the largest Jordan block associated with the eigenvalue of M.
Then the sequence is a q-regular sequence and
![]() |
8.1 |
for some continuous p-periodic function , some continuous 1-periodic functions for with and and some constant .
Furthermore,
with
for . The Fourier series expansion of for with is given in Theorem A.
The Dirichlet series satisfies the functional equation
| 8.2 |
Note that the functional equation (8.2) is preferrable over the functional equation given in Theorem D for the generic case of a regular sequence: the generic functional equation suggests a double pole at for all whereas the occurrence of the Hurwitz zeta function in (8.2) shows that there is a double pole but single poles at for all . Numerically, the same occurrence of the Hurwitz zeta function is also advantageous because it allows to decouple the problem.
Proof of Corollary F
Proof of Corollary F
The proof is split into several steps.
Recursive Description. We set . For and , we define t(j, r) and o(j, r) to be the target state and output label of the unique transition from state j with input label r, respectively. Therefore,
| 8.3 |
for , , with .
For , define by
Then (8.3) is equivalent to
for , with . Defining f(n) as in (6.1) for these , we see that .
q-Regular Sequence. If we insist on a proper formulation as a regular sequence, we rewrite (8.3) to
| 8.4 |
for , , . Setting and with
the system (8.4) is equivalent to
for , .
Eigenvalue 1. By construction, the matrices have the shape
It is clear that is a left eigenvector of associated with the eigenvalue 1.
Joint Spectral Radius. We claim that have joint spectral radius 1. Let
denote the maximum norm of complex vectors as well as the induced matrix norm, i.e., the maximum row sum norm. Let . It is easily shown by induction on that
for some and with
and
. Thus, we obtain
As 1 is an eigenvalue of each matrix for , the joint spectral radius equals 1, which proves the claim.
Eigenvectors and Asymptotics. We now consider . It has the shape
where is some complex vector.
Let be a linearly independent system of left eigenvectors of M associated with the eigenvector q. If for , then is a linearly independent system of left eigenvectors of C associated with the eigenvalue q. In that case and because of Lemma 8.1, algebraic and geometric multiplicities of q as an eigenvalue of C are both equal to .
Otherwise, assume without loss of generality that . Then
is a linearly independent system of left eigenvectors of C associated with the eigenvalue q. Additionally, is a generalised left eigenvector of rank 2 of C associated with the eigenvalue q with . As noted above, the vector (0, 1) is a left eigenvector to each matrix .
Similarly, it is easily seen that any left eigenvector of M associated with some eigenvalue can be extended uniquely to a left eigenvector of C associated with the same eigenvalue. The same is true for chains of generalised left eigenvectors associated with .
Therefore, in both of the above cases, Theorem B yields
![]() |
for some constant (which vanishes in the first case) and some 1-periodic continuous functions and where runs through the pth roots of unity and through the eigenvalues of M with and .
Proposition 6.4 leads to (8.1).
Fourier Coefficients. By Theorem A, we have
with
for a pth root of unity and . Therefore and by noting that does not contribute to the residue, Proposition 6.4 leads to the Fourier series given in the corollary.
Functional Equation. By (8.3), we have
Using Lemma 6.3 yields the result.
Esthetic Numbers
We discuss the asymptotic analysis of esthetic numbers; see also Sect. 5.2 for an overview.
Let again be a fixed integer. We call a non-negative integer n a q-esthetic number (or simply an esthetic number) if its q-ary digit expansion satisfies for all ; see De Koninck and Doyon [8].
In [8] the authors count q-esthetic numbers with a given length of their q-ary digit expansion. They provide an explicit (in form of a sum of q summands) as well as an asymptotic formula for these counts. We aim for a more precise analysis and head for an asymptotic description of the amount of q-esthetic numbers up the an arbitrary value N (in contrast to only powers of q in [8]).
A q-Linear Representation
The language consisting of the q-ary digit expansions (seen as words of digits) which are q-esthetic is a regular language, because it is recognized by the automaton in Fig. 1. Therefore, the indicator sequence of this language, i.e., the nth entry is 1 if n is q-esthetic and 0 otherwise, is a q-automatic sequence and therefore also q-regular. Let us name this sequence x(n).
Fig. 1.

Automaton recognizing esthetic numbers
Let be the transition matrices of the automaton , i.e., is the adjacency matrix of the directed graph induced by a transition with digit r. To make this more explicit, we have the following -dimensional square matrices: Each row and column corresponds to the states , . In matrix , the only non-zero entries are in column , namely 1 in the rows and (if available) and in row as there are transitions from these states to state r in the automaton .
Let us make this more concrete by considering . We obtain the matrices
We are almost at a q-linear representation of our sequence; we still need vectors on both sides of the matrix products. We have
for being the q-ary expansion of n and vectors and . As , this is not a linear representation of a regular sequence. Thus we cannot use Theorem A, but need to use Theorem B. However, the difference is slight: we simply cannot omit the contributions of the constant vector Kv(0). However, it will turn out that the joint spectral radius is 1, so the contribution will be absorbed by the error term anyway.
To see that the above holds, we have two different interpretations: the first is that the row vector
is the unit vector corresponding to the most significant digit of the q-ary expansion of n or, in view of the automaton , corresponding to the final state. Note that we read the digit expansion from the least significant digit to the most significant one (although it would be possible the other way round as well). We have which corresponds to the empty word and being in the initial state in the automaton. The vector v(0) corresponds to the fact that all states of except 0 are accepting.
The other interpretation is: the rth component of the column vector
has the following two meanings:
In the automaton , we start in state r and then read the digit expansion of n. The rth component is then the indicator function whether we remain esthetic, i.e., end in an accepting state.
To a word ending with r we append the digit expansion of n. The rth component is then the indicator function whether the result is an esthetic word.
At first glance, our problem here seems to be a special case of the transducers studied in Sect. 8. However, the automaton is not complete. Adding a sink to have a formally complete automaton, however, adds an eigenvalue q and thus a much larger dominant asymptotic term, which would then be multiplied by 0. Therefore, the results of [31] do not apply to this case here.
Full Asymptotics
We now formulate our main result for the amount of esthetic numbers smaller than a given integer N. We abbreviate this amount by
and have the following corollary.
Corollary G
Fix an integer . Then the number X(N) of q-esthetic numbers smaller than N is
| 9.1 |
with 2-periodic continuous functions . Moreover, we can effectively compute the Fourier coefficients of each (as explained in Part IV). If q is even, then the functions are actually 1-periodic. If q is odd, then the functions for even j vanish.
If , then the corollary results in
. However, for each length, the only word of digits satisfying the esthetic number condition has alternating digits 0 and 1, starting with 1 at its most significant digit. The corresponding numbers n form the so-called Lichtenberg sequence [39, A000975].
Back to a general q: For the asymptotics, the main quantities influencing the growth are the eigenvalues of the matrix . Continuing our example above, this matrix is
and its eigenvalues are , and 0, all with algebraic and geometric multiplicity 1. Therefore it turns out that the growth of the main term is , see Fig. 2. The first few Fourier coefficients are shown in Table 1.
Fig. 2.

Fluctuation in the main term of the asymptotic expansion of X(N) for . The figure shows
(red) approximated by its trigonometric polynomial of degree 1999 as well as (blue) (Color figure online)
Table 1.
Fourier coefficients of for (Corollary G)
| 0 | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 |
All stated digits are correct; see also Part IV
Eigenvectors
Before proving Corollary G, we collect information on the eigenvalues of C.
The matrix has a block decomposition into
for vectors (vector of zeros) and (vector of ones) of suitable dimension. Therefore, one eigenvalue of C is 0 and the others are the eigenvalues of M.
In contrast to [8, Sects. 4 and 5], we use the Chebyshev polynomials89 of the second kind defined by
for . It is well-known that
| 9.2 |
and, as a consequence, the roots of are given by
for .
The following lemma is similar to [8, Proposition 3].
Lemma 9.1
Let be a vector and .
Then v is an eigenvector to the eigenvalue of M if and only if for some and
(up to a scalar factor).
In particular, 0 is an eigenvalue of M if and only if q is odd.
Proof
See the statement and the proof of [8, Proposition 3].
Lemma 9.2
Let , and v be an eigenvector of M to . Then holds if and only if k is even.
Proof
We write . By Lemma 9.1 and (9.2) and a summation similar to the Dirichlet kernel, we have
Inserting the value of leads to
For , it is clear that and , so the denominator of this fraction is non-zero. We also claim that : Otherwise, we have , hence , which implies that because . However, it cannot be that because .
As a consequence, if and only if k / 2 is an integer.
Lemma 9.3
The characteristic polynomial of C is
In particular, all eigenvalues of M apart from 0 are eigenvalues of C with algebraic multiplicity 1. If q is even, then 0 has algebraic multiplicity 1 as an eigenvalue of C; if q is odd, then 0 has algebraic multiplicity 2 as an eigenvalue of C.
Proof
The matrix C is a block lower triangular matrix, so the characteristic polynomial is the product of the characteristic polynomials of the matrices M and 0.
The statement on the algebraic multiplicities follows from Lemma 9.1.
We can summarise our findings on the eigenvectors and eigenvalues of C as follows.
Proposition 9.4
Let , , not both 0, and let .
Then is an eigenvector of C to the eigenvalue if and only if one of the following conditions hold:
for some and , v is an eigenvector of M to , and if k is even and if k is odd;
, , ;
, , v is an eigenvector of M and .
In particular, the eigenvalue of C has
algebraic and geometric multiplicity 2 if ,
algebraic multiplicity 2 and geometric multiplicity 1 if , and
algebraic and geometric multiplicity 1 for even q.
Proof
The vector is an eigenvector if and only if
First assume that . Then leads to , contradiction. Therefore, v is an eigenvector of M to the eigenvalue and for some by Lemma 9.1. Then if and only if k is even by Lemma 9.2.
Now assume that and q is even. Then 0 is not an eigenvalue of M by Lemma 9.1. Thus and .
Now, assume that and . Then . By Lemma 9.2, the eigenvector v of M leads to an eigenvector of C; and there is an additional eigenvector .
Finally, assume that and . In this case, by Lemma 9.2, it cannot be that is an eigenvector of M because this would lead to , a contradiction. Thus the only eigenvector is .
Proof of the Asymptotic Result
Proof of Corollary G
We work out the conditions and parameters for using Theorem A.
Joint Spectral Radius. As all the square matrices have a maximum absolute row sum norm equal to 1, the joint spectral radius of these matrices is bounded by 1.
Let . Then any product with alternating factors and , i.e., a finite product , has absolute row sum norm at least 1 as the word is q-esthetic. Therefore the joint spectral radius of and is at least 1. Consequently, the joint spectral radius of equals 1.
Asymptotics. We apply our Theorem A. We have , so we combine our approach with Proposition 6.4. Moreover, we have iff iff . This results in (9.1).
We now assume that q is even. In this case, we still have to show that the functions are actually 1-periodic. We now need to use Theorem B. Let , , be the rows of T where the order is chosen in such a way that
We write for suitable . Setting , this means that , or equivalently, . The columns of are the right eigenvectors of C described in Proposition 9.4. Then Proposition 9.4 (1) implies that for even k with . This means that all fluctuations corresponding to eigenvalues for even k with are multiplied by 0 and do not contribute to the result. As , but and k have different parities, there is no need to use Proposition 6.4 and all fluctuations are 1-periodic.
The same argument can be used for the case of odd q, but in this case, and k have the same parity. So Proposition 6.4 is used for odd k, and fluctuations to both eigenvalues and vanish for even k.
Fourier Coefficients. We can compute the Fourier coefficients according to Theorem A and Proposition 6.4; see also Part IV.
Pascal’s Rhombus
We discuss the asymptotic analysis of odd entries in Pascal’s rhombus; see also Sect. 5.5 for an overview.
We consider Pascal’s rhombus which is, for integers and j, the array with entries , where
all j,
and for all ,
- and
for .
We are interested in the number of odd entries in the first N rows of this rhombus. In [21] the authors investigate this quantity for N being a power of 2. We again aim for a more precise analysis and asymptotic description.
So, let be equal to but with entries taken modulo 2; see also Fig. 3. We partition into the four sub-arrays
consisting only of the rows and columns of with even indices, i.e., the entries ,
consisting only of the rows with odd indices and columns with even indices, i.e., the entries ,
consisting only of the rows with even indices and columns with odd indices, i.e., the entries , and
consisting only of the rows and columns with odd indices, i.e., the entries .
Note that and ; see [21].
Fig. 3.

Pascal’s rhombus modulo 2
Recurrence Relations and 2-Regular Sequences
Let X(N), Y(N) and Z(N) be the number of ones in the first N rows (starting with row index 1) of , and , respectively.
Goldwasser, Klostermeyer, Mays and Trapp [21, (12)–(14)] get the recurrence relations
for , and , , and (cf. [21, Figs. 2 and 3]). Distinguishing between even and odd indices gives
for all . Now we build the backward differences , and . These x(n), y(n) and z(n) are the number of ones in the nth row of , and , respectively, and clearly
holds. We obtain
| 10.1a |
| 10.1b |
| 10.1c |
for , and , , and .
Let us write our coefficients as the vector
| 10.2 |
It turns out that the components included into v(n) are sufficient for a self-contained linear representation of v(n). In particular, it is not necessary to include y(n). By using the recurrences (10.1), we find that
for all10 with the matrices
and with . Therefore, the sequences x(n), y(n) and z(n) are 2-regular.
Full Asymptotics
Corollary H
We have
| 10.3 |
with and a 1-periodic function which is Hölder continuous with any exponent smaller than .
Moreover, we can effectively compute the Fourier coefficients of (as explained in Part IV).
We get analogous results for the sequences Y(N) and Z(N) (each with its own periodic function , but the same exponent ). The fluctuation of X(N) is visualized in Fig. 4 and its first few Fourier coefficients are shown in Table 2.
Fig. 4.

Fluctuation in the main term of the asymptotic expansion of X(N). The figure shows
(red) approximated by its trigonometric polynomial of degree 1999 as well as (blue) (Color figure online)
Table 2.
Fourier coefficients of (Corollary H)
| 0 | 0.6911615112341912755021246 |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 |
All stated digits are correct; see also Part IV
Proof of the Asymptotic Result
At this point, we only prove (10.3) of Corollary H. We deal with the Fourier coefficients in Sect. 10.5. As in the introductory example of the binary sum-of-digits functions (Example 3.1), we could get Fourier coefficients by Theorem A and the 2-linear representation of Sect. 10.1 directly. However, the information in the vector v(n) [see (10.2)] is redundant with respect to the asymptotic main term as it contains x(n) and z(n) as well as and ; both pairs are asymptotically equal in the sense of (10.3). Therefore, we head for an only 3-dimensional functional system of equations for our Dirichlet series of x(n), y(n) and z(n) (instead of a 5-dimensional system).
Proof of (10.3)
We use Theorem A.
Joint Spectral Radius. First we compute the joint spectral radius of and . Both matrices have a maximum absolute row sum equal to 2, thus , and both matrices have 2 as an eigenvalue. Therefore we obtain . Moreover, the finiteness property of the linear representation is satisfied by considering only products with exactly one matrix factor or .
Thus, we have .
Eigenvalues. Next, we compute the spectrum of . The matrix C has the eigenvalues , , , and (each with multiplicity one). Note that and are the zeros of the polynomial .
Asymptotics. By using Theorem A, we obtain an asymptotic formula for . Shifting from to N does not change this asymptotic formula, as this shift is absorbed by the error term
.
Dirichlet Series and Meromorphic Continuation
In the lemma below, we provide the functional equation (10.4) as a system of three equations. This is in contrast to the generic functional equation provided by Theorem D which is a system of five equations.
Let be an integer and define
Lemma 10.1
Set
Then
![]() |
10.4 |
where
![]() |
with the notion of as in Lemma 6.3, provides meromorphic continuations of the Dirichlet series
,
, and
for with the only possible poles at for , all of which are simple poles.
Proof
We split the proof into several steps.
Functional Equation. From (10.1b) we obtain
![]() |
10.5 |
The second row of (10.4) follows. Similarly, (10.1a) and (10.1c) yield the first and third rows of (10.4), respectively.
Determinant and Zeros. The determinant of M is
It is an entire function.
All zeros of are simple zeros. In particular, solving
gives (the two zeros of ) and . A solution
implies that with satisfies the same equation as well.
Moreover, set . Then the only zeros with are at with for .
It is no surprise that the of this lemma and the in the proof of Corollary H which comes from the 2-linear representation of Sect. 10.1 coincide.
Meromorphic Continuation. Let . The Dirichlet series
is analytic for with being the joint spectral radius by Theorem D. We use the functional equation (10.4) which provides the continuation, as we write
in terms of
,
and
. By Lemma 6.3, these three functions are analytic for .
The zeros (all are simple zeros) of the denominator
are the only possibilities for the poles of
for .
Fourier Coefficients
We are now ready to prove the rest of Corollary H.
Proof of Corollary H
We verify that we can apply Theorem E.
The steps of this proof in Sect. 10.2 provided us already with an asymptotic expansion (10.3). Lemma 10.1 gives us the meromorphic function for which comes from the Dirichlet series
. It can only have poles (all simple) at for and satisfies the assumptions in Theorem E by Theorem D and Remark 6.2.
Therefore a computation of the Fourier coefficients via computing residues [see (3.6)] is possible by Theorem E, and this residue may be computed from (10.4) via Cramer’s rule.
We refer to Part IV for details on the actual computation of the Fourier coefficients.
Part III: Proofs
Before reading this part on the collected proofs, it is recommended to recall the definitions and notations of Sect. 6.2. Some additional notations which are only used in the proofs are introduced in the following section.
Additional Notations
We use Iverson’s convention if is true and 0 otherwise, which was popularised by Graham, Knuth and Patashnik [26]. We use the notation for falling factorials. We use for multinomial coefficients. We sometimes write a binomial coefficient as with when we want to emphasise the symmetry and analogy to a multinomial coefficient.
Decomposition into Periodic Fluctuations: Proof of Theorem B
We first give an overview over the proof.
Overview of the Proof of Theorem B
The first step will be to express the summatory function F in terms of the matrices C, and . Essentially, this corresponds to the fact that the summatory function of a q-regular function is again q-regular. This expression of F will consist of two terms: the first is a sum over involving a jth power of C and matrices and depending on the most significant digits of N. The second term is again a sum, but does not depend on the digits of N; it only encodes the fact that may not hold. The fact that we are interested in wF(N) for the generalised left eigenvector w corresponding to the eigenvalue allows to express in terms of (plus some other terms if w is not an eigenvector).
The second term can be disposed of by elementary observations using a geometric series. We reverse the order of summation in the first summand and extend it to an infinite sum. The infinite sum is written in terms of periodic fluctuations; the difference between the infinite sum and the finite sum is absorbed by the error term. In order not to have to deal with ambiguities due to non-unique q-ary expansions of real numbers, we define the fluctuations on an infinite product space instead of the unit interval.
Upper Bound for Eigenvalues of C
We start with an upper bound for the eigenvalues of C in terms of the joint spectral radius.
Lemma 12.1
Let . Then .
Proof
For , we have
and
by (7.1). Taking th roots and the limit yields . This last inequality does not depend on our particular (cf. Sect. 6.2) choice of , so the inequality is valid for all , and we get the result.
Explicit Expression for the Summatory Function
In this section, we give an explicit formula for in terms of the matrices , and C.
Lemma 12.2
Let N be an integer with q-ary expansion . Then
Proof
We claim that
| 12.1 |
holds for non-negative integers N and r with .
We now prove (12.1): Using (6.1) and yields
This concludes the proof of (12.1).
Iteration of (12.1) and using (6.2) yield the assertion of the lemma; cf. [31, Lemma 3.6].
Proof of Theorem B
Proof of Theorem B
For readability, this proof is split into several steps.
Setting. Before starting the actual proof, we introduce the setting using an infinite product space which will be used to define the fluctuations . We also introduce the maps linking the infinite product space to the unit interval.
We will first introduce functions defined on the infinite product space
We equip it with the metric such that two elements with a common prefix of length j and have distance . We consider the map with
see Fig. 5. By using the assumption that the zeroth component of elements of is assumed to be non-zero, we easily check that is Lipschitz-continuous; i.e.,
| 12.2 |
for with a common prefix of length j.
Fig. 5.

Maps in the proof of Theorem B
For , let be the unique with such that does not end on infinitely many digits , i.e., represents a q-ary expansion of . This means that is the identity on [0, 1).
From the definition of the metric on , recall that a function is continuous if and only if for each , there is a j such that holds for all and that have a common prefix of length j. Further recall from the universal property of quotients that if such a continuous function satisfies whenever , then there is a unique continuous function such that . This will be used in the “Descent”-step of the proof.
Notation. We will deal with the two sums in Lemma 12.2 separately. We will first introduce notations corresponding to this split and to the eigenvector structure.
Let N have the q-ary expansion and set
so that by Lemma 12.2.
We consider the Jordan chain generated by w, i.e., for and is a left eigenvector of C. Thus we have for all . If , choose vectors such that
| 12.3 |
holds for all . These vectors are suitable linear combinations of the vectors . We note that we have
| 12.4 |
Second Summand. We will now rewrite by evaluating the geometric sum and rewriting it in terms of a fluctuation.
We claim that
| 12.5 |
for suitable continuously differentiable functions on , . If , then
shall mean that the error vanishes for almost all N.
Consider first the case that . Because of and (see Sect. 7.3) we have
If , then for almost all . We may set for and (12.5) is shown. Otherwise, as we have and by (12.3), we can rewrite as
Let
for reals L and , i.e.,
By the binomial theorem, we have
This leads to a representation for continuously differentiable functions
for . As the functions are continuously differentiable, they are Lipschitz continuous on compact subsets of . We note that in the case , the only occurring summand is for , which implies that
| 12.6 |
Rewriting as and recalling that yields (12.5) for .
We now turn to the case . We use for as above. Thus
where the identity [26, (5.10)] (“summation on the upper index”) has been used in the last step.
Thus is a polynomial in of degree m. By writing , we can again rewrite this as a polynomial in whose coefficients depend on . The coefficient of comes from , therefore, this coefficient is
The additional factor in has been introduced in order to annihilate generalised eigenvectors to other eigenvalues. By construction of K, we have . Thus we have shown (12.5) for , too.
Lifting the Second Summand. For later use—at this point, this may seem to be quite artificial—we set . As is continuously differentiable, it is Lipschitz continuous on [0, 1]. As is also Lipschitz continuous, so is .
First Summand We now turn to . To explain our plan, assume that w is in fact an eigenvector. Then . For , it will be rather easy to see that the result holds. Otherwise, we will factor out and write the sum as . We will then reverse the order of summation and extend the sum to an infinite sum, which will be represented by periodic fluctuations. The difference between the finite and the infinite sums will be absorbed by the error term. The periodic fluctuations will be defined on the infinite product space .
We now return to the general case of a generalised eigenvector w and the actual proof. If , we certainly have and we are in one of the first two cases of this theorem. Furthermore, we have for , thus
by using (7.1). Together with (12.5), the result follows.
From now on, we may assume that . By using (12.3), we have
| 12.7 |
We first consider the case that [corresponding to Theorem B, (1)]. We get
where (7.1) was used. Together with (12.5), the result follows.
Next, we consider the case where [Theorem B, (2)]. In that case, we get
Again, the result follows.
From now on, we may assume that . We set and note that by assumption and Lemma 12.1. We claim that there are continuous functions on for such that
| 12.8 |
and such that
| 12.9 |
when the first j entries of and coincide.
Write and let , i.e., is the q-ary expansion of ending on infinitely many zeros. This means that for and for . Reversing the order of summation in (12.7) yields
For , we have and therefore . Thus we may extend the sum to run over all , i.e.,
We insert and obtain
where
for and . Note that in contrast to , the second argument of is an element of instead of . Collecting by powers of L, we get
where
for functions
which are continuously differentiable and therefore Lipschitz continuous on the unit interval. This shows (12.8). For , only summands with occur, thus
| 12.10 |
Note that is majorised by
![]() |
according to (7.1). We now prove (12.9). So let and have a common prefix of length i. Consider the summand of with index j. First consider the case that . For all r, we have
due to Lipschitz continuity of . As the matrix product is the same for and , the difference with respect to this summand is bounded by
Thus the total contribution of all summands with is
. Any summand with is bounded by
, which leads to a total contribution of
. Adding the two bounds leads to a bound of
, as requested.
Descent. As we have defined the periodic fluctuations on the infinite product space , we now need to prove that the periodic fluctuation descends to a periodic fluctuation on the unit interval. To do so, we will verify that the values of the fluctuation coincide whenever sequences in the infinite product space correspond to the same real number in the interval.
By setting , we obtain
| 12.11 |
and
| 12.12 |
whenever and have a common prefix of length j.
It remains to show that holds whenever or and .
Choose and such that one of the above two conditions on holds and such that for and for . Be aware that now the prefixes of and of length do not coincide except for the trivial case .
Fix some and set to be the prefix of of length j, followed by infinitely many zeros. Note that we have . Set . By construction, we have . This implies and . Taking the difference of (12.11) for and n yields
We estimate as
and get
| 12.13 |
We have
by (6.2) and (7.1). By (12.12),
which is used below to replace by . Inserting these estimates in (12.13) and dividing by yields
| 12.14 |
Note that does not depend on j. Now we let j (and therefore n) tend to infinity. We see that (12.14) can only remain true if for , which we had set out to show.
Therefore, descends to a continuous function on [0, 1] with ; thus can be extended to a 1-periodic continuous function.
Hölder Continuity. We will now prove Hölder continuity. As the fluctuations have been defined on the infinite product space , we will basically have to prove Hölder continuity there. The difficulty will be that points in the unit interval which are close to each other there may have drastically different q-ary expansions, thus correspond to drastically different points in the infinite product space . To circumvent this problem, the interval between the two points will be split into two parts.
We first claim that for , we have
| 12.15 |
as . To prove this, let and . Let be the length of the longest common prefix of and and choose such that . We define and such that
![]() |
and set and . As , we have . We conclude that . Therefore,
so in view of the fact that each entry of is greater or equal than the corresponding entry of , the expansions and must have a common prefix of length j. Similarly, the expansions and must have a common prefix of length j. Thus (12.12) implies that
Noting that
leads to (12.15).
In order to prove Hölder continuity with exponent , we first note that Lipschitz-continuity of on the interval [0, 1] shows that (12.15) implies
This can then easily be extended to arbitrary reals by periodicity of because it is sufficient to consider small and the interval may be subdivided at an integer between y and .
Constant Dominant Fluctuation. To finally prove the final assertion on constant fluctuations, we will have to inspect the explicit expression for the fluctuations using the additional assumption.
Under the additional assumption that the vector is a left eigenvector to all matrices associated with the eigenvalue 1, the same holds for by (12.4). Then is also a left eigenvector of C associated with the eigenvalue q. In particular, .
We can compute using (12.6). As , we have by definition of (see Sect. 7.3) which implies that . As by assumption, we conclude that in this case.
We use (12.10) to compute . By assumption, which implies that
by definition of .
Together with (12.4), we obtain the assertion.
Proof of Theorem C
Proof of Theorem C
We denote the rows of T as and the columns of by . Thus and is a generalised left eigenvector of C of some rank corresponding to some eigenvalue . Theorem B and the fact that there are no eigenvalues of C of absolute value between and R then immediately imply that
![]() |
for some 1-periodic Hölder continuous functions with exponent less than . The first summand K as well as the error term already coincide with the result stated in the theorem. From Sect. 7.3 we recall that for .
We set
for with and .
Then we still have to account for
| 12.16 |
The factor in the definition of implies that vanishes unless and . Therefore, the sum in (12.16) equals .
Meromorphic Continuation of the Dirichlet Series: Proof of Theorem D
For future use, we state an estimate for the binomial coefficient. Unsurprisingly, it is a consequence of a suitable version of Stirling’s formula. Alternatively, it can be seen as the most basic case of Flajolet and Odlyzko’s singularity analysis [19, Proposition 1], where uniformity in s is easily checked.
Lemma 13.1
Let , . Then
| 13.1 |
uniformly for s in a compact subset of and .
Proof
By [26, (5.14)] (“negating the upper index”), we rewrite the binomial coefficient as
Thus (13.1) follows by [36, 5.11.12] (which is an easy consequence of Stirling’s formula for the Gamma function).
Proof of Lemma 6.3
We have
| 13.2 |
for . We note that
Therefore,
and the series converges for . As this holds for all , we obtain
as uniformly for . In the language of [27, § 3.3],
has order at most 1 for . As is larger than the abscissa of absolute convergence of
, it is clear that
for , i.e.,
has order at most 0 for . By Lindelöf’s theorem (see [27, Theorem 14]), we conclude that
for .
For , we may rewrite (13.2) using the binomial series as
![]() |
13.3 |
Switching the order of summation was legitimate because
for and Lemma 13.1 imply absolute and uniform convergence for s in a compact set. Noting that the previous arguments hold again for all and that the inner sum in (13.3) is completes the proof.
Proof of Theorem D
As
by (6.2) and (7.1), the Dirichlet series (see Sect. 6.2) converges absolutely and uniformly on compact sets for . As this holds for all , i.e., does not depend on our particular (cf. Sect. 6.2) choice of , this convergence result holds for .
We use (6.1) and Lemma 6.3 (including its notation) to rewrite as
with
for . Thus
| 13.4 |
for . By Lemma 6.3 we have
for . Rewriting the expression for using the binomial series (see Lemma 6.3 again) yields
Combining this with (13.4) yields the expression (6.4) for .
Solving (6.3) for yields the meromorphic continuation of to (and thus to ) with possible poles where is an eigenvalue of C. As long as keeps a fixed positive distance from the eigenvalues, the bound for (coming from the bound for ) carries over to a bound for , i.e., (6.5).
To estimate the order of the poles, let w be generalised left eigenvector of rank m of C corresponding to an eigenvalue with . We claim that has a pole of order at most m at and no other poles for . We prove this by induction on m.
Set . By definition, or v is a generalised eigenvector of rank of C. By induction hypothesis, has a pole of order at most at for and no other poles for .
Multiplying (6.3) by w, inserting the definition of v and reordering the summands yields
The right-hand side has a pole of order at most at for and has a simple zero at the same places. This proves the claim.
Fourier Coefficients: Proof of Theorem E
In contrast to the rest of this paper, this section does not directly relate to a regular sequence but gives a general method to derive Fourier coefficients of fluctuations.
Pseudo-Tauberian Theorem
In this section, we generalise the pseudo-Tauberian argument by Flajolet, Grabner, Kirschenhofer, Prodinger and Tichy [18, Proposition 6.4]. The basic idea is that for a 1-periodic Hölder-continuous function and , there is a 1-periodic continuously differentiable function such that
and there is a straight-forward relation between the Fourier coefficients of and the Fourier coefficients of . This relation exactly corresponds to the additional factor when transitioning from the zeroth order Mellin–Perron formula to the first order Mellin–Perron formula.
In contrast to [18, Proposition 6.4], we allow for an additional logarithmic factor, have weaker growth conditions on the Dirichlet series and quantify the error. We also extend the result to all complex . The generalisation from there to our real is trivial.
Proposition 14.1
Let and be a real number, m be a positive integer, be 1-periodic Hölder continuous functions with exponent , and . Then there exist continuously differentiable functions , , periodic with period 1, and a constant c such that
![]() |
14.1 |
for integers .
Denote the Fourier coefficients of and by and , respectively. Then the corresponding generating functions fulfil
| 14.2 |
for and .
If , then vanishes.
Remark 14.2
Note that the constant c is absorbed by the error term if , in particular if . Therefore, this constant does not occur in the article [18].
Remark 14.3
The factor in (14.2) will turn out to correspond exactly to the additional factor in the first order Mellin–Perron summation formula with the substitution such that the local expansion around the pole in of the Dirichlet generating function is conveniently written as a Laurent series in Z. See the proof of Theorem E for details.
Before actually proving Proposition 14.1, we give an outline.
Overview of the Proof of Proposition 14.1
We start with the left-hand side of (14.1) and split the range of summation according to , thereby, in terms of our periodic functions, split after each period. We then use periodicity of the and collect terms. This results in Riemann sums which converge to the corresponding integrals. Therefore, we can approximate these sums by the integrals.
More rewriting constructs and reveals the functions [of the right-hand side of (14.1)]: these functions are basically defined via the above mentioned integral. We then show that these functions are indeed periodic and that their Fourier coefficients relate to the Fourier coefficients of the . The latter is done by a direct computation of the integrals defining these coefficients.
For this proof, we use an approach via exponential generating functions. This reduces the overhead for dealing with the logarithmic factors in (14.1) such that we can essentially focus on the case . The resulting formula (14.1) follows by extracting a suitable coefficient of this power series.
There is another benefit of the generating function approach: this formulation allows to easily translate the relation between the Fourier coefficients here to the additional factors occurring when transitioning to higher order Mellin–Perron summation formulæ, in particular the factor in the first order Mellin–Perron summation.
Proof of Proposition 14.1
We split the proof into six parts.
Notations. We start by defining quantities that are used through the whole proof.
Without loss of generality, we assume that : otherwise, we slightly decrease keeping the inequality intact. We use the abbreviations , , i.e., . We use the generating functions
for and where is chosen such that and such that and for these Z. (The condition is only needed for the case .) We will stick to the above choice of r and restrictions for Z throughout the proof.
It is easily seen that the left-hand side of (14.1) equals , where denotes extraction of the coefficient of .
Approximation of the Sum by an Integral. We will now rewrite L(N, Z) so that its shape is that of a Riemann sum, therefore enabling us to approximate it by an integral.
Splitting the range of summation with respect to powers of q yields
![]() |
We write (or for the second sum), use the periodicity of in u and get
![]() |
The inner sums are Riemann sums converging to the corresponding integrals for . We set
It will be convenient to change variables in I(u, Z) to get
| 14.3 |
We define the error by
As the sum and the integral are both analytic in Z, their difference is analytic in Z, too. We bound by the difference of upper and lower Darboux sums (step size ) corresponding to the integral I(u, Z): On each interval of length , the maximum and minimum of a Hölder continuous function can differ by at most
. As the integration interval as well as the range for u and Z are finite, this translates to the bound
as uniformly in and . This results in
If , i.e., , the second sum involving the integration error converges absolutely and uniformly in Z for to some analytic function ; therefore, we can replace the second sum by
in this case. If , then the second sum is
. By our choice of r, the case cannot occur. So in any case, we may write the second sum as
by our choice of r. The last summand involving is absorbed by the error term of the second summand. Note that the error term is uniform in Z and, by its construction, analytic in Z.
Thus we end up with
| 14.4 |
where
| 14.5 |
It remains to rewrite S(N, Z) in the form required by (14.1). We emphasise that we will compute S(N, Z) exactly, i.e., no more asymptotics for will play any rôle.
Construction of. We will now rewrite the expression S(N, Z) such that the generating function [i.e., the fluctuations of the right-hand side of (14.1)] appears. After this, we will gather properties of including properties of its Fourier coefficients.
We rewrite (14.5) as
We replace by and use
to get
| 14.6 |
with
| 14.7 |
Periodic Extension of. A priori, it is not clear that the function defined above can be extended to a periodic function (and therefore Fourier coefficients can be computed later on). The aim now is to show that it is possible to do so.
It is obvious that
is continuously differentiable in . We have
because by (14.3). The derivative of
with respect to u is
which implies that
We can therefore extend
to a 1-periodic continuously differentiable function in u on .
Fourier Coefficients of Knowing that is a periodic function, we can now head for its Fourier coefficients and relate them to those of .
By using equations (14.7) and (14.3), , and with , we now express the Fourier coefficients of
in terms of those of
by
![]() |
The second and third summands cancel, and we get
| 14.8 |
Extracting Coefficients. So far, we have proven everything in terms of generating functions. We now extract the coefficients of these power series which will give us the result claimed in Proposition 14.1.
By (14.7),
is analytic in Z for . If , then it is analytic in , too. If , then (14.7) implies that
might have a simple pole in . Note that all other possible poles have been excluded by our choice of r. For , we write
and use Cauchy’s formula to obtain
This and the properties of
established above imply that is a 1-periodic continuously differentiable function.
Inserting (14.6) in (14.4) and extracting the coefficient of using Cauchy’s theorem and the analyticity of the error in Z yields (14.1) with
. Rewriting (14.8) in terms of and leads to (14.2). Note that we have to add
in (14.2) to compensate the fact that we do not include for .
We prove a uniqueness result.
Lemma 14.4
Let m be a positive integer, be a real number, such that , , and and be 1-periodic continuous functions such that
| 14.9 |
for integers . Then for .
Proof
If and , then (14.9) is impossible as the growth of the right-hand side of the equation is larger than that on the left-hand side. So we can exclude this case from further consideration. We proceed indirectly and choose k maximally such that . Dividing (14.9) by yields
| 14.10 |
for . Let and set . We clearly have . Then
We define and see that
for , i.e., . This implies that and therefore
Setting in (14.10) and letting shows that
| 14.11 |
If or , we immediately conclude that . If we have , which again implies that .
Now we assume that and . We set , which implies that . We choose sequences and such that and : For rational , we simply take and , and for irrational , we consider the sequence of convergents of the continued fraction of and the required properties follow from the theory of continued fractions; see for example [28, Theorems 155 and 164]. By using , we get
These two limits are distinct as by assumption. Thus does not exist. Therefore, (14.11) implies that and therefore .
We proved that for . By continuity, this also follows for all ; contradiction.
Proof of Theorem E
We again start with an outline of the proof.
Overview of the Proof of Theorem E
The idea is to compute the repeated summatory function of F twice: On the one hand, we use the pseudo-Tauberian Proposition 14.1 to rewrite the right-hand side of (6.6) in terms of periodic functions . On the other hand, we compute it using a higher order Mellin–Perron summation formula, relating it to the singularities of . More specifically, the expansions at the singularities of give the Fourier coefficients of . The Fourier coefficients of the functions are related to those of the functions via (14.2).
And up next comes the actual proof.
Proof of Theorem E
Initial observations and notations. As is Hölder continuous, its Fourier series converges by Dini’s criterion; see, for example, [40, p. 52].
For any sequence g on , we set . We set . In particular, A is a positive integer with .
Asymptotic Summation. We first compute the Ath repeated summatory function of F (i.e., the th repeated summatory function of the function f) by applying Proposition 14.1A times. This results in an asymptotic expansion involving new periodic fluctuations while keeping track of the relation between the Fourier coefficients of the original fluctuations and those of the new fluctuations.
A simple induction based on (6.6) and using Proposition 14.1 shows that there exist 1-periodic continuous functions for and and some constants for such that
| 14.12 |
for integers . In fact, for . For and , is continuously differentiable. Note that the case that occurs for at most one , which implies that the number of non-vanishing fluctuations increases at most once in the application of Proposition 14.1. Also note that the assumption implies that the error terms arising in the application of Proposition 14.1 are absorbed by the error term stemming from (6.6).
We denote the corresponding Fourier coefficients by
for , , . By (14.2) the generating functions of the Fourier coefficients fulfil
for , and . Iterating this recurrence yields
| 14.13 |
for and .
Explicit Summation. We now compute explicitly with the aim of decomposing it into one part which can be computed by the Ath order Mellin–Perron summation formula and another part which is smaller and can be absorbed by an error term.
Explicitly, we have
for . Note that we formally write the outer sum over the range although the inner sum is empty (i.e., equals 0) for ; this will be useful later on. The inner sum counts the number of selections of a elements out of , thus we have
| 14.14 |
for and falling factorials .
The polynomials , , are clearly a basis of the space of polynomials in U of degree at most A. Thus, there exist rational numbers such that
Comparing the coefficients of shows that . Substitution of U by , multiplication by f(n) and summation over yield
by (14.14). When inserting the asymptotic expressions from (14.12), the summands involving fluctuations for are absorbed by the error term
of the summand for because . Thus there are some constants for such that
![]() |
14.15 |
for integers .
If for some and , then we assume without loss of generality that : Otherwise, we replace by and by 0. Both (14.15) and (14.13) remain intact: the former trivially, the latter because the factor for in (14.13) equals which compensates the fact that the Fourier coefficient is modified.
Mellin–Perron summation. We use the Ath order Mellin–Perron summation formula to write the main contribution of as determined above in terms of new periodic fluctuations whose Fourier coefficients are expressed in terms of residues of a suitably modified version of the Dirichlet generating function .
Without loss of generality, we assume that : the growth condition (6.8) trivially holds with on the right of the abscissa of absolute convergence of the Dirichlet series. By the Ath order Mellin–Perron summation formula (see [18, Theorem 2.1]), we have
with the arbitrary choice for the real part of the line of integration.
The growth condition (6.8) allows us to shift the line of integration to the left such that
![]() |
The summand for a in the second term corresponds to a possible pole at which is not taken care of in the first sum; note that is analytic at in this case by assumption because of .
We now compute the residue at . We use
to split up the residue as
with
| 14.16 |
for . Note that we allow for the case of for some when might have a pole of order at . Using the growth condition (6.8) and the choice of A yields
| 14.17 |
for and s which are at least a distance away from the poles . By writing the residue in (14.16) in terms of an integral over a rectangle around (distance again at least away from ), we see that (14.17) implies
| 14.18 |
for . Moreover, by (14.17), we see that
Thus we proved that
![]() |
14.19 |
for
| 14.20 |
where the are given in (14.16). By (14.18), the Fourier series (14.20) converges uniformly and absolutely. This implies that is a 1-periodic continuous function.
Fourier Coefficients. We will now compare the two asymptotic expressions for obtained so far to see that the fluctations coincide. We know explicit expressions for the Fourier coefficients of the in terms of residues, and we know how the Fourier coefficients of the fluctuations of the repeated summatory function are related to the Fourier coefficients of the fluctuations of F. Therefore, we are able to compute the latter.
By (14.15), (14.19), elementary asymptotic considerations for the terms with , Lemma 14.4 and the fact that if for some , we see that for . This immediately implies that if and .
To compute the Fourier coefficients , we set to rewrite (14.16) using (6.7) as
for and . This is equivalent to
for and . Clearing the denominator and using (14.13) as announced in Remark 14.3 lead to
for and . Comparing coefficients shows that for and . This proves (6.9).
Proof of Theorem A
Proof of Theorem A
By Remark 3.2, we have . If , there is nothing to show. Otherwise, as observed in Sect. 7.1, v(0) is a right eigenvector of associated to the eigenvalue 1. As a consequence, Kv(0), and all vanish. Therefore, (3.3) follows from Theorem C by multiplication by and v(0) from left and right, respectively. Note that the notation is somewhat different: Instead of powers in Theorem C we write here.
The functional equation (3.4) follows from Theorem D for by multiplication from right by v(0).
For computing the Fourier coefficients, we denote the rows of T by . Thus is a generalised left eigenvector of C of some order associated to some eigenvalue of C. We can write for some suitable constants . For , we consider the sequence on with
The reason for incorporating v(0) into the value for is that the corresponding Dirichlet series only takes values at into account. By definition, we have . Taking the linear combination yields . We choose such that there are no eigenvalues with and such that .
By Theorem B, we have
| 15.1 |
for for suitable 1-periodic Hölder continuous functions (which vanish if ). By Theorem D, the Dirichlet series is meromorphic for with possible poles at for .
The sequence satisfies the prerequisites of Theorem E, either with if or with arbitrary real and for all j if . The theorem then implies that
| 15.2 |
if and .
If , Theorem E also yields
where the are given by the singular expansion
| 15.3 |
for . Note that (15.2) ensures that there is no additional pole at when and . Also note that in comparison to Theorem E, there corresponds to here.
We now have to relate the results obtained for the sequences with the results claimed for the original sequence f. For with , we have
We denote the Fourier coefficients of by for and will show that these Fourier coefficients actually fulfil (3.5). Taking linear combinations of (15.3) shows that
for .
Summing over all yields (3.5) because summands with are analytic for and do therefore not contribute to the right-hand side.
It might seem to be somewhat artificial that Theorem E is used to prove that in some of the cases above. In fact, this can also be shown directly using the linear representation; we formulate and prove this in the following remark.
Remark 15.1
With the notations of the proof of Theorem A, if and can also be shown using the functional equation (3.4).
Proof
We prove this by induction on . By definition of T, we have . (We have thus does not actually occur.) If , then by induction hypothesis.
We add to (3.4) and get
Multiplication by from the left yields
As and , the Dirichlet series is analytic in by Theorem D. It is therefore legitimate to set in the above equation. We use the induction hypothesis that as well as the fact that (note that v(0) is a right eigenvector of to the eigenvalue 1; see Sect. 7.1) for to get
because all binomial coefficients vanish.
Proof of Proposition 6.4
Proof of Proposition 6.4
We set
with the motive that
holds for . This implies that for , the pth root of unity runs through the elements of such that . Then
We set
thus is a p-periodic function.
For the Fourier series expansion, we get
![]() |
Replacing by leads to the Fourier series claimed in the proposition.
Part IV: Computational Aspects
The basic idea for computing the Fourier coefficients is to use the functional equation in Theorem D. This part describes in detail how this is done. We basically follow an approach found in Grabner and Hwang [25] and Grabner and Heuberger [23], but provide error bounds.
An actual implementation is also available; SageMath [38] code can be found at https://gitlab.com/dakrenn/regular-sequence-fluctuations . We use the Arb library [33] (more precisely, its SageMath bindings) for ball arithmetic which keeps track of rounding errors such that we can be sure about the precision and accuracy of our results.
We use the results of this part to compute Fourier coefficients for our examples, in particular for esthetic numbers (Sect. 9) and Pascal’s rhombus (Sect. 10).
Strategy for Computing the Fourier Coefficients
The computation of the Fourier coefficients relies on the evaluation of Dirichlet series at certain points . It turns out to be numerically preferable to split up the sum as
for some suitable (see Sect. 18.2), compute the sum of the first summands directly and evaluate as it is described in the following.
For actually computing the Fourier coefficients, we use a formulation in terms of a residue; for instance, see (3.6) where this is formulated explicitly in the set-up of Theorem A. As said, we will make use of the functional equation (6.3) for the matrix-valued Dirichlet series with its right-hand side, the matrix-valued Dirichlet series .
Let us make this explicit for a simple eigenvalue of C and a corresponding eigenvector w. Then and (6.3) can be rewritten as
Thus, has simple poles at for all , where . By (6.7) and (6.9) of Theorem E (with and ), the th Fourier coefficient is given by the residue
Note that is the derivative of with respect to s evaluated at the pole .
By (6.4), is expressed in terms of an infinite sum containing for . We truncate this sum and bound the error; this is the aim of Sect. 18.1 and in particular Lemma 18.2. We can iterate the above idea for the shifted Dirichlet series which leads to a recursive evaluation scheme. Note that once we have computed , we get by solving a system of linear equations.
Details on the Numerical Computation
Bounding the Error
We need to estimate the approximation error which arises if the infinite sum over in (6.4) is replaced by a finite sum. It is clear that for large and , the value will approximately be of the size of its first summand . In view of
, this will be rather small. We give a precise estimate in a first lemma.
Lemma 18.1
Let and let . For , we have
Proof
By definition of M, we have . Therefore, we have
where we interpret the sum as a lower Riemann sum of the integral.
We now give a bound for the approximation error in (6.4).
Lemma 18.2
Let and M as in Lemma 18.1. Let and be such that .
Then
Proof
We set
and need to estimate .
By definition of , we have
Thus we have
For , Taylor’s theorem (or induction on using integration by parts) implies that
For , we can bound from above by 1 since we have assumed that . Thus
Thus we obtain the bound
Bounding the remaining Dirichlet series by Lemma 18.1 yields the result.
Choices of Parameters
As mentioned at the beginning of this part, we choose the Arb library [33] for reliable numerical ball arithmetic. In our examples (esthetic numbers in Sect. 9 and Pascal’s rhombus in Sect. 10), we choose and recursively compute for by (6.4). In each step, we keep adding summands for until the bound of the approximation error in Lemma 18.2 is smaller than the smallest increment which can still be represented with the chosen number of bits. For plotting the graphs, we simply took machine precision; for the larger number of significant digits in Table 2, we used 128 bits precision.
Non-vanishing Coefficients
Using reliable numerical arithmetic for the computations (see above) yields small balls in which the true value of the Fourier coefficients is. If such a ball does not contain zero, we know that the Fourier coefficient does not vanish. If the ball contains zero, however, we cannot decide whether the Fourier coefficient vanishes. We can only repeat the computation with higher precision and hope that this will lead to a decision that the coefficient does not vanish, or we can try to find a direct argument why the Fourier coefficient does indeed vanish, for instance using the final statement of Theorem B (3).
Vanishing Fourier coefficients appear in our introductory Example 3.1: In its continuation (Example 3.3) an alternative approach is used to compute these coefficients explicitly symbolically. In this way a decision for them being zero is possible. The same is true for the example of transducers in Sect. 8.
It should also be noted that in the analysis of esthetic numbers (example in Sect. 9) we could have modelled the problem by a complete transducer (by just introducing a sink) and then applied the results of Sect. 8. This would have led to an asymptotic expansion where the fluctuations of the main term (corresponding to the eigenvalue q) would in fact have vanished, but an argument would have been needed. So we chose a different approach in Sect. 9 to avoid this problem. There the eigenvalue q does no longer occur. This implies that the fluctuations for q of the transducer approach vanish. Note also that half of the remaining fluctuations still turn out to vanish: this is shown in the proof of Corollary G.
Acknowledgements
Open access funding provided by University of Klagenfurt.
Footnotes
In the standard literature [2, 3] these sequences are called k-regular sequences (instead of q-regular sequences).
The code accompanying this article can be found at https://gitlab.com/dakrenn/regular-sequence-fluctuations . It is meant to be used with the open source mathematics software SageMath [38].
We use a functional notation for sequences, i.e., a sequence x on is seen as function .
Whenever we write that is the q-ary digit expansion of n, we mean that for , and . In particular, the q-ary expansion of zero is the empty word.
Note that the summatory function X(N) contains the summand x(0) but the Dirichlet series cannot. This is because the choice of including x(0) into X(N) will lead to more consistent results.
We use the notion of singular expansion as defined by Flajolet, Gourdon and Dumas [17, Definition 2]: it is the formal sum of the principal parts of a meromorphic function over all poles in the domain given.
If , then the matrix is singular. In that case, will never be used.
Chebyshev polynomials are frequently occurring phenomena in lattice path analysis, see for instance [7, 16]. We have such a lattice path here, so their appearance is not surprising.
Up to replacing 2X by X, the polynomials used here correspond to the polynomials used in [8].
Note that and are indeed true.
C. Heuberger and D. Krenn are supported by the Austrian Science Fund (FWF): P 28466-N35.
The extended abstract [30] (with appendices containing proofs available as arXiv:1802.03266) imposes a restriction on the asymptotic growth. The extended abstract [29] (with appendices containing proofs available as arXiv:1808.00842) lifts this restriction by completely getting rid of the corresponding technical condition. This article now contains the full (majorly restructured) proof covering all cases. It is shorter and simpler. We now use a generating functions approach which also gives additional insights. For example, the cancellations in the proof in [30] seem to be a kind of magic at that point, but with the new approach, it is now clear and no surprise anymore that they have to appear. Besides, the examples investigated in [29, 30] are now presented with full details. A new part on computational aspects of the computation of Fourier coefficients is added. Reading strategies for various interests are now outlined in Part I so that readers find their ways through this article.
The authors thank Helmut Prodinger for his early involvement and Sara Kropf for her comments on an early version of this paper.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Contributor Information
Clemens Heuberger, Email: clemens.heuberger@aau.at.
Daniel Krenn, Email: math@danielkrenn.at, Email: daniel.krenn@aau.at.
References
- 1.Allouche J-P, Mendès France M, Peyrière J. Automatic Dirichlet series. J. Number Theory. 2000;81(2):359–373. doi: 10.1006/jnth.1999.2487. [DOI] [Google Scholar]
- 2.Allouche J-P, Shallit J. The ring of -regular sequences. Theor. Comput. Sci. 1992;98(2):163–197. doi: 10.1016/0304-3975(92)90001-V. [DOI] [Google Scholar]
- 3.Allouche J-P, Shallit J. Automatic Sequences: Theory, Applications, Generalizations. Cambridge: Cambridge University Press; 2003. [Google Scholar]
- 4.Allouche J-P, Shallit J. The ring of -regular sequences, II. Theor. Comput. Sci. 2003;307(1):3–29. doi: 10.1016/S0304-3975(03)00090-2. [DOI] [Google Scholar]
- 5.Berthé V, Lhote L, Vallée B. Probabilistic analyses of the plain multiple gcd algorithm. J. Symb. Comput. 2016;74:425–474. doi: 10.1016/j.jsc.2015.08.007. [DOI] [Google Scholar]
- 6.Berthé V, Rigo M, editors. Combinatorics, Automata and Number Theory. Encyclopedia of Mathematics and Its Applications. Cambridge: Cambridge University Press; 2010. [Google Scholar]
- 7.de Bruijn NG, Knuth DE, Rice SO. The Average Height of Planted Plane Trees, Graph Theory and Computing. New York: Academic Press; 1972. pp. 15–22. [Google Scholar]
- 8.De Koninck J-M, Doyon N. Esthetic numbers. Ann. Sci. Math. Québec. 2009;33(2):155–164. [Google Scholar]
- 9.Delange H. Sur la fonction sommatoire de la fonction “somme des chiffres”. Enseign. Math. (2) 1975;21:31–47. [Google Scholar]
- 10.Drmota, M., Grabner, P.J.: Analysis of digital functions and applications, Combinatorics, automata and number theory (Valérie Berthé and Michel Rigo (eds.), Encyclopedia Math. Appl., vol. 135, pp. 452–504, Cambridge University Press, Cambridge (2010)
- 11.Drmota M, Szpankowski W. A master theorem for discrete divide and conquer recurrences. J. ACM. 2013;60(3):16. doi: 10.1145/2487241.2487242. [DOI] [Google Scholar]
- 12.Dumas P. Joint spectral radius, dilation equations, and asymptotic behavior of radix-rational sequences. Linear Algebra Appl. 2013;438(5):2107–2126. doi: 10.1016/j.laa.2012.10.013. [DOI] [Google Scholar]
- 13.Dumas P. Asymptotic expansions for linear homogeneous divide-and-conquer recurrences: algebraic and analytic approaches collated. Theor. Comput. Sci. 2014;548:25–53. doi: 10.1016/j.tcs.2014.06.036. [DOI] [Google Scholar]
- 14.Dumas P, Lipmaa H, Wallén J. Asymptotic behaviour of a non-commutative rational series with a nonnegative linear representation. Discrete Math. Theor. Comput. Sci. 2007;9(1):247–272. [Google Scholar]
- 15.Fekete M. Über die Verteilung der Wurzeln bei gewissen algebraischen Gleichungen mit ganzzahligen Koeffizienten. Math. Z. 1923;17:228–249. doi: 10.1007/BF01504345. [DOI] [Google Scholar]
- 16.Flajolet P. Combinatorial aspects of continued fractions. Discrete Math. 1980;32(2):125–161. doi: 10.1016/0012-365X(80)90050-3. [DOI] [Google Scholar]
- 17.Flajolet P, Gourdon X, Dumas P. Mellin transforms and asymptotics: harmonic sums. Theor. Comput. Sci. 1995;144:3–58. doi: 10.1016/0304-3975(95)00002-E. [DOI] [Google Scholar]
- 18.Flajolet P, Grabner P, Kirschenhofer P, Prodinger H, Tichy RF. Mellin transforms and asymptotics: digital sums. Theor. Comput. Sci. 1994;123:291–314. doi: 10.1016/0304-3975(92)00065-Y. [DOI] [Google Scholar]
- 19.Flajolet P, Odlyzko A. Singularity analysis of generating functions. SIAM J. Discrete Math. 1990;3:216–240. doi: 10.1137/0403019. [DOI] [Google Scholar]
- 20.Godsil CD, Royle G. Algebraic Graph Theory, Graduate Texts in Mathematics. New York: Springer; 2001. [Google Scholar]
- 21.Goldwasser J, Klostermeyer W, Mays M, Trapp G. The density of ones in Pascal’s rhombus. Discrete Math. 1999;204(1–3):231–236. doi: 10.1016/S0012-365X(98)00373-2. [DOI] [Google Scholar]
- 22.Goč Daniel, Mousavi Hamoon, Shallit Jeffrey. Language and Automata Theory and Applications. Berlin, Heidelberg: Springer Berlin Heidelberg; 2013. On the Number of Unbordered Factors; pp. 299–310. [Google Scholar]
- 23.Grabner PJ, Heuberger C. On the number of optimal base 2 representations of integers. Des. Codes Cryptogr. 2006;40(1):25–39. doi: 10.1007/s10623-005-6158-y. [DOI] [Google Scholar]
- 24.Grabner PJ, Heuberger C, Prodinger H. Counting optimal joint digit expansions. Integers. 2005;5(3):A9. [Google Scholar]
- 25.Grabner PJ, Hwang H-K. Digital sums and divide-and-conquer recurrences: Fourier expansions and absolute convergence. Constr. Approx. 2005;21:149–179. doi: 10.1007/s00365-004-0561-x. [DOI] [Google Scholar]
- 26.Graham RL, Knuth DE, Patashnik O. Concrete Mathematics. A Foundation for Computer Science. 2. Reading: Addison-Wesley; 1994. [Google Scholar]
- 27.Hardy GH, Riesz M. The General Theory of Dirichlet’s Series. Cambridge Tracts in Mathematics and Mathematical Physics. Cambridge: Cambridge University Press; 1915. [Google Scholar]
- 28.Hardy GH, Wright EM. An Introduction to the Theory of Numbers. 4. Oxford: University Press; 1975. [Google Scholar]
- 29.Heuberger Clemens, Krenn Daniel. 2019 Proceedings of the Sixteenth Workshop on Analytic Algorithmics and Combinatorics (ANALCO) Philadelphia, PA: Society for Industrial and Applied Mathematics; 2019. Esthetic Numbers and Lifting Restrictions on the Analysis of Summatory Functions of Regular Sequences; pp. 27–35. [Google Scholar]
- 30.Heuberger, C., Krenn, D., Prodinger, H.: Analysis of summatory functions of regular sequences: transducer and Pascal’s rhombus. In: Fill, J.A., Ward, M.D. (eds.) Proceedings of the 29th International Conference on Probabilistic, Combinatorial and Asymptotic Methods for the Analysis of Algorithms, Leibniz International Proceedings in Informatics (LIPIcs), vol. 110, Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik, pp. 27:1–27:18 (2018)
- 31.Heuberger C, Kropf S, Prodinger H. Output sum of transducers: limiting distribution and periodic fluctuation. Electron. J. Combin. 2015;22(2):1–53. [Google Scholar]
- 32.Hwang H-K, Janson S, Tsai T-H. Exact and asymptotic solutions of a divide-and-conquer recurrence dividing at half: theory and applications. ACM Trans. Algorithms. 2017;13(4):47. doi: 10.1145/3127585. [DOI] [Google Scholar]
- 33.Johansson F. Arb: efficient arbitrary-precision midpoint-radius interval arithmetic. IEEE Trans. Comput. 2017;66(8):1281–1292. doi: 10.1109/TC.2017.2690633. [DOI] [Google Scholar]
- 34.Jungers R. The Joint Spectral Radius. Theory and Applications. Lecture Notes in Control and Information Sciences. Berlin: Springer; 2009. [Google Scholar]
- 35.Lagarias JC, Wang Y. The finiteness conjecture for the generalized spectral radius of a set of matrices. Linear Algebra Appl. 1995;214:17–42. doi: 10.1016/0024-3795(93)00052-2. [DOI] [Google Scholar]
- 36.NIST Digital Library of Mathematical Functions. http://dlmf.nist.gov/. Release 1.0.16 of 2017-09-18 (2017), Olver, F.W.J., Daalhuis, A.B.O., Lozier, D.W., Schneider, B.I., Boisvert, R.F., Clark, C.W., Miller, B.R., Saunders, B.V. (eds.)
- 37.Rota G-C, Strang G. A note on the joint spectral radius. Indag. Math. 1960;22:379–381. doi: 10.1016/S1385-7258(60)50046-1. [DOI] [Google Scholar]
- 38.SageMath Developers: SageMath Mathematics Software (Version 8.3) (2018). http://www.sagemath.org
- 39.The On-Line Encyclopedia of Integer Sequences (2018). http://oeis.org
- 40.Zygmund A. Trigonometric Series. Cambridge: Cambridge University Press; 2002. [Google Scholar]




















