In mathematics and theoretical computer science, a k-regular sequence is a sequence satisfying linear recurrence equations that reflect the base-k representations of the integers. The class of k-regular sequences generalizes the class of k-automatic sequences to alphabets of infinite size.
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′.
Let k ≥ 2. The k-kernel of the sequence is the set of subsequences
The sequence is (R′, k)-regular (often shortened to just "k-regular") if the -module generated by Kk(s) is a finitely-generated R′-module. [1]
In the special case when , the sequence is -regular if is contained in a finite-dimensional vector space over .
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. [2]
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). [2]
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. [3]
The formal series definition of a k-regular sequence leads to an automaton characterization similar to Schützenberger's matrix machine. [4] [5]
The notion of k-regular sequences was first investigated in a pair of papers by Allouche and Shallit. [6] Prior to this, Berstel and Reutenauer studied the theory of rational series, which is closely related to k-regular sequences. [7]
Let be the -adic valuation of . The ruler sequence ( OEIS: A007814 ) is -regular, and the -kernel
is contained in the two-dimensional vector space generated by and the constant sequence . These basis elements lead to the recurrence relations
which, along with the initial conditions and , uniquely determine the sequence. [8]
The Thue–Morse sequence t(n) ( OEIS: A010060 ) is the fixed point of the morphism 0 → 01, 1 → 10. It is known that the Thue–Morse sequence is 2-automatic. Thus, it is also 2-regular, and its 2-kernel
consists of the subsequences and .
The sequence of Cantor numbers c(n) ( OEIS: A005823 ) consists of numbers whose ternary expansions contain no 1s. It is straightforward to show that
and therefore the sequence of Cantor numbers is 2-regular. Similarly the Stanley sequence
of numbers whose ternary expansions contain no 2s is also 2-regular. [9]
A somewhat interesting application of the notion of k-regularity to the broader study of algorithms is found in the analysis of the merge sort algorithm. Given a list of n values, the number of comparisons made by the merge sort algorithm are the sorting numbers, governed by the recurrence relation
As a result, the sequence defined by the recurrence relation for merge sort, T(n), constitutes a 2-regular sequence. [10]
If is an integer-valued polynomial, then is k-regular for every .
The Glaisher–Gould sequence is 2-regular. The Stern–Brocot sequence is 2-regular.
Allouche and Shallit give a number of additional examples of k-regular sequences in their papers. [6]
k-regular sequences exhibit a number of interesting properties.
Given a candidate sequence that is not known to be k-regular, k-regularity can typically be proved directly from the definition by calculating elements of the kernel of and proving that all elements of the form with sufficiently large and can be written as linear combinations of kernel elements with smaller exponents in the place of . This is usually computationally straightforward.
On the other hand, disproving k-regularity of the candidate sequence usually requires one to produce a -linearly independent subset in the kernel of , which is typically trickier. Here is one example of such a proof.
Let denote the number of 's in the binary expansion of . Let denote the number of 's in the binary expansion of . The sequence can be shown to be 2-regular. The sequence is, however, not 2-regular, by the following argument. Suppose is 2-regular. We claim that the elements for and of the 2-kernel of are linearly independent over . The function is surjective onto the integers, so let be the least integer such that . By 2-regularity of , there exist and constants such that for each ,
Let be the least value for which . Then for every ,
Evaluating this expression at , where and so on in succession, we obtain, on the left-hand side
and on the right-hand side,
It follows that for every integer ,
But for , the right-hand side of the equation is monotone because it is of the form for some constants , whereas the left-hand side is not, as can be checked by successively plugging in , , and . Therefore, is not 2-regular. [22]
In mathematics, more specifically in general topology and related branches, a net or Moore–Smith sequence is a function whose domain is a directed set. The codomain of this function is usually some topological space. Nets directly generalize the concept of a sequence in a metric space. Nets are primarily used in the fields of analysis and topology, where they are used to characterize many important topological properties that, sequences are unable to characterize. Nets are in one-to-one correspondence with filters.
In mathematics, the branch of real analysis studies the behavior of real numbers, sequences and series of real numbers, and real functions. Some particular properties of real-valued sequences and functions that real analysis studies include convergence, limits, continuity, smoothness, differentiability and integrability.
In mathematics, a transcendental number is a real or complex number that is not algebraic: that is, not the root of a non-zero polynomial with integer coefficients. The best-known transcendental numbers are π and e. The quality of a number being transcendental is called transcendence.
In mathematics, specifically in real analysis, the Bolzano–Weierstrass theorem, named after Bernard Bolzano and Karl Weierstrass, is a fundamental result about convergence in a finite-dimensional Euclidean space . The theorem states that each infinite bounded sequence in has a convergent subsequence. An equivalent formulation is that a subset of is sequentially compact if and only if it is closed and bounded. The theorem is sometimes called the sequential compactness theorem.
In the mathematical field of real analysis, the monotone convergence theorem is any of a number of related theorems proving the good convergence behaviour of monotonic sequences, i.e. sequences that are non-increasing, or non-decreasing. In its simplest form, it says that a non-decreasing bounded-above sequence of real numbers converges to its smallest upper bound, its supremum. Likewise, a non-increasing bounded-below sequence converges to its largest lower bound, its infimum. In particular, infinite sums of non-negative numbers converge to the supremum of the partial sums if and only if the partial sums are bounded.
In mathematics, Fatou's lemma establishes an inequality relating the Lebesgue integral of the limit inferior of a sequence of functions to the limit inferior of integrals of these functions. The lemma is named after Pierre Fatou.
In additive number theory, the Schnirelmann density of a sequence of numbers is a way to measure how "dense" the sequence is. It is named after Russian mathematician Lev Schnirelmann, who was the first to study it.
The Arzelà–Ascoli theorem is a fundamental result of mathematical analysis giving necessary and sufficient conditions to decide whether every sequence of a given family of real-valued continuous functions defined on a closed and bounded interval has a uniformly convergent subsequence. The main condition is the equicontinuity of the family of functions. The theorem is the basis of many proofs in mathematics, including that of the Peano existence theorem in the theory of ordinary differential equations, Montel's theorem in complex analysis, and the Peter–Weyl theorem in harmonic analysis and various results concerning compactness of integral operators.
In mathematics, specifically order theory, a well-quasi-ordering or wqo on a set is a quasi-ordering of for which every infinite sequence of elements from contains an increasing pair with
In mathematics, Hurwitz's automorphisms theorem bounds the order of the group of automorphisms, via orientation-preserving conformal mappings, of a compact Riemann surface of genus g > 1, stating that the number of such automorphisms cannot exceed 84(g − 1). A group for which the maximum is achieved is called a Hurwitz group, and the corresponding Riemann surface a Hurwitz surface. Because compact Riemann surfaces are synonymous with non-singular complex projective algebraic curves, a Hurwitz surface can also be called a Hurwitz curve. The theorem is named after Adolf Hurwitz, who proved it in (Hurwitz 1893).
In computer science, the longest increasing subsequence problem aims to find a subsequence of a given sequence in which the subsequence's elements are sorted in an ascending order and in which the subsequence is as long as possible. This subsequence is not necessarily contiguous or unique. The longest increasing subsequences are studied in the context of various disciplines related to mathematics, including algorithmics, random matrix theory, representation theory, and physics. The longest increasing subsequence problem is solvable in time where denotes the length of the input sequence.
In mathematics and 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 of terms characterized by a 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 k.
In mathematics the Baum–Sweet sequence is an infinite automatic sequence of 0s and 1s defined by the rule:
Anatoly Alexeyevich Karatsuba was a Russian mathematician working in the field of analytic number theory, p-adic numbers and Dirichlet series.
In mathematics, the Rudin–Shapiro sequence, also known as the Golay–Rudin–Shapiro sequence, is an infinite 2-automatic sequence named after Marcel Golay, Harold S. Shapiro, and Walter Rudin who investigated its properties.
In computer science, the complexity function of a word or string is the function that counts the number of distinct factors of that string. More generally, the complexity function of a formal language counts the number of distinct words of given length.
In mathematics and theoretical computer science, a pattern is an unavoidable pattern if it is unavoidable on any finite alphabet.
In mathematics, Kingman's subadditive ergodic theorem is one of several ergodic theorems. It can be seen as a generalization of Birkhoff's ergodic theorem. Intuitively, the subadditive ergodic theorem is a kind of random variable version of Fekete's lemma. As a result, it can be rephrased in the language of probability, e.g. using a sequence of random variables and expected values. The theorem is named after John Kingman.
In mathematics, an infinite sequence of numbers is called constant-recursive if it satisfies an equation of the form
Cobham's theorem is a theorem in combinatorics on words that has important connections with number theory, notably transcendental numbers, and automata theory. Informally, the theorem gives the condition for the members of a set S of natural numbers written in bases b1 and base b2 to be recognised by finite automata. Specifically, consider bases b1 and b2 such that they are not powers of the same integer. Cobham's theorem states that S written in bases b1 and b2 is recognised by finite automata if and only if S differs by a finite set from a finite union of arithmetic progressions. The theorem was proved by Alan Cobham in 1969 and has since given rise to many extensions and generalisations.