English

Complexity of Leading Digit Sequences

Number Theory 2023-06-22 v5

Abstract

Let Sa,bS_{a,b} denote the sequence of leading digits of ana^n in base bb. It is well known that if aa is not a rational power of bb, then the sequence Sa,bS_{a,b} satisfies Benford's Law; that is, digit dd occurs in Sa,bS_{a,b} with frequency logb(1+1/d)\log_{b}(1+1/d), for d=1,2,,b1d=1,2,\dots,b-1. In this paper, we investigate the \emph{complexity} of such sequences. We focus mainly on the \emph{block complexity}, pa,b(n)p_{a,b}(n), defined as the number of distinct blocks of length nn appearing in Sa,bS_{a,b}. In our main result we determine pa,b(n)p_{a,b}(n) for all squarefree bases b5b\ge 5 and all rational numbers a>0a>0 that are not integral powers of bb. In particular, we show that, for all such pairs (a,b)(a,b), the complexity function pa,b(n)p_{a,b}(n) is \emph{affine}, i.e., satisfies pa,b(n)=ca,bn+da,bp_{a,b}(n)=c_{a,b} n + d_{a,b} for all n1n\ge1, with coefficients ca,b1c_{a,b}\ge1 and da,b0d_{a,b}\ge0, given explicitly in terms of aa and bb. We also show that the requirement that bb be squarefree cannot be dropped: If bb is not squarefree, then there exist integers aa with 1<a<b1<a<b for which pa,b(n)p_{a,b}(n) is not of the above form. We use this result to obtain sharp upper and lower bounds for pa,b(n)p_{a,b}(n), and to determine the asymptotic behavior of this function as bb\to\infty through squarefree values. We also consider the question which linear functions p(n)=cn+dp(n)=cn+d arise as the complexity function pa,b(n)p_{a,b}(n) of some leading digit sequence Sa,bS_{a,b}. We conclude with a discussion of other complexity measures for the sequences Sa,bS_{a,b} and some open problems.

Keywords

Cite

@article{arxiv.1804.00221,
  title  = {Complexity of Leading Digit Sequences},
  author = {Xinwei He and A. J. Hildebrand and Yuchen Li and Yunyi Zhang},
  journal= {arXiv preprint arXiv:1804.00221},
  year   = {2023}
}
R2 v1 2026-06-23T01:10:37.173Z