Champernowne constants in integer bases

edit · history · discussion · files · long url · normal number radix expansion number theory
Numbers
$b$ 
$C_b$
2:
0.8622401258680545715577902832493945785657647427682990945160712145573067405905164580420384414386181334
3:
0.5989581675384339925001722179294365909782087686761059367547860754796518419528084205540721108052796416
4:
0.4261111111111110657645565714201619850955462389672304106827916351725875535399344923154446963970773495
5:
0.3107361111111111111111111111109630333116049448491155046826222684703433922996878251821019771071800208
6:
0.2398626858150667674477198286722096245905769715293502137606931956315765834377548305078041572509274297
7:
0.1944355350862405214758400930829085764529329710504221124795885312336790887394035663970851865088612762
8:
0.1632648121052167973670949861426051902242378432854623330813807004283194759385235575711766187956664147
9:
0.1406249761196967824796690089356631832654570832468284866575551712754149148781854952436446901495702774
10:
0.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253546
11:
0.1099999999607415190770470554749704816736562437828717530933367747705288495119358250240147314428085655
12:
0.09917355371764191570052602524360304760060468458152164477846112169721801973409533659069217246750732926
13:
0.09027777777773430375880870449077154377122910386370075018963403212081116367877467006261109315644154920
14:
0.08284023668638925876304002083840539043340946833784136542605172848997102828229863316796497314507277167
15:
0.07653061224489792460178894689700485371393067906617186513059916020653229218512772365141946821084970273
16:
0.07111111111111111023650635238102816173470923186540145316705113417916186082276047673971549404075355632
Definition
The Champernowne constant $C_b$ is the real number in $(0,1)$ obtained by concatenating the usual base-$b$ expansions of the positive integers $1,2,3,\ldots$ after the radix point, and reading the resulting fraction in base $b$; see [2], Definition 2.
Parameters
$b$
—   integer ($b\geq2$)
Formulas
(1)
For $n\geq1$, let $\ell_b(n)$ be the unique positive integer satisfying $b^{\ell_b(n)-1}\leq n<b^{\ell_b(n)}$, and set $L_n=\sum_{j=1}^{n}\ell_b(j)$. Then $C_b=\sum_{n=1}^{\infty}n\,b^{-L_n}$.
(2)
Let $A_0=0$ and $A_n=A_{n-1}b^{\ell_b(n)}+n$ for $n\geq1$. The complete prefix ending at integer $n$ gives $\displaystyle \frac{A_n}{b^{L_n}}\leq C_b\leq\frac{A_n+1}{b^{L_n}}$.
Comments
(3)
Each integer is written most significant digit first, without leading zeros, separators or padding. The sequence starts at $1$; no initial zero term is inserted. For example, $C_2=0.1\,10\,11\,100\,101\,110\,111\,1000\ldots{}_2$. The spaces here only separate integer blocks.
(4)
Changing $b$ changes the constructed real number. The stored values are decimal enclosures of those reals, rather than their strings of base-$b$ digits. The decimal member begins $C_{10}=0.123456789101112131415\ldots$; see [3].
(5)
$C_b$ is normal in its construction base $b$: every block of $k$ digits has limiting frequency $b^{-k}$ for every integer $k\geq1$. This follows by applying the theorem of [1], p. 857, to the sequence of all positive integers. This statement concerns each number in its construction base.
Programs
(P1)
Sage
import numberdb.sage as numberdb
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
from sage.rings.real_mpfi import RealIntervalField

def champernowne(b, digits=100):
    b = ZZ(b)
    if b < 2:
        raise ValueError("b must be an integer at least 2")
    A, D, n, k, next_power = ZZ(0), ZZ(1), ZZ(0), 1, b
    while D <= ZZ(10)**(digits + 15):
        n += 1
        while n >= next_power:
            k += 1
            next_power *= b
        A = A * b**k + n
        D *= b**k
    R = RealIntervalField(max(512, numberdb.bits(digits, losing=128)))
    return R(QQ(A)/D, QQ(A+1)/D)

champernowne(10)  # an enclosure of C_10
References
[1]
Arthur H. Copeland and Paul Erdős, Note on normal numbers, Bulletin of the American Mathematical Society 52 (1946), 857–860. (doi)
[2]
John K. Sikora, Analysis of the High Water Mark Convergents of Champernowne's Constant in Various Bases (2014), section 2, Definition 2. (arXiv)
Links
Similar tables
Copeland–Erdős constants in integer bases —   uses the increasing primes in place of all positive integers, with the same construction-radix convention
Data properties
Entries are of type: real number
How they were obtained:

Complete integer blocks were accumulated with exact integer arithmetic until $b^{L_n}>10^{115}$. Any continuation changes the prefix by at most $b^{-L_n}$, since $(b-1)\sum_{j>L_n}b^{-j}=b^{-L_n}$. Both exact rational endpoints were converted outward using MPFI at 512 bits. Every resulting enclosure is contained in its stored 100-significant-digit decimal interval.

more

A separate implementation locates each digit from the cumulative counts $\sum_{j=1}^{k}j(b-1)b^{j-1}$. It checked every generated prefix in bases 2 through 16 and containment in every serialized interval. Controls included the first 150 decimal digits from [3], the initial binary blocks, transitions at $b$ and $b^2$, exact repeating-digit streams, and deliberately corrupted data. The attached code and results retain the checks.

Table is complete: no (it contains every construction radix $2\leq b\leq16$, a contiguous small-radix reference range including binary, ternary, octal, decimal and hexadecimal. The upper bound is a practical coverage choice; larger integer radices remain valid members)
Relative precision: 100 significant decimal digits