\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern,microtype,amsmath,amssymb,amsthm,booktabs} \usepackage[letterpaper,hmargin=1.04in,top=.88in,bottom=.9in]{geometry} \usepackage{xcolor} \definecolor{linkblue}{HTML}{14568A} \newcommand{\papertitle}{Frequencies of digit blocks in sparse Lambert sums} \usepackage[colorlinks=true,allcolors=linkblue,pdftitle={\papertitle}, pdfauthor={twinheterodox},pdfsubject={Digit frequencies of sparse Lambert sums}]{hyperref} \newtheorem{theorem}{Theorem} \newcommand{\E}{\mathbb E} \newcommand{\Prob}{\mathbb P} \newcommand{\T}{\mathbb T} \newcommand{\Z}{\mathbb Z} \newcommand{\R}{\mathbb R} \newcommand{\floor}[1]{\left\lfloor#1\right\rfloor} \newcommand{\ceil}[1]{\left\lceil#1\right\rceil} \DeclareMathOperator{\lcm}{lcm} \setlength{\emergencystretch}{1.1em} \title{\Large\bfseries\papertitle} \author{twinheterodox\\[-1pt]{\small Prepared with Codex}} \date{November 30, 2026} \begin{document} \maketitle \begin{abstract} We give the limiting frequency of every finite block in the base-\(b\) digits of \(\sum_{d\in D}(b^d-1)^{-1}\) for any integer \(b\ge2\) and any infinite set \(D\) of pairwise coprime exponents \(d\ge2\) with summable reciprocals. Every block has positive frequency, although the expansion is nonnormal. In base two, taking the prime squares as exponents gives a limiting proportion of ones between \(0.383422\) and \(0.385089\). For signed integer weights \(a_d\) with \(\sum_d |a_d|/d<\infty\), we also determine the singular limiting distribution of the shifted fractional parts, allowing arbitrary common factors among the exponents. In each irrational sum, every block that occurs has positive limiting frequency. \end{abstract} \section{What happens after carrying?}\label{sec:opening} Which digit blocks occur in a Lambert sum, and how often? We answer this in every integer base for infinite sets of pairwise coprime exponents with summable reciprocals. For a first example, take the binary expansion of \[ X=\sum_{p\ {\rm prime}}\frac{1}{2^{p^2}-1}. \] Do four zeros ever occur in a row? Do ones occupy half the positions? Each summand puts a one at every positive multiple of \(p^2\), since \((2^{p^2}-1)^{-1}=\sum_{k\ge1}2^{-kp^2}\). If we put just one mark at each occupied position, the proportion of marked positions is \(1-6/\pi^2\), about \(39.21\%\), by the density of squarefree integers \cite[\S2]{cs}. Every fourth position has a mark, so four consecutive zeros are impossible in that sequence. The sum counts both marks when \(4\) and \(9\) first meet at position \(36\). Their two copies of \(2^{-36}\) carry to position \(35\). \begin{center} \begin{tabular}{@{}l*{9}{c}@{}} \toprule Position & \(32\) & \(33\) & \(34\) & \(35\) & \(36\) & \(37\) & \(38\) & \(39\) & \(40\) \\ \midrule Marked once & 1&0&0&0&1&0&0&0&1\\ Number of marks & 1&0&0&0&\textbf{2}&0&0&0&1\\ Digit of \(X\) & 1&0&0&\textbf{1}&0&0&0&0&1\\ \bottomrule \end{tabular} \end{center} Four consecutive zeros now appear at positions \(36\) through \(39\). The same block occurs with positive frequency, as does every longer run of zeros. \begin{theorem}[Prime squares]\label{th:prime} Every finite binary word has a positive limiting frequency in the fractional digits of \(X\). If \(A(N)\) counts the ones among the first \(N\) digits, then \[ 0.383422\ \le\ \lim_{N\to\infty}\frac{A(N)}{N}\ \le\ 0.385089 . \] \end{theorem} Theorem~\ref{th:law} gives the frequency of any block in this family as a probability. For instance, \(314159\) has positive limiting frequency in the decimal expansion of \(\sum_p(10^{p^3}-1)^{-1}\). As the radix point moves, the contribution for exponent \(d\) repeats modulo one with period \(d\). The Chinese remainder theorem gives the joint distribution of any finite collection of these contributions. Summability controls the carries from the rest. \paragraph{Earlier work.} Erd\H{o}s proved the irrationality of \(\sum_{d\in D}(b^d-1)^{-1}\) for pairwise coprime exponents with \(\sum_{d\in D}1/d<\infty\) \cite[p.~222]{erdos}. For the full Erd\H{o}s--Borwein constant \(\sum_{n\ge1}(2^n-1)^{-1}\), Crandall asked whether half the binary digits are ones and whether the block \(11\) recurs infinitely often \cite[concluding questions]{crandall}. Campbell proved the recurrence of \(11\) and asked about arbitrary binary strings \cite[Theorem~1 and \S4]{campbell}. For the full series the reciprocal sum of the exponents diverges. For the once-marked sequence, Cellarosi and Sinai describe Mirsky's formula for squarefree patterns \cite{mirsky} and identify the underlying rotation on the residues modulo prime squares \cite[\S3 and Main Theorem]{cs}. El Abdalaoui, Lema\'nczyk and de la Rue use this rotation for general \(\mathcal B\)-free integers \cite[\S2.3 and Theorem~4.1]{bfree}. Here the residues determine the individual summands, whose sum modulo one incorporates the carries. Sequences with prescribed unequal digit frequencies have a separate history. Postnikov and Pyatetskii studied constructions for Bernoulli probabilities \cite{pp}, as discussed by Madritsch and Mance \cite[\S5.4]{mm}. DeLapo's ternary recoding gives an explicit binary sequence in which every word occurs and exactly one-third of the digits are ones in the limit \cite[Example~3.2 and Theorem~3.3 of the preprint]{delapo}. In Theorem~\ref{th:prime} the prime squares specify the number in advance. \paragraph{Nonnormality.} Compare digits \(K\) places apart. In a normal base-\(b\) expansion all blocks of length \(K+1\) occur equally often. A fraction \(1-1/b\) of them have different first and last digits, so the disagreement frequency is \(1-1/b\) at every fixed positive shift \(K\). Write \(\xi_n\) for the \(n\)th fractional digit of the Lambert sum with coprime exponents \(d_1,d_2,\ldots\). Shifting by \(K_j=\lcm(d_1,\ldots,d_j)\) places returns the first \(j\) summands to the same phases. For the prime squares these shifts begin \(4,36,900,\ldots\). Every finite block occurs, yet along these shifts the limiting frequency of disagreements tends to zero. Section~\ref{sec:law} proves that \begin{equation}\label{eq:repeat} \lim_{j\to\infty}\lim_{N\to\infty} \frac{\#\{1\le n\le N:\xi_n\ne\xi_{n+K_j}\}}{N}=0 . \end{equation} \section{Why fewer than half are ones}\label{sec:half} Moving the point \(n\) places in base \(b\) multiplies a number by \(b^n\). For the summand with exponent \(d\), write \([n]_d\) for the least nonnegative residue of \(n\) modulo \(d\), and put \[ g_d(n)=\frac{b^{[n]_d}}{b^d-1}. \] Then \(b^n/(b^d-1)\equiv g_d(n)\pmod1\). The values of \(g_d\) increase through one period, then repeat. The mean of a complete period is \(1/[d(b-1)]\). A prefix consists of complete periods and the smallest entries of the next period. Thus for every \(N\ge1\), \begin{equation}\label{eq:prefix} \frac1N\sum_{n=0}^{N-1}g_d(n)\ \le\ \frac{1}{d(b-1)} . \end{equation} \newpage Take \(b=2\), and let \(x_n=\{2^n X\}\), where braces denote the fractional part. The next digit is \(\lfloor2x_n\rfloor=2x_n-x_{n+1}\). Also \(x_n=\{\sum_p g_{p^2}(n)\}\le\sum_p g_{p^2}(n)\). For fixed \(n\), all summands with \(p^2>n\) already equal their unmodified values \(2^n/(2^{p^2}-1)\), which justifies the infinite sum modulo one. Summing the digit identity and applying \eqref{eq:prefix} yields \begin{equation}\label{eq:simple} \frac{A(N)}{N}=\frac1N\sum_{n=0}^{N-1}x_n+\frac{x_0-x_N}{N} \ \le\ \sum_p\frac1{p^2}+\frac1N . \end{equation} The prime \(2\) contributes \(1/4\). All odd integers \(2k+1\ge3\) together contribute less than \(\sum_{k\ge1}1/[4k(k+1)]=1/4\), since \((2k+1)^2>4k(k+1)\). It follows already that \(\limsup_N A(N)/N<1/2\). We next show why this proportion, and the proportion for every longer word, actually converges. \section{The digit law for coprime exponents}\label{sec:law} Fix an integer \(b\ge2\) and an infinite set \(D\) of pairwise coprime integers \(d\ge2\) with \(\sum_{d\in D}1/d<\infty\). Set \[ S_D=\sum_{d\in D}\frac1{b^d-1}. \] A base-\(b\) word \(w=w_1\ldots w_h\) specifies the half-open interval \(I_w=[m/b^h,(m+1)/b^h)\), where \(m=\sum_{j=1}^h w_jb^{h-j}\). The word starts at digit \(n+1\) exactly when \(\{b^n S_D\}\in I_w\), using the terminating expansion at an endpoint. Frequencies count overlapping occurrences. \begin{theorem}\label{th:law} For each \(d\in D\), choose \(R_d\) independently and uniformly from \(\{0,\ldots,d-1\}\). Put \begin{equation}\label{eq:random} U=\sum_{d\in D}\frac{b^{R_d}}{b^d-1},\qquad V=\{U\}. \end{equation} The fractional parts \(\{b^n S_D\}\) have limiting distribution equal to the law \(\mu\) of \(V\) on the circle \(\T=\R/\Z\). This law is singular continuous and has full support. Every finite word \(w\) has limiting frequency \(\Prob(V\in I_w)>0\), and \(S_D\) is nonnormal in base \(b\). \end{theorem} \begin{proof} \emph{From finite periods to the limit.} Each term in \eqref{eq:random} has mean \(1/[d(b-1)]\), so \(U\) is finite almost surely. For a finite set \(E\subset D\), the Chinese remainder theorem identifies one period of \(([n]_d)_{d\in E}\) with the whole product of residue sets, each tuple occurring once. This is precisely the joint law of \((R_d)_{d\in E}\). For the omitted exponents, \eqref{eq:prefix} bounds the mean of their sum along \emph{every} prefix by \(\sum_{d\in D\setminus E}1/[d(b-1)]\). The same bound holds in expectation for the random series. Testing against a Lipschitz function on the circle, each truncation error is at most this bound times its Lipschitz constant. First let the prefix length tend to infinity and then exhaust \(D\) by finite sets \(E\). This proves weak convergence to \(\mu\). \emph{Positive frequency for every word.} One independent summand takes \(d\) distinct values on the circle, each of probability \(1/d\). Conditioning on all other summands therefore bounds every atom of \(\mu\) by \(1/d\). The exponents are unbounded, so \(\mu\) is atomless. Start with all residues equal to zero, which gives \(S_D\). Any finite modification of these residues gives a point of the support modulo one. Indeed, prescribe the modified residues and fix all other residues through a large cutoff at zero. This event has positive probability. The remaining independent tail has arbitrarily small mean, so with positive conditional probability it is arbitrarily small. The corresponding all-zero tail is small as well. Changing a fresh residue from \(0\) to \(d-j\), for fixed \(j\ge1\) and \(d>j\), changes the sum by \[ \frac{b^{d-j}-1}{b^d-1}\ \longrightarrow\ b^{-j} \qquad(d\to\infty,\ d\in D). \] To approximate a finite base-\(b\) fraction \(\sum_{j=1}^h c_jb^{-j}\), use \(c_j\) distinct large exponents for the \(j\)th digit, choosing fresh exponents at each position. The support is closed, so it contains every such translate of \(S_D\). These translates are dense. Every word interval consequently has positive measure, and atomlessness gives zero measure to its endpoints. Weak convergence now proves the frequency assertion. \emph{Singularity.} Adding one simultaneously to all residues preserves their joint law and multiplies \(V\) by \(b\) modulo one. This follows first for each summand, then for the almost surely convergent sums. Fix \(K\ge1\). Adding \(K\) leaves the summands with \(d\mid K\) unchanged. Write \(\widehat\mu(t)=\E\exp(2\pi i tV)\) for integer \(t\). Comparing the two real sums before and after this translation, and using \(\lvert e^{2\pi i u}-1\rvert\le2\pi|u|\), gives \begin{equation}\label{eq:fourier} \big|1-\widehat\mu(b^K-1)\big| \ \le\ \frac{4\pi}{b-1}\sum_{\substack{d\in D\\d\nmid K}}\frac1d . \end{equation} Take \(K\) to be the least common multiple of successively more exponents. The right side tends to zero. An absolutely continuous component of mass \(c>0\) would have Fourier coefficients tending to zero by the Riemann--Lebesgue lemma, leaving limiting upper bound \(1-c\) for \(|\widehat\mu(b^K-1)|\). Thus \(\mu\) is singular. The intervals \(I_w\) determine a probability measure, so their probabilities cannot all equal their lengths \(b^{-|w|}\). This proves nonnormality. \end{proof} \paragraph{Proof of the shift limit \eqref{eq:repeat}.} For fixed \(K\ge1\), disagreement is a union of intervals for words of \(K+1\) digits, so its frequency equals the corresponding probability for \(V\). For \(K_j=\lcm(d_1,\ldots,d_j)\), the comparison preceding \eqref{eq:fourier} bounds the mean circle distance between \(V\) and \(b^{K_j}V\) by \(2(b-1)^{-1}\sum_{d\nmid K_j,\,d\in D}1/d\), which tends to zero. Their first digits agree whenever this distance is smaller than the distance of \(V\) to the nearest boundary \(k/b\). Atomlessness makes the probability of lying within \(\varepsilon\) of a boundary tend to zero with \(\varepsilon\), proving \eqref{eq:repeat}. For independent binary digits with probability \(q\) of a one, the disagreement probability would be \(2q(1-q)\) at every positive lag. \section{Certifying the frequency of ones}\label{sec:cert} For the rest of this section \(b=2\) and \(D=\{p^2:p\text{ prime}\}\). Theorem~\ref{th:law} gives positive limiting frequencies for all words. To compute the frequency \(\nu_1\) of the word \(1\), we need just one expectation. The variables \(V\) and \(\{2V\}\) have the same law, so \(\E\lfloor2V\rfloor=2\E V-\E\{2V\}=\E V\). Hence \begin{equation}\label{eq:ones} \nu_1=\E\{U\}=\sum_p\frac1{p^2}-\E\lfloor U\rfloor . \end{equation} Equation~\eqref{eq:ones} subtracts the expected number of whole units carried out of the fractional part. The count for one realization is \(\lfloor U\rfloor\). When \(R_4=3\) and \(R_9=8\), the two contributions alone give \(8/15+256/511>1\). This event has probability \(1/36\), so \(1/36\le \E\lfloor U\rfloor\le \E U=\sum_p p^{-2}<1/2\). To account for all the primes, we enclose \(\E\{U\}\) on a finite grid. \paragraph{Rounding the summands.} Put \(M=2^{14}\), \(P=12\,000\), \(L=500\,000\) and \(H=2^{46}\). For \(d=p^2\), write \(Y_d=2^{R_d}/(2^d-1)\). On the same probability space define \[ Z=M^{-1}\sum_{p\le P}\lfloor MY_{p^2}\rfloor,\qquad R=U-Z\ge0 . \] Since \(M\) is a power of two, taking \(\{MY_d\}\) just shifts \(R_d\) cyclically. The mean loss from rounding this coordinate is exactly \(1/(Md)\). An omitted coordinate has mean \(1/d\). By \(\sum_p p^{-2}<1/2\) and \(\sum_{n>L}n^{-2}\le1/L\), \begin{equation}\label{eq:error} \E R\le\eta=\frac{1}{2M}+\frac{B}{H}+\frac1L,\qquad B=\sum_{P
14\) there are just fourteen
nonzero shifts \(2^i\), \(0\le i<14\), each once. They come from
\(r=d-14+i\). The other residues give zero.
For \(d=4,9\) one may enumerate all residues.
Rounding down in \eqref{eq:convolve} gives, by induction,
\(C_j/H\le\Prob(\{Z\}=j/M)\) after the last prime. Thus the total missing
mass \(\delta=1-H^{-1}\sum_j C_j\) bounds the error of any grid
expectation with values in \([0,1]\). Set
\[
m=\frac{\sum_{j=0}^{M-1}jC_j}{MH},\qquad
t_w=\frac1H\sum_{j=M-w}^{M-1}C_j,\qquad w=682 .
\]
Adding \(R\) can decrease \(\{Z\}\) only if the sum crosses an integer.
Such a crossing requires \(\{Z\}\ge1-w/M\) or \(R\ge w/M\).
The first event has probability at most \(t_w+\delta\), and Markov's
inequality bounds the second by \(M\eta/w\). The decrease is at most
one, and any increase is at most \(R\). We conclude that
\begin{equation}\label{eq:enclosure}
m-t_w-\delta-\frac{M\eta}{w}
\ \le\ \nu_1\ \le\ m+\delta+\eta .
\end{equation}
\begin{center}
\begin{tabular}{@{}lr@{}}
\toprule
Quantity in the enclosure & Exact integer \\
\midrule
Missing mass units \(H-\sum_j C_j\) & \(11\,623\,950\) \\
Weighted grid count \(\sum_j jC_j\) & \(443\,929\,954\,002\,424\,257\) \\
Count in the last \(w\) cells \(Ht_w\) & \(46\,017\,897\,314\) \\
Rounded tail units \(B\) & \(558\,038\,040\) \\
\bottomrule
\end{tabular}
\end{center}
Substitution in \eqref{eq:enclosure} and outward rounding to millionths
give the two bounds in Theorem~\ref{th:prime}. From the source directory,
\texttt{python3 checks/certify\_frequency.py} reproduces the table.
\newpage
\section{Signed weights and overlapping exponents}\label{sec:signed}
For exponents \(4\) and \(6\), the residues of one integer must have
the same parity. The phases are then dependent, but one can still
average them by sampling \emph{compatible} residues. Let \(x\) be
uniform on the profinite integers \(\widehat{\Z}\). This means that
on any finite list of moduli we take one uniform residue modulo their
least common multiple and reduce it at each modulus in the list.
\begin{theorem}\label{th:signed}
Let \(b\ge2\) be an integer and \(a_d\in\Z\) satisfy
\(\sum_{d\ge1}|a_d|/d<\infty\). Put \(X_a=\sum_{d\ge1}a_d/(b^d-1)\).
The fractional parts \(\{b^nX_a\}\) have a singular limiting distribution
given by the fractional part of
\[
F(x)=\sum_{d\ge1}a_d\,\frac{b^{[x]_d}}{b^d-1}.
\]
Its support is the closure of the forward orbit of \(X_a\) modulo one.
It is atomless if and only if \(X_a\) is irrational. In that case
every word occurring in \(X_a\) has positive limiting frequency, and
\(X_a\) is nonnormal in base \(b\).
\end{theorem}
\begin{proof}
The absolute mean of the \(d\)th term is \(|a_d|/[d(b-1)]\), so \(F\)
converges absolutely almost surely. On any finite set of moduli
the compatible residues have exactly the period law. The truncation
argument using \eqref{eq:prefix} applies with \(|a_d|\) in the tail,
giving weak convergence. Translation by one multiplies \(F\bmod1\)
by \(b\), since the \(a_d\) are integers. The proof of \eqref{eq:fourier}
now gives the bound \(4\pi(b-1)^{-1}\sum_{d\nmid K}|a_d|/d\).
Taking \(K=\lcm(1,\ldots,J)\) proves singularity.
We must check that the starting point belongs to the support. Condition
on \(x\equiv0\pmod M\), where \(M=\lcm(1,\ldots,J)\). For
\(g=\gcd(d,M)\) the residue \([x]_d\) is uniform on the multiples of
\(g\) in \([0,d)\). Summing the geometric progression gives
\[
\E\bigl(g_d(x)\mid x\equiv0\pmod M\bigr)
=\frac{g}{d(b^g-1)}\le\frac1{d(b-1)} .
\]
This zero-residue mean also occurs in Cook's averaging proof
\cite[Appendix~A]{cook}. The first \(J\) terms agree with those of
\(X_a\), and \(1/(b^d-1)\le1/[d(b-1)]\). The conditional mean of
\(|F-X_a|\) is consequently at most
\(2(b-1)^{-1}\sum_{d>J}|a_d|/d\). It follows that every neighborhood
of \(X_a\bmod1\) has positive measure. Invariance and continuity of
multiplication by \(b\) put the forward orbit in the support. The
reverse inclusion follows from weak convergence of the orbit averages.
Translation by one on \(\widehat{\Z}\) cycles through each finite quotient.
Since functions of the finite quotients are dense in \(L^2\), the translation
is ergodic. Its factor on the circle is also ergodic. If the law
has an atom of mass \(c>0\), each of its forward images has mass at
least \(c\), so the images reach a finite cycle. The cycle has positive
measure and is invariant up to a null set, since its preimage has the
same measure and contains it. Ergodicity gives the cycle full measure.
All its points are rational, and its support contains \(X_a\bmod1\).
Conversely a rational \(X_a\) has a finite forward orbit. For irrational
\(X_a\), the word intervals have null boundaries, and every word that
occurs has an orbit point in the interior of its interval. The support
identity gives that interval positive measure. Singularity again
implies nonnormality.
\end{proof}
The rationality criterion of \cite[Theorem~1]{sparse} identifies the
irrational case in Theorem~\ref{th:signed} precisely with infinite
coefficient support. The once-marked sequence from Section~\ref{sec:opening} illustrates
why this theorem speaks of words \emph{that occur}. With \(\mu_{\rm M}\)
the M\"obius function, its real value is
\[
\sum_{\substack{n\ge1\\p^2\mid n\ {\rm for\ some}\ p}}2^{-n}
=-\sum_{k\ge2}\frac{\mu_{\rm M}(k)}{2^{k^2}-1},
\]
by \(\sum_{k^2\mid n}\mu_{\rm M}(k)=\mathbf1_{\{n\ {\rm squarefree}\}}\).
The weights satisfy the summability hypothesis, and \(0000\) is absent.
\section*{Verification}
The digits shown in Section~\ref{sec:opening} can be checked with three
fractions. Put \(T=1/15+1/511+1/(2^{25}-1)\).
The remaining exponents are at least \(49\), so
\(0