# Automatic sequence

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Automatic_sequence
> Markdown URL: https://mediated.wiki/source/Automatic_sequence.md
> Source: https://en.wikipedia.org/wiki/Automatic_sequence
> Source revision: 1298552767
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

For the phonograph record property, see [Automatic sequencing](/source/Automatic_sequencing).

Infinite sequence of terms characterized by a finite automaton

In [mathematics](/source/Mathematics) and [theoretical computer science](/source/Theoretical_computer_science), an **automatic sequence** (also called a ***k*-automatic sequence** or a ***k*-recognizable sequence** when one wants to indicate that the base of the numerals used is *k*) is an infinite [sequence](/source/Sequence) of terms characterized by a [finite automaton](/source/Finite_automaton). The *n*-th term of an automatic sequence *a*(*n*) is a mapping of the final state reached in a finite automaton accepting the digits of the number *n* in some fixed [base](/source/Radix) *k*.[1][2]

An **automatic set** is a set of non-negative integers *S* for which the sequence of values of its characteristic function χ*S* is an automatic sequence; that is, *S* is *k*-automatic if χ*S*(*n*) is *k*-automatic, where χ*S*(*n*) = 1 if *n* ∈ {\displaystyle \in } *S* and 0 otherwise.[3][4]

## Definition

Automatic sequences may be defined in a number of ways, all of which are equivalent. Four common definitions are as follows.

### Automata-theoretic

Let *k* be a positive [integer](/source/Integer), and let *D* = (*Q*, Σ*k*, δ, *q0*, Δ, τ) be a [deterministic finite automaton](/source/Deterministic_finite_automaton) *with output*, where

- *Q* is the finite [set](/source/Set_(mathematics)) of states;

- the input alphabet Σ*k* consists of the set {0,1,...,*k*-1} of possible digits in [base](/source/Radix)-*k* notation;

- δ : *Q* × Σ*k* → *Q* is the transition function;

- *q0* ∈ *Q* is the initial state;

- the output alphabet Δ is a finite set; and

- τ : *Q* → Δ is the output function mapping from the set of internal states to the output alphabet.

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 *s*1*s*2...*s**t* as:

- δ(*q*,*s*) = δ(δ(*q*, *s*1*s*2...*s**t*-1), *s**t*).

Define a function *a* from the set of positive integers to the output alphabet Δ as follows:

- *a*(*n*) = τ(δ(*q0*,*s*(*n*))),

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

An automaton reading the base *k* digits of *s*(*n*) starting with the most significant digit is said to be *direct reading*, while an automaton starting with the least significant digit is *reverse reading*.[4] The above definition holds whether *s*(*n*) is direct or reverse reading.[5]

### Substitution

Let φ {\displaystyle \varphi } be a *k*-[uniform morphism](/source/Uniform_morphism) of a [free monoid](/source/Free_monoid) Σ ∗ {\displaystyle \Sigma ^{*}} and let τ {\displaystyle \tau } be a *coding* (that is, a 1 {\displaystyle 1} -uniform morphism), as in the automata-theoretic case. If w {\displaystyle w} is a [fixed point](/source/Fixed_point_(mathematics)) of φ {\displaystyle \varphi } —that is, if w = φ ( w ) {\displaystyle w=\varphi (w)} —then s = τ ( w ) {\displaystyle s=\tau (w)} is a *k*-automatic sequence.[6] Conversely, every *k*-automatic sequence is obtainable in this way.[4] This result is due to [Cobham](/source/Alan_Cobham_(mathematician)), and it is referred to in the literature as *Cobham's little theorem*.[2][7]

### *k*-kernel

Let *k* ≥ 2. The *k-kernel* of the sequence *s*(*n*) is the set of subsequences

- K k ( s ) = { s ( k e n + r ) : e ≥ 0 and 0 ≤ r ≤ k e − 1 } . {\displaystyle K_{k}(s)=\{s(k^{e}n+r):e\geq 0{\text{ and }}0\leq r\leq k^{e}-1\}.}

In most cases, the *k*-kernel of a sequence is infinite. However, if the *k*-kernel is finite, then the sequence *s*(*n*) is *k*-automatic, and the converse is also true. This is due to Eilenberg.[8][9][10]

It follows that a *k*-automatic sequence is necessarily a sequence on a finite alphabet.

### Formal power series

Let *u*(*n*) be a sequence over an alphabet Σ and suppose that there is an [injective function](/source/Injective_function) β from Σ to the [finite field](/source/Finite_field) **F***q*, where *q* = *p**n* for some prime *p*. The associated [formal power series](/source/Formal_power_series) is

- ∑ i ≥ 0 β ( u ( i ) ) X i . {\displaystyle \sum _{i\geq 0}\beta (u(i))X^{i}.}

Then the sequence *u* is *q*-automatic if and only if this formal [power series](/source/Power_series) is [algebraic](/source/Algebraic_function) over **F***q*(*X*). This result is due to Christol, and it is referred to in the literature as *Christol's theorem*.[11]

## History

Automatic sequences were introduced by [Büchi](/source/Julius_Richard_B%C3%BCchi) in 1960,[12] although his paper took a more logico-theoretic approach to the matter and did not use the terminology found in this article. The notion of automatic sequences was further studied by Cobham in 1972, who called these sequences "uniform [tag sequences](/source/Tag_system)".[7]

The term "automatic sequence" first appeared in a paper of Deshouillers.[13]

## Examples

The following sequences are automatic:

### Thue–Morse sequence

DFAO generating the Thue–Morse sequence

The [Thue–Morse sequence](/source/Thue%E2%80%93Morse_sequence) *t*(*n*) ([OEIS](/source/On-Line_Encyclopedia_of_Integer_Sequences): [A010060](https://oeis.org/A010060)) is the [fixed point](/source/Fixed_point_(mathematics)) of the morphism 0 → 01, 1 → 10. Since the *n*-th term of the Thue–Morse sequence counts the number of ones [modulo](/source/Modulo_operation) 2 in the base-2 representation of *n*, it is generated by the two-state deterministic finite automaton with output pictured here, where being in state *q*0 indicates there are an even number of ones in the representation of *n* and being in state *q*1 indicates there are an odd number of ones. Hence, the Thue–Morse sequence is 2-automatic.

### Period-doubling sequence

The *n*-th term of the period-doubling sequence *d*(*n*) ([OEIS](/source/On-Line_Encyclopedia_of_Integer_Sequences): [A096268](https://oeis.org/A096268)) is determined by the parity of the exponent of the highest power of 2 dividing *n*. It is also the fixed point of the morphism 0 → 01, 1 → 00.[14] Starting with the initial term *w* = 0 and iterating the 2-uniform morphism φ on *w* where φ(0) = 01 and φ(1) = 00, it is evident that the period-doubling sequence is the fixed-point of φ(*w*) and thus it is 2-automatic.

### Rudin–Shapiro sequence

The *n*-th term of the [Rudin–Shapiro sequence](/source/Rudin%E2%80%93Shapiro_sequence) *r*(*n*) ([OEIS](/source/On-Line_Encyclopedia_of_Integer_Sequences): [A020985](https://oeis.org/A020985)) is determined by the number of consecutive ones in the base-2 representation of *n*. The 2-kernel of the Rudin–Shapiro sequence[15] is

- r ( 2 n ) = r ( n ) , r ( 4 n + 1 ) = r ( n ) , r ( 8 n + 7 ) = r ( 2 n + 1 ) , r ( 16 n + 3 ) = r ( 8 n + 3 ) , r ( 16 n + 11 ) = r ( 4 n + 3 ) . {\displaystyle {\begin{aligned}r(2n)&=r(n),\\r(4n+1)&=r(n),\\r(8n+7)&=r(2n+1),\\r(16n+3)&=r(8n+3),\\r(16n+11)&=r(4n+3).\end{aligned}}}

Since the 2-kernel consists only of *r*(*n*), *r*(2*n* + 1), *r*(4*n* + 3), and *r*(8*n* + 3), it is finite and thus the Rudin–Shapiro sequence is 2-automatic.

### Other sequences

Both the [Baum–Sweet sequence](/source/Baum%E2%80%93Sweet_sequence)[16] ([OEIS](/source/On-Line_Encyclopedia_of_Integer_Sequences): [A086747](https://oeis.org/A086747)) and the [regular paperfolding sequence](/source/Regular_paperfolding_sequence)[17][18][19] ([OEIS](/source/On-Line_Encyclopedia_of_Integer_Sequences): [A014577](https://oeis.org/A014577)) are automatic. In addition, the general paperfolding sequence with a periodic sequence of folds is also automatic.[20]

## Properties

Automatic sequences exhibit a number of interesting properties. A non-exhaustive list of these properties is presented below.

- Every automatic sequence is a [morphic word](/source/Morphic_word).[21]

- For *k* ≥ 2 and *r* ≥ 1, a sequence is *k*-automatic if and only if it is *k**r*-automatic. This result is due to Eilenberg.[22]

- For *h* and *k* [multiplicatively independent](/source/Multiplicative_independence), a sequence is both *h*-automatic and *k*-automatic if and only if it is ultimately periodic.[23] This result is due to Cobham also known as [Cobham's theorem](/source/Cobham's_theorem),[24] with a multidimensional generalisation due to Semenov.[25][26]

- If *u*(*n*) is a *k*-automatic sequence over an alphabet Σ and *f* is a [uniform morphism](/source/Uniform_morphism) from Σ∗ to another alphabet Δ∗, then *f*(*u*) is a *k*-automatic sequence over Δ.[27]

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

## Proving and disproving automaticity

Given a candidate sequence s = ( s n ) n ≥ 0 {\displaystyle s=(s_{n})_{n\geq 0}} , it is usually easier to disprove its automaticity than to prove it. By the *k*-kernel characterization of *k*-automatic sequences, it suffices to produce infinitely many distinct elements in the *k*-kernel K k ( s ) {\displaystyle K_{k}(s)} to show that s {\displaystyle s} is not *k*-automatic. Heuristically, one might try to prove automaticity by checking the agreement of terms in the *k*-kernel, but this can occasionally lead to wrong guesses. For example, let

- t = 011010011 … {\displaystyle t=011010011\dots }

be the Thue–Morse word. Let s {\displaystyle s} be the word given by concatenating successive terms in the sequence of run-lengths of t {\displaystyle t} . Then s {\displaystyle s} begins

- s = 12112221 … . {\displaystyle s=12112221\dots .} .

It is known that s {\displaystyle s} is the fixed point h ω ( 1 ) {\displaystyle h^{\omega }(1)} of the morphism

- h ( 1 ) = 121 , h ( 2 ) = 12221. {\displaystyle h(1)=121,h(2)=12221.}

The word s {\displaystyle s} is not 2-automatic, but certain elements of its 2-kernel agree for many terms. For example, s 16 n + 1 = s 64 n + 1 for 0 ≤ n ≤ 1864134 {\displaystyle s_{16n+1}=s_{64n+1}{\text{ for }}0\leq n\leq 1864134}

but not for n = 1864135 {\displaystyle n=1864135} .[30]

Given a sequence that is conjectured to be automatic, there are a few useful approaches to proving it actually is. One approach is to directly construct a [deterministic automaton](/source/Deterministic_automaton) with output that gives the sequence. Let ( s n ) n ≥ 0 {\displaystyle (s_{n})_{n\geq 0}} written in the alphabet Δ {\displaystyle \Delta } , and let ( n ) k {\displaystyle (n)_{k}} denote the base- k {\displaystyle k} expansion of n {\displaystyle n} . Then the sequence s = ( s n ) n ≥ 0 {\displaystyle s=(s_{n})_{n\geq 0}} is k {\displaystyle k} -automatic if and only each of the fibres

- I k ( s , d ) := { ( n ) k ∣ s n = d } {\displaystyle I_{k}(s,d):=\{(n)_{k}\mid s_{n}=d\}}

is a regular language.[31] Checking regularity of the fibres can often be done using the [pumping lemma for regular languages](/source/Pumping_lemma_for_regular_languages).

If s k ( n ) {\displaystyle s_{k}(n)} denotes the sum of the digits in the base- k {\displaystyle k} expansion of n {\displaystyle n} and p ( X ) {\displaystyle p(X)} is a polynomial with non-negative integer coefficients, and if k ≥ 2 {\displaystyle k\geq 2} , m ≥ 1 {\displaystyle m\geq 1} are integers, then the sequence

- ( s k ( p ( n ) ) ( mod m ) ) n ≥ 0 {\displaystyle (s_{k}(p(n)){\pmod {m}})_{n\geq 0}}

is k {\displaystyle k} -automatic if and only if deg ⁡ p ≤ 1 {\displaystyle \deg p\leq 1} or m ∣ k − 1 {\displaystyle m\mid k-1} .[32]

## 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](/source/Unary_numeral_system) for *n*; that is, (1)*n*. Since a finite state automaton must eventually return to a previously visited state, all 1-automatic sequences are ultimately periodic.

## Generalizations

Automatic sequences are robust against variations to either the definition or the input sequence. For instance, as noted in the automata-theoretic definition, a given sequence remains automatic under both direct and reverse reading of the input sequence. A sequence also remains automatic when an alternate set of digits is used or when the base is negated; that is, when the input sequence is represented in base −*k* instead of in base *k*.[33] However, in contrast to using an alternate set of digits, a change of base may affect the automaticity of a sequence.

The domain of an automatic sequence can be extended from the natural numbers to the integers via *two-sided* automatic sequences. This stems from the fact that, given *k* ≥ 2, every integer can be represented uniquely in the form ∑ 0 ≤ i ≤ r a i ( − k ) i , {\displaystyle \sum _{0\leq i\leq r}a_{i}(-k)^{i},} where a i ∈ { 0 , … , k − 1 } {\displaystyle a_{i}\in \{0,\dots ,k-1\}} . Then a two-sided infinite sequence *a*(*n*)*n* ∈ Z {\displaystyle \in \mathbb {Z} } is (−*k*)-automatic if and only if its subsequences *a*(*n*)n ≥ 0 and *a*(−*n*)n ≥ 0 are *k*-automatic.[34]

The alphabet of a *k*-automatic sequence can be extended from finite size to infinite size via [*k*-regular sequences](/source/K-regular_sequence).[35] The *k*-regular sequences can be characterized as those sequences whose *k*-kernel is finitely-generated. Every bounded *k*-regular sequence is automatic.[36]

## Logical approach

For many 2-automatic sequences s = ( s n ) n ≥ 0 {\displaystyle s=(s_{n})_{n\geq 0}} , the map n ↦ s n {\displaystyle n\mapsto s_{n}} has the property that the first-order theory FO ( N , + , 0 , 1 , n ↦ s n ) {\displaystyle {\text{FO}}(\mathbb {N} ,+,0,1,n\mapsto s_{n})} is [decidable](/source/Decidability_(logic)). Since many non-trivial properties of automatic sequences can be written in [first-order logic](/source/First-order_logic), it is possible to prove these properties mechanically by executing the decision procedure.[37]

For example, the following properties of the Thue–Morse word can all be verified mechanically in this way:

- The Thue–Morse word is overlap-free, i.e., it does not contain a word of the form c x c x c {\displaystyle cxcxc} where c {\displaystyle c} is a single letter and w {\displaystyle w} is a possibly empty word.

- A non-empty word x {\displaystyle x} is *bordered* if there is a non-empty word w {\displaystyle w} and a possibly empty word y {\displaystyle y} with x = w y w {\displaystyle x=wyw} . The Thue–Morse word contains a bordered factor for each length greater than 1.[38]

- There is an unbordered factor of length n {\displaystyle n} in the Thue–Morse word if and only if ( n ) 2 ∉ 1 ( 01 ∗ 0 ) ∗ 10 ∗ 1 {\displaystyle (n)_{2}\notin 1(01^{*}0)^{*}10^{*}1} where ( n ) 2 {\displaystyle (n)_{2}} denotes the binary representation of n {\displaystyle n} .[39]

The software Walnut,[40][41] developed by Hamoon Mousavi, implements a decision procedure for deciding many properties of certain automatic words, such as the Thue–Morse word. This implementation is a consequence of the above work on the logical approach to automatic sequences.

## See also

- [Büchi arithmetic](/source/B%C3%BCchi_arithmetic)

## Notes

1. ^ [***a***](#cite_ref-as1_1-0) [***b***](#cite_ref-as1_1-1) [***c***](#cite_ref-as1_1-2) Allouche & Shallit (2003) p. 152

1. ^ [***a***](#cite_ref-BLRS78_2-0) [***b***](#cite_ref-BLRS78_2-1) Berstel et al (2009) p. 78

1. **[^](#cite_ref-3)** Allouche & Shallit (2003) p. 168

1. ^ [***a***](#cite_ref-PF13_4-0) [***b***](#cite_ref-PF13_4-1) [***c***](#cite_ref-PF13_4-2) Pytheas Fogg (2002) p. 13

1. **[^](#cite_ref-PF15_5-0)** Pytheas Fogg (2002) p. 15

1. **[^](#cite_ref-AS175_6-0)** Allouche & Shallit (2003) p. 175

1. ^ [***a***](#cite_ref-C72_7-0) [***b***](#cite_ref-C72_7-1) Cobham (1972)

1. **[^](#cite_ref-AS185_8-0)** Allouche & Shallit (2003) p. 185

1. **[^](#cite_ref-ApCOw527_9-0)** Lothaire (2005) p. 527

1. **[^](#cite_ref-BR91_10-0)** Berstel & Reutenauer (2011) p. 91

1. **[^](#cite_ref-11)** Christol, G. (1979). ["Ensembles presque périodiques *k*-reconnaissables"](https://doi.org/10.1016%2F0304-3975%2879%2990011-2). *Theoret. Comput. Sci*. **9**: 141–145. [doi](/source/Doi_(identifier)):[10.1016/0304-3975(79)90011-2](https://doi.org/10.1016%2F0304-3975%2879%2990011-2).

1. **[^](#cite_ref-12)** Büchi, J. R. (1990). "Weak Second-Order Arithmetic and Finite Automata". *The Collected Works of J. Richard Büchi*. Z. Math. Logik Grundlagen Math. Vol. 6. pp. 66–92. [doi](/source/Doi_(identifier)):[10.1007/978-1-4613-8928-6_22](https://doi.org/10.1007%2F978-1-4613-8928-6_22). [ISBN](/source/ISBN_(identifier)) [978-1-4613-8930-9](https://en.wikipedia.org/wiki/Special:BookSources/978-1-4613-8930-9).

1. **[^](#cite_ref-13)** Deshouillers, J.-M. (1979–1980). "La répartition modulo 1 des puissances de rationnels dans l'anneau des séries formelles sur un corps fini". *Séminaire de Théorie des Nombres de Bordeaux*: 5.01 – 5.22.

1. **[^](#cite_ref-AS176_14-0)** Allouche & Shallit (2003) p. 176

1. **[^](#cite_ref-AS154_15-0)** Allouche & Shallit (2003) p. 186

1. **[^](#cite_ref-AS156_16-0)** Allouche & Shallit (2003) p. 156

1. **[^](#cite_ref-BR92_17-0)** Berstel & Reutenauer (2011) p. 92

1. **[^](#cite_ref-AS155_18-0)** Allouche & Shallit (2003) p. 155

1. **[^](#cite_ref-LotIII526_19-0)** Lothaire (2005) p. 526

1. **[^](#cite_ref-AS183_20-0)** Allouche & Shallit (2003) p. 183

1. **[^](#cite_ref-LotIII524_21-0)** Lothaire (2005) p. 524

1. **[^](#cite_ref-22)** Eilenberg, Samuel (1974). *Automata, languages, and machines*. Vol. A. Orlando: [Academic Press](/source/Academic_Press). [ISBN](/source/ISBN_(identifier)) [978-0-122-34001-7](https://en.wikipedia.org/wiki/Special:BookSources/978-0-122-34001-7).

1. **[^](#cite_ref-as345_23-0)** Allouche & Shallit (2003) pp. 345–350

1. **[^](#cite_ref-24)** Cobham, A. (1969). "On the base-dependence of sets of numbers recognizable by finite automata". *Math. Systems Theory*. **3** (2): 186–192. [doi](/source/Doi_(identifier)):[10.1007/BF01746527](https://doi.org/10.1007%2FBF01746527). [S2CID](/source/S2CID_(identifier)) [19792434](https://api.semanticscholar.org/CorpusID:19792434).

1. **[^](#cite_ref-25)** Semenov, A. L. (1977). "Presburgerness of predicates regular in two number systems". *Sibirsk. Mat. Zh.* (in Russian). **18** (2): 403–418. [Bibcode](/source/Bibcode_(identifier)):[1977SibMJ..18..289S](https://ui.adsabs.harvard.edu/abs/1977SibMJ..18..289S). [doi](/source/Doi_(identifier)):[10.1007/BF00967164](https://doi.org/10.1007%2FBF00967164).

1. **[^](#cite_ref-26)** Point, F.; [Bruyère, V.](/source/V%C3%A9ronique_Bruy%C3%A8re) (1997). "On the Cobham-Semenov theorem". *Theory of Computing Systems*. **30** (2): 197–220. [doi](/source/Doi_(identifier)):[10.1007/BF02679449](https://doi.org/10.1007%2FBF02679449). [S2CID](/source/S2CID_(identifier)) [31270341](https://api.semanticscholar.org/CorpusID:31270341).

1. **[^](#cite_ref-ApCoW532_27-0)** Lothaire (2005) p. 532

1. **[^](#cite_ref-ApCoW529_28-0)** Lothaire (2005) p. 529

1. **[^](#cite_ref-BR103_29-0)** Berstel & Reutenauer (2011) p. 103

1. **[^](#cite_ref-30)** Allouche, G.; Allouche, J.-P.; Shallit, J. (2006). ["Kolam indiens, dessins sur le sable aux îles Vanuatu, courbe de Sierpinski et morphismes de monoïde"](http://www.numdam.org/item/AIF_2006__56_7_2115_0/). *Annales de l'Institut Fourier*. **56** (7): 2126. [doi](/source/Doi_(identifier)):[10.5802/aif.2235](https://doi.org/10.5802%2Faif.2235).

1. **[^](#cite_ref-31)** Allouche and Shallit (2003) p. 160

1. **[^](#cite_ref-32)** Allouche and Shallit (2003) p. 197

1. **[^](#cite_ref-AS157_33-0)** Allouche & Shallit (2003) p. 157

1. **[^](#cite_ref-AS162_34-0)** Allouche & Shallit (2003) p. 162

1. **[^](#cite_ref-35)** Allouche, J.-P.; Shallit, J. (1992). ["The ring of *k*-regular sequences"](https://doi.org/10.1016%2F0304-3975%2892%2990001-v). *Theoret. Comput. Sci*. **98** (2): 163–197. [doi](/source/Doi_(identifier)):[10.1016/0304-3975(92)90001-v](https://doi.org/10.1016%2F0304-3975%2892%2990001-v).

1. **[^](#cite_ref-36)** Shallit, Jeffrey. ["The Logical Approach to Automatic Sequences, Part 1: Automatic Sequences and *k*-Regular Sequences"](https://cs.uwaterloo.ca/~shallit/Talks/linz1a.pdf) (PDF). Retrieved April 1, 2020.

1. **[^](#cite_ref-37)** Shallit, J. ["The Logical Approach to Automatic Sequences: Part 1"](https://cs.uwaterloo.ca/~shallit/Talks/linz1a.pdf) (PDF). Retrieved April 1, 2020.

1. **[^](#cite_ref-38)** Shallit, J. ["The Logical Approach to Automatic Sequences: Part 3"](https://cs.uwaterloo.ca/~shallit/Talks/linz3b.pdf) (PDF). Retrieved April 1, 2020.

1. **[^](#cite_ref-39)** Shallit, J. ["The Logical Approach to Automatic Sequences: Part 3"](https://cs.uwaterloo.ca/~shallit/Talks/linz3b.pdf) (PDF). Retrieved April 1, 2020.

1. **[^](#cite_ref-40)** Shallit, J. ["Walnut Software"](https://cs.uwaterloo.ca/~shallit/walnut.html). Retrieved April 1, 2020.

1. **[^](#cite_ref-41)** Mousavi, H. (2016). "Automatic Theorem Proving in Walnut". [arXiv](/source/ArXiv_(identifier)):[1603.06017](https://arxiv.org/abs/1603.06017) [[cs.FL](https://arxiv.org/archive/cs.FL)].

## References

- Allouche, Jean-Paul; [Shallit, Jeffrey](/source/Jeffrey_Shallit) (2003). *Automatic Sequences: Theory, Applications, Generalizations*. [Cambridge University Press](/source/Cambridge_University_Press). [ISBN](/source/ISBN_(identifier)) [978-0-521-82332-6](https://en.wikipedia.org/wiki/Special:BookSources/978-0-521-82332-6). [Zbl](/source/Zbl_(identifier)) [1086.11015](https://zbmath.org/?format=complete&q=an:1086.11015).

- Berstel, Jean; Lauve, Aaron; Reutenauer, Christophe; Saliola, Franco V. (2009). [*Combinatorics on words. Christoffel words and repetitions in words*](https://www.ams.org/bookpages/crmm-27). CRM Monograph Series. Vol. 27. Providence, RI: [American Mathematical Society](/source/American_Mathematical_Society). [ISBN](/source/ISBN_(identifier)) [978-0-8218-4480-9](https://en.wikipedia.org/wiki/Special:BookSources/978-0-8218-4480-9). [Zbl](/source/Zbl_(identifier)) [1161.68043](https://zbmath.org/?format=complete&q=an:1161.68043).

- Berstel, Jean; Reutenauer, Christophe (2011). *Noncommutative rational series with applications*. Encyclopedia of Mathematics and Its Applications. Vol. 137. Cambridge: [Cambridge University Press](/source/Cambridge_University_Press). [ISBN](/source/ISBN_(identifier)) [978-0-521-19022-0](https://en.wikipedia.org/wiki/Special:BookSources/978-0-521-19022-0). [Zbl](/source/Zbl_(identifier)) [1250.68007](https://zbmath.org/?format=complete&q=an:1250.68007).

- [Cobham, Alan](/source/Alan_Cobham_(mathematician)) (1972). "Uniform tag sequences". *[Mathematical Systems Theory](/source/Mathematical_Systems_Theory)*. **6** (1–2): 164–192. [doi](/source/Doi_(identifier)):[10.1007/BF01706087](https://doi.org/10.1007%2FBF01706087). [S2CID](/source/S2CID_(identifier)) [28356747](https://api.semanticscholar.org/CorpusID:28356747).

- [Lothaire, M.](/source/M._Lothaire) (2005). [*Applied combinatorics on words*](https://archive.org/details/appliedcombinato0000loth). Encyclopedia of Mathematics and Its Applications. Vol. 105. A collective work by Jean Berstel, Dominique Perrin, Maxime Crochemore, Eric Laporte, Mehryar Mohri, Nadia Pisanti, Marie-France Sagot, [Gesine Reinert](/source/Gesine_Reinert), [Sophie Schbath](/source/Sophie_Schbath), Michael Waterman, Philippe Jacquet, [Wojciech Szpankowski](/source/Wojciech_Szpankowski), Dominique Poulalhon, Gilles Schaeffer, Roman Kolpakov, Gregory Koucherov, Jean-Paul Allouche and [Valérie Berthé](/source/Val%C3%A9rie_Berth%C3%A9). Cambridge: [Cambridge University Press](/source/Cambridge_University_Press). [ISBN](/source/ISBN_(identifier)) [978-0-521-84802-2](https://en.wikipedia.org/wiki/Special:BookSources/978-0-521-84802-2). [Zbl](/source/Zbl_(identifier)) [1133.68067](https://zbmath.org/?format=complete&q=an:1133.68067).

- Pytheas Fogg, N. (2002). *Substitutions in dynamics, arithmetics and combinatorics*. Lecture Notes in Mathematics. Vol. 1794. Editors [Berthé, Valérie](/source/Val%C3%A9rie_Berth%C3%A9); Ferenczi, Sébastien; Mauduit, Christian; Siegel, A. Berlin: [Springer-Verlag](/source/Springer-Verlag). [ISBN](/source/ISBN_(identifier)) [978-3-540-44141-0](https://en.wikipedia.org/wiki/Special:BookSources/978-3-540-44141-0). [Zbl](/source/Zbl_(identifier)) [1014.11015](https://zbmath.org/?format=complete&q=an:1014.11015).

## Further reading

- Berthé, Valérie; Rigo, Michel, eds. (2010). *Combinatorics, automata, and number theory*. Encyclopedia of Mathematics and its Applications. Vol. 135. Cambridge: [Cambridge University Press](/source/Cambridge_University_Press). [ISBN](/source/ISBN_(identifier)) [978-0-521-51597-9](https://en.wikipedia.org/wiki/Special:BookSources/978-0-521-51597-9). [Zbl](/source/Zbl_(identifier)) [1197.68006](https://zbmath.org/?format=complete&q=an:1197.68006).

- Loxton, J. H. (1988). "13. Automata and transcendence". In [Baker, A.](/source/Alan_Baker_(mathematician)) (ed.). [*New Advances in Transcendence Theory*](https://archive.org/details/newadvancestrans1986bake). [Cambridge University Press](/source/Cambridge_University_Press). pp. [215](https://archive.org/details/newadvancestrans1986bake/page/n113)–228. [ISBN](/source/ISBN_(identifier)) [978-0-521-33545-4](https://en.wikipedia.org/wiki/Special:BookSources/978-0-521-33545-4). [Zbl](/source/Zbl_(identifier)) [0656.10032](https://zbmath.org/?format=complete&q=an:0656.10032).

- Rowland, Eric (2015). ["What is ... an automatic sequence?"](https://doi.org/10.1090%2Fnoti1218). *Notices of the American Mathematical Society*. **62** (3): 274–276. [doi](/source/Doi_(identifier)):[10.1090/noti1218](https://doi.org/10.1090%2Fnoti1218).

- [Shallit, Jeffrey](/source/Jeffrey_Shallit) (1999). "Number theory and formal languages". In [Hejhal, Dennis A.](/source/Dennis_Hejhal); Friedman, Joel; [Gutzwiller, Martin C.](/source/Martin_Gutzwiller); [Odlyzko, Andrew M.](/source/Andrew_Odlyzko) (eds.). *Emerging applications of number theory. Based on the proceedings of the IMA summer program, Minneapolis, MN, USA, July 15–26, 1996*. The IMA volumes in mathematics and its applications. Vol. 109. [Springer-Verlag](/source/Springer-Verlag). pp. 547–570. [ISBN](/source/ISBN_(identifier)) [978-0-387-98824-5](https://en.wikipedia.org/wiki/Special:BookSources/978-0-387-98824-5).

---
Adapted from the Wikipedia article [Automatic sequence](https://en.wikipedia.org/wiki/Automatic_sequence) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Automatic_sequence?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
