stored-document.json

back to table · edit · history · where entries came from · files · download

8060 bytes, as of the version from 2026-12-01 17:23 (current). Recorded here, not run.

{
  "Title": "Thue-Morse constants in integer bases",
  "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$ CITE{BZ2014}.",
  "Parameters": {
    "b": {
      "type": "Z",
      "title": "integer radix",
      "display": "$b$",
      "constraints": "$b\\geq2$"
    }
  },
  "Display properties": {
    "number-header": "$V_b$"
  },
  "Keywords": [
    "Prouhet-Thue-Morse constant",
    "Thue-Morse-Mahler number",
    "Thue-Morse-Mahler constant",
    "Morse number"
  ],
  "Comments": {
    "coding": "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.",
    "substitution": "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$ CITE{BZ2014}, Section 1.",
    "indexing": "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$.",
    "angle": "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 CITE{Douady1986}, Sections 2 and 8. Its complementary limiting angle is $1-V_2$. HREF{T168}[The logistic-map cascade table] stores dynamical parameters rather than these angles."
  },
  "Formulas": {
    "product": "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$ CITE{BZ2014}, Section 2. Consequently $V_b=A(1/b)/b=1/(2(b-1))-Q(1/b)/(2b)$.",
    "functional": "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$."
  },
  "Similar tables": [
    {
      "table": "HREF{T895}[Regular paperfolding numbers]",
      "relation": "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$."
    },
    {
      "table": "HREF{T168}[Bifurcation points of the period-doubling cascade of the logistic map]",
      "relation": "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."
    }
  ],
  "Tags": [
    "number theory",
    "radix expansion",
    "special values",
    "automatic sequences"
  ],
  "Links": {
    "paper": {
      "url": "https://arxiv.org/html/1407.3182v2",
      "title": "Badziahin and Zorin: Thue-Morse constant is not badly approximable"
    },
    "angles": {
      "url": "https://websites.umich.edu/kochsc/douady.pdf",
      "title": "Douady: Algorithms for computing angles in the Mandelbrot set"
    }
  },
  "References": {
    "BZ2014": {
      "bib": "D. Badziahin and E. Zorin, Thue-Morse constant is not badly approximable, arXiv preprint, version 2 (2014), Sections 1-2.",
      "arxiv": "1407.3182"
    },
    "Douady1986": {
      "bib": "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."
    }
  },
  "Programs": {
    "morphic-digits": {
      "language": "Sage",
      "code": "import numberdb.sage as numberdb\nfrom sage.rings.integer_ring import ZZ\nfrom sage.rings.rational_field import QQ\nfrom sage.rings.real_arb import RealBallField\n\ndef thue_morse(b, digits=100):\n    # Morphic digits; exact radix sum plus a geometric tail.\n    b = ZZ(b)\n    if b < 2:\n        raise ValueError(\"b must be an integer at least 2\")\n    n = 1\n    while QQ(1)/(b**n*(b-1)) > QQ(1)/(10**(digits+30)*b**2):\n        n += 1\n    word = [0]\n    while len(word) < n:\n        word = [v for d in word for v in (d, 1-d)]\n    a = ZZ(0)\n    for d in word[:n]:\n        a = b*a+d\n    lower = QQ(a)/b**n\n    tail = QQ(1)/(b**n*(b-1))\n    R = RealBallField(numberdb.bits(digits, losing=120))\n    return R(lower+tail/2).add_error(R(tail/2))\n\n# Default coverage; thue_morse(b) also accepts larger integer radices.\n[(b, thue_morse(b)) for b in range(2, 17)]"
    }
  },
  "Data properties": {
    "type": "R",
    "rigour": "proven",
    "complete": "no",
    "complete-note": "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",
    "rigour details": "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.\n\nA 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."
  },
  "Numbers": {
    "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"
  }
}