Copeland–Erdős constants in integer bases

edit · history · discussion · files · long url · normal number radix expansion number theory
Numbers
$b$ 
$E_b$
2:
0.7341215154082861206062782884572321492285650466116139914066034125559540450437003108064306349269325616
3:
0.8017494929695450669585697457206394949228364704400088106526761187605796932188743755200049524306398836
4:
0.7089207366496733338415918786482103309200486149173975757767942021282041391211521488606390662722950306
5:
0.5284775640972263628036994296392684736078462309306537754493264774645635733132243105015926131108131221
6:
0.4407556536130348894382729092158498649284550702377433630946368188612925688219203317085393357795763998
7:
0.3619462159864119388935424390238601794767107426438772837825783615396513705034891126181129949430385544
8:
0.3083923620196084896150994924138511643124565314740559757618780188570647208377084401213778536495058846
9:
0.2672058857355570588757839696378011720451303915993578570055441515937574924700777977270318490740474327
10:
0.2357111317192329313741434753596167717379838997101103107109113127131137139149151157163167173179181191
11:
0.2108525241919261219151569511121714126990617869257732729323635714254596633294928289292686560368085243
12:
0.1907756683385780316415353947008712965384420961721786266356141233068130760607655483188258751130511521
13:
0.1741483882601043721914002611709851304920137190800131068590697596085445728156430263518415728493211724
14:
0.1601898293908620481156434954494634763402839195042374526271922236598991032221245127078244346345720183
15:
0.1483020533054941911716024916016034632037185383201502501350082192801094509943455286473964166983242393
16:
0.1380575339017835068364356421233470763441524342782469350966655964820123035494227124186083544674853469
Definition
The Copeland–Erdős constant $E_b$ is the real number in $(0,1)$ obtained by concatenating the usual base-$b$ expansions of the primes $2,3,5,7,\ldots$ after the radix point, and reading the resulting fraction in base $b$. [2] [1]
Parameters
$b$
—   integer ($b\geq2$)
Formulas
(1)
Let $p_n$ be the $n$th prime, with $p_1=2$, let $\ell_b(m)$ be the number of digits in the base-$b$ expansion of the positive integer $m$, and put $L_n=\sum_{j=1}^n\ell_b(p_j)$. Then $E_b=\sum_{n=1}^{\infty}p_n b^{-L_n}$. [2] For $b=10$, this is the decimal prime-concatenation series.
(2)
If the first $L$ base-$b$ fractional digits form the integer $A$, then $A/b^L\leq E_b\leq(A+1)/b^L$. The bound follows from $(b-1)\sum_{j>L}b^{-j}=b^{-L}$ and permits every possible continuation.
Comments
(3)
Every prime is written most significant digit first, with no leading zeros, padding or separators. The first prime is $p_1=2$. Changing $b$ changes the constructed real number; the entries are decimal enclosures of those different reals.
(4)
The decimal member begins $E_{10}=0.23571113171923293137\ldots$. The binary member begins $E_2=0.(10)(11)(101)(111)(1011)(1101)(10001)\ldots$ in base 2, where parentheses only mark the prime blocks. [2] [3]
(5)
For each integer $b\geq2$, $E_b$ is normal in its construction base $b$: every block of $k$ base-$b$ digits has limiting frequency $b^{-k}$. This follows from the Copeland–Erdős density theorem applied to the increasing primes. It makes no assertion about the same real number in another base. [1]
Programs
(P1)
Sage
import numberdb.sage as numberdb
from sage.rings.rational_field import QQ
from sage.rings.real_mpfi import RealIntervalField
from sage.sets.primes import Primes

def copeland_erdos(b, digits=100):
    # Construct and read the prime blocks in the same integer radix b >= 2.
    b = int(b)
    if b < 2:
        raise ValueError("b must be at least 2")
    total, length = QQ(0), 0
    for p in Primes():
        q, width = int(p), 0
        while q:
            q //= b
            width += 1
        length += width
        total += QQ(p) / b**length
        if b**length > 10**(digits+15):
            bits = max(512, numberdb.bits(digits, losing=100))
            return RealIntervalField(bits)(total, total + QQ(1)/b**length)

values = {b: copeland_erdos(b) for b in range(2, 17)}
# The function also evaluates other construction radices, such as copeland_erdos(17).
References
[1]
A. H. Copeland and P. Erdős, Note on normal numbers, Bulletin of the American Mathematical Society 52 (1946), 857–860. The general-base density theorem is on p. 857. (doi)
Links
Similar tables
Champernowne constants in integer bases —   uses all positive integers in place of the increasing primes, with the same construction-radix convention
Data properties
Entries are of type: real number
Relative precision: 100 significant decimal digits
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)
How they were obtained:

Complete prime blocks were accumulated by exact integer arithmetic until $b^{L_n}>10^{115}$. Every continuation lies between the exact rational endpoints $A/b^{L_n}$ and $(A+1)/b^{L_n}$. Both endpoints were converted outward using MPFI at 512 bits. Each computed enclosure is contained in its stored 100-significant-digit decimal interval.

more

A separate implementation enumerated primes by trial division, derived block lengths by repeated integer division, and summed $\sum_{j=1}^n p_j/b^{L_j}$ as exact rationals. It checked the complete prefixes and interval containment for every radix from 2 through 16. Longer regression prefixes cross $b^2$ in every radix. Controls include the first 100 decimal digits of both the decimal and binary members from [2] and [3], known initial prime blocks, digit-length boundaries, exact repeating-digit streams and deliberately corrupted inputs. The attached programs and results retain these checks.