Thue-Morse constants in integer bases

edit · history · discussion · files · long url · automatic sequences radix expansion special values number theory
Numbers
$b$ 
$V_b$
2:
0.4124540336401075977833613682584552830894783744557695575733794153487935923657825889638045404862121334
3:
0.1524687640559484304382833723982596366678007038404966987085535212383430948626686551193870745511243711
4:
0.07912070030677426445002803492512194975614504112243622424004608201546025903244925563047120715287880006
5:
0.04832307629392970988720668875087675459012711707711814292552339853851113991179297699819034413231947169
6:
0.03253670330800434376279054438409382007104827656402367139975283863182781826516738240137555058870005704
7:
0.02338331250001083563909335314628240653896451425408922730807143870973968903390898883046564941955921569
8:
0.01760870964815852789951552276445900865516927222603395692643470374514151924125797270055747066682146913
9:
0.01373438202797421521914168619912981833390035192024834935427676061917154743133432755969353727556218555
10:
0.01101001100101101001011001101001100101100110100101101001100101101001011001101001011010011001011001101
11:
0.009021991913542450656795577783118692286405455212000050239028615576194351379700858044159695092120706704
12:
0.007527169443468406715704503676932910639834482822218613245567881895497556063021346485264775058171862188
13:
0.006375020509934077755454477301262354948476112973568686271969108966924272058182879838331478647829877972
14:
0.005468332373549424528487715008725704539773723009586038277030648050716443129001474156541743265706206172
15:
0.004742058029373186155132158247616249366850612759989439259095954972205354552693141137577815856657093518
16:
0.004151344546702532594453789419485094363159458151923185857793138449597864121927529654601513495404044465
Definition
For an integer radix $b\geq2$, the Thue-Morse constant is $V_b=\sum_{n=0}^{\infty}t_n b^{-(n+1)}$, where $t_n\in\{0,1\}$ is the parity of the number of ones in the binary expansion of $n$, with $t_0=0$ [1].
Parameters
$b$
—   integer radix ($b\geq2$)
Formulas
(1)
For $|z|<1$, let $A(z)=\sum_{n=0}^{\infty}t_nz^n$ and $Q(z)=\prod_{j=0}^{\infty}(1-z^{2^j})$. Then $Q(z)=\sum_{n=0}^{\infty}(1-2t_n)z^n$ and $A(z)=(1/(1-z)-Q(z))/2$ [1], Section 2. Consequently $V_b=A(1/b)/b=1/(2(b-1))-Q(1/b)/(2b)$.
(2)
The digit recurrence gives $A(z)=z/(1-z^2)+(1-z)A(z^2)$ for $|z|<1$, or $V_b=1/(b^2-1)+(b-1)V_{b^2}$ for integer $b\geq2$.
Comments
(3)
The first fractional digit is $t_0=0$, so $V_b=0.0110100110010110\ldots{}_b$, where the subscript denotes radix $b$. The stored numbers are decimal enclosures. The radix $b$ is independent of the binary representation used to define the digits.
(4)
The digits are the infinite word obtained by iterating $0\mapsto01$, $1\mapsto10$, starting from $0$. Equivalently, $t_{2n}=t_n$ and $t_{2n+1}=1-t_n$ for $n\geq0$ [1], Section 1.
(5)
The shifted convention $\sum_{n=1}^{\infty}t_n b^{-n}$ has value $bV_b$; discarding the initial zero therefore changes the number. Complementing every digit gives $1/(b-1)-V_b$. The Komornik-Loreti problem instead fixes the value to $1$ and varies the expansion base; sharing Thue-Morse digits does not identify that base with $V_b$.
(6)
At $b=2$, $V_2$ is also the Morse number: the smaller limiting external angle, measured in turns, along the period-doubling cascade of the Mandelbrot set [2], Sections 2 and 8. Its complementary limiting angle is $1-V_2$. The logistic-map cascade table stores dynamical parameters rather than these angles.
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_arb import RealBallField

def thue_morse(b, digits=100):
    # Morphic digits; exact radix sum plus a geometric tail.
    b = ZZ(b)
    if b < 2:
        raise ValueError("b must be an integer at least 2")
    n = 1
    while QQ(1)/(b**n*(b-1)) > QQ(1)/(10**(digits+30)*b**2):
        n += 1
    word = [0]
    while len(word) < n:
        word = [v for d in word for v in (d, 1-d)]
    a = ZZ(0)
    for d in word[:n]:
        a = b*a+d
    lower = QQ(a)/b**n
    tail = QQ(1)/(b**n*(b-1))
    R = RealBallField(numberdb.bits(digits, losing=120))
    return R(lower+tail/2).add_error(R(tail/2))

# Default coverage; thue_morse(b) also accepts larger integer radices.
[(b, thue_morse(b)) for b in range(2, 17)]
References
[1]
D. Badziahin and E. Zorin, Thue-Morse constant is not badly approximable, arXiv preprint, version 2 (2014), Sections 1-2. (arXiv)
[2]
A. Douady, Algorithms for Computing Angles in the Mandelbrot Set, in Chaotic Dynamics and Fractals, Academic Press (1986), pp. 155-168, Sections 2 and 8.
Links
Similar tables
Regular paperfolding numbers —   Another fixed automatic binary word read in an integer radix. Its digit sum starts with $f_1$ in fractional position $1$, whereas this table starts with $t_0=0$.
Bifurcation points of the period-doubling cascade of the logistic map —   The binary constant $V_2$ is the smaller limiting external angle in turns for the associated Mandelbrot cascade; the linked table gives the cascade parameters.
Data properties
Entries are of type: real number
Table is complete: no (it holds every integer radix $2\leq b\leq16$, a contiguous small-integer reference prefix including binary, ternary, octal, decimal and hexadecimal and the intervening radices; $16$ is a noncanonical coverage cutoff and larger integer radices are equally valid)
How they were obtained:

The generator computes the first $J$ factors $Q_J=\prod_{j=0}^{J-1}(1-b^{-2^j})$ exactly as rationals. The bound $0\leq Q_J-Q(1/b)\leq1/(b^{2^J}-1)$ yields rational lower and upper bounds for $V_b$, with width at most $1/(2b(b^{2^J}-1))$. It stops when this width is less than $10^{-130}/b^2$ for the default $100$ significant digits. A $453$-bit Arb ball encloses both rational endpoints and arithmetic rounding; all returned balls are finite and have positive radius. The default range uses $7$ to $9$ factors.

more

A separate checker generates the word by substitution, sums its first $N$ digits with exact rational arithmetic, and bounds the remaining tail by $b^{-N}/(b-1)$. For every stored base this independent enclosure is contained in the interval encoded by the recorded decimal; its width is less than $10^{-25}$ times one stored last-place unit. Checks also compare $1024$ digits with binary parity and finite product coefficients, test the functional identity, and reject deliberately shifted, complemented, incorrectly truncated, last-place-altered and vacuous values. Known finite and periodic digit sums control the checker. Attached evidence records exact bounds, software versions and the tested range.