Automatic sequence

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Deltahedron (talk | contribs) at 20:16, 24 August 2014 (→‎Properties: cite Cobham (1969), Semënov (1977)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

An automatic sequence (or k-automatic sequence) is an infinite sequence of terms characterized by a finite automaton. The n-th term of the sequence is a mapping of the final state of the automaton when its input is the digits of n in some fixed base k.[1][2] A k-automatic set is a set of non-negative integers for which the sequence of values of its characteristic function is an automatic sequence: that is, membership of n in the set can be determined by a finite state automaton on the digits of n in base k.[3][4]

An automaton reading the base k digits from the most significant is said to be direct reading, and from the least significant is reverse reading.[4] However the two directions lead to the same class of sequences.[5]

Every automatic sequence is a morphic word.[6]

Automaton point of view

Let k be a positive integer, and D = (E, φ, e) be a deterministic automaton where

  • E is the finite set of states
  • φ : E×[0,k − 1] → E is the transition function
  • is the initial state

also let A be a finite set, and π:EA a projection towards A.

Extend the transition function φ from acting on single digits to acting on strings of digits by defining the action of φ on a string s consisting of digits s1s2...st as:

Define a function m from the set of positive integers to the set A as follows:

where s(n) is n written in base k. Then the sequence m = m(1)m(2)m(3)... is called a k-automatic sequence.[1]

Substitution point of view

Let σ be a k-uniform morphism of the free monoid E, so that and which is prolongable[7] on : that is, σ(e) begins with e. Let A and π be defined as above. Then if w is a fixpoint of σ, that is to say w = σ(w), then m = π(w) is a k-automatic sequence over A:[8] this is Cobham's theorem.[2] Conversely every k-automatic sequence is obtained in this way.[4]

Decimation

Fix k > 1. For a sequence w we define the k-decimations of w for r=0,1,...,k-1 to be the subsequences consisting of the letters in positions congruent to r modulo k. The decimation kernel of w consists of the set of words obtained by all possible repeated decimations of w. A sequence is k-automatic if an only if the k-decimation kernel is finite.[9][10][11]

1-automatic sequences

k-automatic sequences are normally only defined for k ≥ 2.[1] The concept can be extended to k = 1 by defining a 1-automatic sequence to be a sequence whose n-th term depends on the unary notation for n, that is (1)n. Since a finite state automaton must eventually return to a previously visited state, all 1-automatic sequences are eventually periodic.

Properties

For given k and r, a set is k-automatic if and only if it is kr-automatic. Otherwise, for h and k multiplicatively independent, then a set is both h-automatic and k-automatic if and only if it is 1-automatic, that is, ultimately periodic.[12] This theorem is also due to Cobham,[13] with a multidimensional generalisation due to Semënov.[14][15]

If u(n) is a k-automatic sequence then the sequences u(kn) and u(kn−1) are ultimately periodic.[16] Conversely, if v(n) is ultimately periodic then the sequence u defined by u(kn) = v(n) and otherwise zero is k-automatic.[17]

Let u(n) be a k-automatic sequence over the alphabet A. If f is a uniform morphism from A to B then the word f(u) is k-automatic sequence over the alphabet B.[18]

Let u(n) be a sequence over the alphabet A and suppose that there is an injective function j from A to the finite field Fq. The associated formal power series is

The sequence u is q-automatic if and only if the power series fu is algebraic over the rational function field Fq(z).[19]

Examples

The following sequences are automatic:

  • Thue-Morse sequence: take E = A = {0, 1}, e = 0, π = id, and σ such that σ(0) = 01, σ(1) = 10; we get the fixpoint 01101001100101101001011001101001..., which is in fact the Thue-Morse word. The n-th term is the parity of the base 2 representation of n and the sequence is thus 2-automatic.[1][2][20][21] The 2-kernel consists of the sequence itself and its complement.[22] The associated power series T(z) satisfies
over the field F2(z).[23]

Automatic real number

An automatic real number is a real number for which the base-b expansion is an automatic sequence.[30][31] All such numbers are either rational or transcendental, but not a U-number.[32][33] Rational numbers are k-automatic in base b for all k and b.[31]

See also

References

  1. ^ a b c d Allouche & Shallit (2003) p.152
  2. ^ a b c Berstel et al (2009) p.78
  3. ^ Allouche & Shallit (2003) p.168
  4. ^ a b c Pytheas Fogg (2002) p.13
  5. ^ Pytheas Fogg (2002) p.15
  6. ^ Lothaire (2005) p.524
  7. ^ Allouche & Shallit (2003) p.212
  8. ^ Allouche & Shallit (2003) p.175
  9. ^ Allouche & Shallitt (2003) p.185
  10. ^ Lothaire (2005) p.527
  11. ^ Berstel & Reutenauer (2011) p.91
  12. ^ Allouche & Shallit (2003) pp.345-350
  13. ^ Cobham, Alan (1969). "On the base-dependence of sets of numbers recognizable by finite automata". Math. Systems Theory. 3: 186–192. doi:10.1007/BF01746527.
  14. ^ Semenov, A. L. (1977). "Presburgerness of predicates regular in two number systems". Sibirsk. Mat. Zh. (in Russian). 18: 403–418.
  15. ^ Point, F.; Bruyère, V. (April 1997). "On the Cobham-Semenov theorem". Theory of Computing Systems. 30 (2): 197–220. doi:10.1007/BF02679449.
  16. ^ Lothaire (2005) p.529
  17. ^ Berstel & Reutenauer (2011) p.103
  18. ^ Lothaire (2005) p.532
  19. ^ Berstel & Reutenauer (2011) p.93
  20. ^ a b Lothaire (2005) p.525
  21. ^ a b Berstel & Reutenauer (2011) p.92
  22. ^ Lothaire (2005) p.528
  23. ^ Berstel & Reutenauer (2011) p.94
  24. ^ Allouche & Shallit (2003) p.154
  25. ^ Allouche & Shallit (2003) p.156
  26. ^ Allouche & Shallit (2003) p.155
  27. ^ Lothaire (2005) p.526
  28. ^ Allouche & Shallit (2003) p.183
  29. ^ Allouche & Shallit (2003) p.176
  30. ^ Shallitt (1999) p.556
  31. ^ a b Allouche & Shallit (2003) p.379
  32. ^ Adamczewski, Boris; Bugeaud, Yann (2007), "On the complexity of algebraic numbers. I. Expansions in integer bases", Annals of Mathematics, 165 (2): 547–565, doi:10.4007/annals.2007.165.547, Zbl 1195.11094
  33. ^ Bugeaud, Yann (2012), Distribution modulo one and Diophantine approximation, Cambridge Tracts in Mathematics, vol. 193, Cambridge: Cambridge University Press, pp. 192–193, ISBN 978-0-521-11169-0, Zbl pre06066616 {{citation}}: Check |zbl= value (help)