k-regular sequence
In mathematics and theoretical computer science, a k-regular sequence is an infinite sequence of terms characterized by a finite automaton with auxiliary storage.[1] They are a generalization of k-automatic sequences to alphabets of infinite size.
Definition
There exist several characterizations of k-regular sequences, all of which are equivalent. Some common characterizations are as follows. For each, we take R′ to be a commutative Noetherian ring and we take R to be a ring containing R′.
k-kernel
Let k ≥ 2. The k-kernel of the sequence s(n) is the set of subsequences
The sequence s(n) is (R′, k)-regular (often shortened to just "k-regular") if Kk(s) is a sub-module of a finitely-generated R′-module.[2]
Linear combinations
A sequence s(n) is k-regular if there exists an integer E such that, for all ej > E and 0 ≤ rj ≤ kej − 1, every subsequence of s of the form s(kejn + rj) is expressible as an R′-linear combination , where cij is an integer, fij ≤ E, and 0 ≤ bij ≤ kfij − 1.[3]
Alternatively, a sequence s(n) is k-regular if there exist an integer r and subsequences s1(n), ..., sr(n) such that, for all 1 ≤ i ≤ r and 0 ≤ a ≤ k − 1, every sequence si(kn + a) in the k-kernel Kk(s) is an R′-linear combination of the subsequences si(n).[3]
Formal series
Let x0, ..., xk − 1 be a set of k non-commuting variables and let τ be a map sending some natural number n to the string xa0 ... xae − 1, where the base-k representation of x is the string ae − 1...a0. Then a sequence s(n) is k-regular if and only if the formal series is -rational.[4]
Automata-theoretic
The formal series definition of a k-regular sequence leads to an automaton characterization similar to Schützenberger's matrix machine.[1][5]
Examples
Ruler sequence
Let be the -adic valuation of . The ruler sequence (OEIS: A007814) is -regular, and the set
is contained in the -dimensional vector space generated by and the constant sequence . These basis elements lead to the recurrence equations
which, along with initial conditions and , uniquely determine the sequence.
Thue–Morse sequence
Every k-automatic sequence is k-regular.[6] For example, the Thue–Morse sequence is -regular, and
consists of the two sequences and .
Polynomial sequences
If is an integer-valued polynomial, then is k-regular for every .
Properties
The class of k-regular sequences is closed under termwise addition and multiplication.[7]
The nth term in a k-regular sequence grows at most polynomially in n.[8]
Notes
- ^ a b Allouche & Shallit (1992), Theorem 4.4
- ^ Allouche & Shallit (1992), Definition 2.1
- ^ a b Allouche & Shallit (1992), Theorem 2.2
- ^ Allouche & Shallit (1992), Theorem 4.3
- ^ Schützenberger, M.-P. (1961), "On the definition of a family of automata", Information and Control, 4: 245–270, doi:10.1016/S0019-9958(61)80020-X.
- ^ Allouche & Shallit (1992), Theorem 2.3
- ^ Allouche & Shallit (1992), Theorem 2.5
- ^ Allouche & Shallit (1992), Theorem 2.10
References
- Allouche, Jean-Paul; Shallit, Jeffrey (1992), "The ring of k-regular sequences", Theoret. Comput. Sci., 98: 163–197, doi:10.1016/0304-3975(92)90001-v.
- Allouche, Jean-Paul; Shallit, Jeffrey (2003), "The ring of k-regular sequences, II", Theoret. Comput. Sci., 307: 3–29, doi:10.1016/s0304-3975(03)00090-2.
- Allouche, Jean-Paul; Shallit, Jeffrey (2003). Automatic Sequences: Theory, Applications, Generalizations. Cambridge University Press. ISBN 978-0-521-82332-6. Zbl 1086.11015.