A291793 Period of orbit of Post's tag system applied to the word (100)^n (version 2), or -1 if the orbit increases without limit.
2, 6, 6, 6, 0, 10, 28, 6, 10, 6, 6, 6, 0, 0, 6, 28, 10, 6, 10, 6, 6, 0, 6, 6, 0, 6, 6, 6, 6, 6, 6, 52, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 28, 6, 0, 0, 28, 6, 6, 6, 6, 6, 0, 6, 6, 6, 10, 6, 6, 6, 6, 0, 6, 0, 6, 6, 6, 6, 0, 6, 6, 6, 0, 6, 6, 6, 0, 10, 0, 10, 6, 6
Offset: 1
Keywords
Examples
For n = 2 the orbit of (100)^2 = 100100 consists of a preperiod of length 15, followed by a periodic portion of length 6.
Links
- Lars Blomberg, Table of n, a(n) for n = 1..6075 (corrected for n=165 by _A.H.M. Smeets_)
- Peter R. J. Asveld, On a Post's System of Tag. Bulletin of the EATCS 36 (1988), 96-102.
- Lars Blomberg, Histogram over non-zero terms
- Emil L. Post, Formal reductions of the general combinatorial decision problem., American Journal of Mathematics, Vol. 65, No. 2 (Apr., 1943), pp. 197-215.
- Eric Weisstein's World of Mathematics, Tag System
Programs
-
Python
def step(w): i = 0 while w[0] != alfabet[i]: i = i+1 w = w+suffix[i] return w[n:len(w)] alfabet, suffix, n, ws, w0, m = "01", ["00","1101"], 3, "100", "", 0 while m < 83: w0, m = w0+ws, m+1 w, ww, i, a = w0, w0, 0, 0 while w != "" and a == 0: w, i = step(w), i+1 if i%1000 == 0: ww = w else: if w == ww or w == "": if w != "": a = i%1000 print(m,a) # A.H.M. Smeets, Jul 16 2020
Extensions
a(50)-a(83) from Lars Blomberg, Sep 08 2017
Comments