Constant-recursive sequence
Unsolved problem in mathematics: Is there an algorithm to test whether a constant-recursive sequence has a zero? (more unsolved problems in mathematics)
|
In mathematics and theoretical computer science, a constant-recursive sequence is an infinite sequence of numbers in which each number in the sequence is equal to a fixed linear combination of one or more of its immediate predecessors. The concept is variously known as a linear recurrence sequence, linear-recursive sequence, linear-recurrent sequence, a C-finite sequence,[1] or a solution to a linear recurrence with constant coefficients.
A prototypical example is the Fibonacci sequence [math]\displaystyle{ 0, 1, 1, 2, 3, 5, 8, 13, \ldots }[/math], in which each number is the sum of the previous two.[2] The power of two sequence [math]\displaystyle{ 1, 2, 4, 8, 16, \ldots }[/math] is also constant-recursive because each number is the sum of twice the previous number. The square number sequence [math]\displaystyle{ 0, 1, 4, 9, 16, 25, \ldots }[/math] is also constant-recursive. However, not all sequences are constant-recursive; for example, the factorial sequence [math]\displaystyle{ 1, 1, 2, 6, 24, 120, \ldots }[/math] is not constant-recursive. All arithmetic progressions, all geometric progressions, and all polynomials are constant-recursive.
Formally, a sequence of numbers [math]\displaystyle{ s_0, s_1, s_2, s_3, \ldots }[/math] is constant-recursive if it satisfies a recurrence relation
- [math]\displaystyle{ s_n = c_1 s_{n-1} + c_2 s_{n-2} + \dots + c_d s_{n-d}, }[/math]
where [math]\displaystyle{ c_i }[/math] are constants. For example, the Fibonacci sequence satisfies the recurrence relation [math]\displaystyle{ F_n = F_{n-1} + F_{n-2}, }[/math] where [math]\displaystyle{ F_n }[/math] is the [math]\displaystyle{ n }[/math]th Fibonacci number.
Constant-recursive sequences are studied in combinatorics and the theory of finite differences. They also arise in algebraic number theory, due to the relation of the sequence to polynomial roots; in the analysis of algorithms, as the running time of simple recursive functions; and in the theory of formal languages, where they count strings up to a given length in a regular language. Constant-recursive sequences are closed under important mathematical operations such as term-wise addition, term-wise multiplication, and Cauchy product.
The Skolem–Mahler–Lech theorem states that the zeros of a constant-recursive sequence have a regularly repeating (eventually periodic) form. On the other hand, the Skolem problem, which asks for an algorithm to determine whether a linear recurrence has at least one zero, remains unsolved.
Definition
A constant-recursive sequence is any sequence of integers, rational numbers, algebraic numbers, real numbers, or complex numbers [math]\displaystyle{ s_0, s_1, s_2, s_3, \ldots }[/math] (written as [math]\displaystyle{ (s_n)_{n=0}^\infty }[/math] as a shorthand) satisfying a formula of the form
- [math]\displaystyle{ s_n = c_1 s_{n-1} + c_2 s_{n-2} + \dots + c_d s_{n-d}, }[/math]
for all [math]\displaystyle{ n \ge d, }[/math] where [math]\displaystyle{ c_i }[/math] are constants. (This equation is called a linear recurrence with constant coefficients of order d.) The order of the constant-recursive sequence is the smallest [math]\displaystyle{ d \ge 1 }[/math] such that the sequence satisfies a formula of the above form, or [math]\displaystyle{ d = 0 }[/math] for the everywhere-zero sequence.
The d coefficients [math]\displaystyle{ c_1, c_2, \dots, c_d }[/math] must be coefficients ranging over the same domain as the sequence (integers, rational numbers, algebraic numbers, real numbers, or complex numbers). For example for a rational constant-recursive sequence, [math]\displaystyle{ s_i }[/math] and [math]\displaystyle{ c_i }[/math] must be rational numbers.
The definition above allows eventually-periodic sequences such as [math]\displaystyle{ 1, 0, 0, 0, \ldots }[/math] and [math]\displaystyle{ 0, 1, 0, 0, \ldots }[/math]. Some authors require that [math]\displaystyle{ c_d \ne 0 }[/math], which excludes such sequences.[3][4]
Examples
Name | Order ([math]\displaystyle{ d }[/math] ) | First few values | Recurrence (for [math]\displaystyle{ n \ge d }[/math] ) | Generating function | OEIS |
---|---|---|---|---|---|
Zero sequence | 0 | 0, 0, 0, 0, 0, 0, ... | [math]\displaystyle{ s_n = 0 }[/math] | [math]\displaystyle{ \frac{0}{1} }[/math] | A000004 |
One sequence | 1 | 1, 1, 1, 1, 1, 1, ... | [math]\displaystyle{ s_n = s_{n-1} }[/math] | [math]\displaystyle{ \frac{1}{1-x} }[/math] | A000012 |
Characteristic function of [math]\displaystyle{ \{0\} }[/math] | 1 | 1, 0, 0, 0, 0, 0, ... | [math]\displaystyle{ s_n = 0 }[/math] | [math]\displaystyle{ \frac{1}{1} }[/math] | A000007 |
Powers of two | 1 | 1, 2, 4, 8, 16, 32, ... | [math]\displaystyle{ s_n = 2 s_{n-1} }[/math] | [math]\displaystyle{ \frac{1}{1-2x} }[/math] | A000079 |
Powers of −1 | 1 | 1, −1, 1, −1, 1, −1, ... | [math]\displaystyle{ s_n = -s_{n-1} }[/math] | [math]\displaystyle{ \frac{1}{1+x} }[/math] | A033999 |
Characteristic function of [math]\displaystyle{ \{1\} }[/math] | 2 | 0, 1, 0, 0, 0, 0, ... | [math]\displaystyle{ s_n = 0 }[/math] | [math]\displaystyle{ \frac{x}{1} }[/math] | A063524 |
Decimal expansion of 1/6 | 2 | 1, 6, 6, 6, 6, 6, ... | [math]\displaystyle{ s_n = s_{n-1} }[/math] | [math]\displaystyle{ \frac{1 + 5x}{1 - x} }[/math] | A020793 |
Decimal expansion of 1/11 | 2 | 0, 9, 0, 9, 0, 9, ... | [math]\displaystyle{ s_n = s_{n-2} }[/math] | [math]\displaystyle{ \frac{9x}{1-x^2} }[/math] | A010680 |
Nonnegative integers | 2 | 0, 1, 2, 3, 4, 5, ... | [math]\displaystyle{ s_n = 2s_{n-1} - s_{n-2} }[/math] | [math]\displaystyle{ \frac{x}{(1-x)^2} }[/math] | A001477 |
Odd positive integers | 2 | 1, 3, 5, 7, 9, 11, ... | [math]\displaystyle{ s_n = 2s_{n-1} - s_{n-2} }[/math] | [math]\displaystyle{ \frac{1+x}{(1-x)^2} }[/math] | A005408 |
Fibonacci numbers | 2 | 0, 1, 1, 2, 3, 5, 8, 13, ... | [math]\displaystyle{ s_n = s_{n-1} + s_{n-2} }[/math] | [math]\displaystyle{ \frac{x}{1-x-x^2} }[/math] | A000045 |
Lucas numbers | 2 | 2, 1, 3, 4, 7, 11, 18, 29, ... | [math]\displaystyle{ s_n = s_{n-1} + s_{n-2} }[/math] | [math]\displaystyle{ \frac{2-x}{1-x-x^2} }[/math] | A000032 |
Pell numbers | 2 | 0, 1, 2, 5, 12, 29, 70, ... | [math]\displaystyle{ s_n = 2s_{n-1} + s_{n-2} }[/math] | [math]\displaystyle{ \frac{x}{1-2x-x^2} }[/math] | A000129 |
Powers of two interleaved with 0s | 2 | 1, 0, 2, 0, 4, 0, 8, 0, ... | [math]\displaystyle{ s_n = 2 s_{n-2} }[/math] | [math]\displaystyle{ \frac{1}{1-2x^2} }[/math] | A077957 |
Inverse of 6th cyclotomic polynomial | 2 | 1, 1, 0, −1, −1, 0, 1, 1, ... | [math]\displaystyle{ s_n = s_{n-1} - s_{n-2} }[/math] | [math]\displaystyle{ \frac{1}{1-x+x^2} }[/math] | A010892 |
Triangular numbers | 3 | 0, 1, 3, 6, 10, 15, 21, ... | [math]\displaystyle{ s_n = 3s_{n-1} - 3s_{n-2} + s_{n-3} }[/math] | [math]\displaystyle{ \frac{x}{(1-x)^3} }[/math] | A000217 |
Fibonacci and Lucas sequences
The sequence 0, 1, 1, 2, 3, 5, 8, 13, ... of Fibonacci numbers is constant-recursive of order 2 because it satisfies the recurrence [math]\displaystyle{ F_n = F_{n-1} + F_{n-2} }[/math] with [math]\displaystyle{ F_0 = 0, F_1 = 1 }[/math]. For example, [math]\displaystyle{ F_2 = F_1 + F_0 = 1 + 0 = 1 }[/math] and [math]\displaystyle{ F_6 = F_5 + F_4 = 5 + 3 = 8 }[/math]. The sequence 2, 1, 3, 4, 7, 11, ... of Lucas numbers satisfies the same recurrence as the Fibonacci sequence but with initial conditions [math]\displaystyle{ L_0 = 2 }[/math] and [math]\displaystyle{ L_1 = 1 }[/math]. More generally, every Lucas sequence is constant-recursive of order 2.[2]
Arithmetic progressions
For any [math]\displaystyle{ a }[/math] and any [math]\displaystyle{ r \ne 0 }[/math], the arithmetic progression [math]\displaystyle{ a, a+r, a+2r, \ldots }[/math] is constant-recursive of order 2, because it satisfies [math]\displaystyle{ s_n = 2s_{n-1} - s_{n-2} }[/math]. Generalizing this, see polynomial sequences below.
Geometric progressions
For any [math]\displaystyle{ a \ne 0 }[/math] and [math]\displaystyle{ r }[/math], the geometric progression [math]\displaystyle{ a, a r, a r^2, \ldots }[/math] is constant-recursive of order 1, because it satisfies [math]\displaystyle{ s_n = r s_{n-1} }[/math]. This includes, for example, the sequence 1, 2, 4, 8, 16, ... as well as the rational number sequence [math]\displaystyle{ 1, \frac12, \frac14, \frac18, \frac{1}{16}, ... }[/math].
Eventually periodic sequences
A sequence that is eventually periodic with period length [math]\displaystyle{ \ell }[/math] is constant-recursive, since it satisfies [math]\displaystyle{ s_n = s_{n-\ell} }[/math] for all [math]\displaystyle{ n \geq d }[/math], where the order [math]\displaystyle{ d }[/math] is the length of the initial segment including the first repeating block. Examples of such sequences are 1, 0, 0, 0, ... (order 1) and 1, 6, 6, 6, ... (order 2).
Polynomial sequences
A sequence defined by a polynomial [math]\displaystyle{ s_n = a_0 + a_1 n + a_2 n^2 + \cdots + a_d n^d }[/math] is constant-recursive. The sequence satisfies a recurrence of order [math]\displaystyle{ d + 1 }[/math] (where [math]\displaystyle{ d }[/math] is the degree of the polynomial), with coefficients given by the corresponding element of the binomial transform.[5][6] The first few such equations are
- [math]\displaystyle{ s_n = 1 \cdot s_{n-1} }[/math] for a degree 0 (that is, constant) polynomial,
- [math]\displaystyle{ s_n = 2\cdot s_{n-1} - 1\cdot s_{n-2} }[/math] for a degree 1 or less polynomial,
- [math]\displaystyle{ s_n = 3\cdot s_{n-1} - 3\cdot s_{n-2} + 1\cdot s_{n-3} }[/math] for a degree 2 or less polynomial, and
- [math]\displaystyle{ s_n = 4\cdot s_{n-1} - 6\cdot s_{n-2} + 4\cdot s_{n-3} - 1\cdot s_{n-4} }[/math] for a degree 3 or less polynomial.
A sequence obeying the order-d equation also obeys all higher order equations. These identities may be proved in a number of ways, including via the theory of finite differences.[7] Any sequence of [math]\displaystyle{ d + 1 }[/math] integer, real, or complex values can be used as initial conditions for a constant-recursive sequence of order [math]\displaystyle{ d + 1 }[/math]. If the initial conditions lie on a polynomial of degree [math]\displaystyle{ d - 1 }[/math] or less, then the constant-recursive sequence also obeys a lower order equation.
Enumeration of words in a regular language
Let [math]\displaystyle{ L }[/math] be a regular language, and let [math]\displaystyle{ s_n }[/math] be the number of words of length [math]\displaystyle{ n }[/math] in [math]\displaystyle{ L }[/math]. Then [math]\displaystyle{ (s_n)_{n=0}^\infty }[/math] is constant-recursive.[8] For example, [math]\displaystyle{ s_n = 2^n }[/math] for the language of all binary strings, [math]\displaystyle{ s_n = 1 }[/math] for the language of all unary strings, and [math]\displaystyle{ s_n = F_{n+2} }[/math] for the language of all binary strings that do not have two consecutive ones. More generally, any function accepted by a weighted automaton over the unary alphabet [math]\displaystyle{ \Sigma = \{a\} }[/math] over the semiring [math]\displaystyle{ (\mathbb{R}, +, \times) }[/math] (which is in fact a ring, and even a field) is constant-recursive.
Other examples
The sequences of Jacobsthal numbers, Padovan numbers, Pell numbers, and Perrin numbers[2] are constant-recursive.
Non-examples
The factorial sequence [math]\displaystyle{ 1, 1, 2, 6, 24, 120, 720, \ldots }[/math] is not constant-recursive. More generally, every constant-recursive function is asymptotically bounded by an exponential function (see #Closed-form characterization) and the factorial sequence grows faster than this.
The Catalan sequence [math]\displaystyle{ 1, 1, 2, 5, 14, 42, 132, \ldots }[/math] is not constant-recursive. This is because the generating function of the Catalan numbers is not a rational function (see #Equivalent definitions).
Equivalent definitions
In terms of matrices
[math]\displaystyle{ F_n = \begin{bmatrix}0 & 1\end{bmatrix} \begin{bmatrix}1 & 1 \\ 1 & 0\end{bmatrix}^n \begin{bmatrix}1 \\ 0\end{bmatrix}. }[/math] |
A sequence [math]\displaystyle{ (s_n)_{n=0}^\infty }[/math] is constant-recursive of order [math]\displaystyle{ \le d }[/math] if and only if it can be written as
- [math]\displaystyle{ s_n = u A^n v }[/math]
where [math]\displaystyle{ u }[/math] is a [math]\displaystyle{ 1 \times d }[/math] vector, [math]\displaystyle{ A }[/math] is a [math]\displaystyle{ d \times d }[/math] matrix, and [math]\displaystyle{ v }[/math] is a [math]\displaystyle{ d \times 1 }[/math] vector, where the elements come from the same domain (integers, rational numbers, algebraic numbers, real numbers, or complex numbers) as the original sequence. Specifically, [math]\displaystyle{ v }[/math] can be taken to be the first [math]\displaystyle{ d }[/math] values of the sequence, [math]\displaystyle{ A }[/math] the linear transformation that computes [math]\displaystyle{ s_{n+1}, s_{n+2}, \ldots, s_{n+d} }[/math] from [math]\displaystyle{ s_n, s_{n+1}, \ldots, s_{n+d-1} }[/math], and [math]\displaystyle{ u }[/math] the vector [math]\displaystyle{ [0, 0, \ldots, 0, 1] }[/math].[9]
In terms of non-homogeneous linear recurrences
Non-homogeneous | Homogeneous |
---|---|
[math]\displaystyle{ s_n = 1 + s_{n-1} }[/math] | [math]\displaystyle{ s_n = 2s_{n-1} - s_{n-2} }[/math] |
[math]\displaystyle{ s_0 = 0 }[/math] | [math]\displaystyle{ s_0 = 0; s_1 = 1 }[/math] |
A non-homogeneous linear recurrence is an equation of the form
- [math]\displaystyle{ s_n = c_1 s_{n-1} + c_2 s_{n-2} + \dots + c_d s_{n-d} + c }[/math]
where [math]\displaystyle{ c }[/math] is an additional constant. Any sequence satisfying a non-homogeneous linear recurrence is constant-recursive. This is because subtracting the equation for [math]\displaystyle{ s_{n-1} }[/math] from the equation for [math]\displaystyle{ s_n }[/math] yields a homogeneous recurrence for [math]\displaystyle{ s_n - s_{n-1} }[/math], from which we can solve for [math]\displaystyle{ s_n }[/math] to obtain
- [math]\displaystyle{ \begin{align}s_n = &(c_1 + 1) s_{n-1} \\ &+ (c_2 - c_1) s_{n-2} + \dots + (c_d - c_{d-1}) s_{n-d} \\&- c_d s_{n-d-1}.\end{align} }[/math]
In terms of generating functions
[math]\displaystyle{ \sum_{n = 0}^\infty F_n x^n = \frac{x}{1-x-x^2}. }[/math] |
A sequence is constant-recursive precisely when its generating function
- [math]\displaystyle{ \sum_{n = 0}^\infty s_n x^n = s_0 + s_1 x^1 + s_2 x^2 + s_3 x^3 + \cdots }[/math]
is a rational function [math]\displaystyle{ \frac{p(x)}{q(x)} }[/math], where [math]\displaystyle{ p }[/math] and [math]\displaystyle{ q }[/math] are polynomials and [math]\displaystyle{ q(0) \ne 0 }[/math]. The denominator is the polynomial obtained from the auxiliary polynomial by reversing the order of the coefficients, and the numerator is determined by the initial values of the sequence.[10] [11]
The explicit derivation of the generating function in terms of the linear recurrence is
- [math]\displaystyle{ \sum_{n = 0}^\infty s_n x^n = \frac{b_0 + b_1 x^1 + b_2 x^2 + \dots + b_{d-1} x^{d-1}}{1 - c_1 x^1 - c_2 x^2 - \dots - c_d x^d}, }[/math]
where
- [math]\displaystyle{ b_n = s_n - c_1 s_{n-1} - c_2 s_{n-2} - \dots - c_d s_{n-d}. }[/math]
It follows from the above that the denominator here must be a polynomial not divisible by [math]\displaystyle{ x }[/math] (and in particular nonzero).
In terms of sequence spaces
[math]\displaystyle{ \{(a n + b)_{n=0}^\infty : a, b \in \mathbb{R}\} }[/math] |
A sequence [math]\displaystyle{ (s_n)_{n=0}^\infty }[/math] is constant-recursive if and only if the set of sequences
- [math]\displaystyle{ \left\{(s_{n+r})_{n=0}^\infty : r \geq 0\right\} }[/math]
is contained in a sequence space (vector space of sequences) whose dimension is finite. That is, [math]\displaystyle{ (s_n)_{n=0}^\infty }[/math] is contained in a finite-dimensional subspace of [math]\displaystyle{ \mathbb{C}^\mathbb{N} }[/math] closed under the left-shift operator.[12]
This characterization is because the order-[math]\displaystyle{ d }[/math] linear recurrence relation can be understood as a proof of linear dependence between the sequences [math]\displaystyle{ (s_{n+r})_{n=0}^\infty }[/math] for [math]\displaystyle{ r=0, \ldots, d }[/math]. An extension of this argument shows that the order of the sequence is equal to the dimension of the sequence space generated by [math]\displaystyle{ (s_{n+r})_{n=0}^\infty }[/math] for all [math]\displaystyle{ r }[/math].[13]
Closed-form characterization
[math]\displaystyle{ F_n = \frac{1}{\sqrt{5}}(1.618\ldots)^n - \frac{1}{\sqrt{5}}(-0.618\ldots)^n }[/math] |
Constant-recursive sequences admit the following unique closed form characterization using exponential polynomials: every constant-recursive sequence can be written in the form[14]
- [math]\displaystyle{ s_n = z_n + k_1(n) r_1^n + k_2(n) r_2^n + \cdots + k_e(n) r_e^n, }[/math]
where
- [math]\displaystyle{ z_n }[/math] is a sequence which is zero for all [math]\displaystyle{ n \ge d }[/math] (the order of the sequence);
- [math]\displaystyle{ k_1(n), k_2(n), \ldots, k_e(n) }[/math] are complex polynomials; and
- [math]\displaystyle{ r_1, r_2, \ldots, r_k }[/math] are distinct complex constants.
This characterization is exact: every sequence of complex numbers that can be written in the above form is constant-recursive.[15]
For example, the Fibonacci number [math]\displaystyle{ F_n }[/math] is written in this form using Binet's formula:[16]
- [math]\displaystyle{ F_n = \frac{1}{\sqrt{5}}\varphi^n - \frac{1}{\sqrt{5}}\psi^n, }[/math]
where [math]\displaystyle{ \varphi = \frac{1 + \sqrt{5}}{2} \approx 1.61803\ldots }[/math] is the golden ratio and [math]\displaystyle{ \psi = \frac{-1}{\varphi} }[/math], both roots of the equation [math]\displaystyle{ x^2 - x - 1 = 0 }[/math]. In this case, [math]\displaystyle{ e=2 }[/math], [math]\displaystyle{ z_n = 0 }[/math] for all [math]\displaystyle{ n }[/math], [math]\displaystyle{ k_1(n) = k_2(n) = \frac{1}{\sqrt{5}} }[/math] (constant polynomials), [math]\displaystyle{ r_1 = \varphi }[/math], and [math]\displaystyle{ r_2 = \psi }[/math]. Notice that though the original sequence was over the integers, the closed form solution involves real or complex roots. In general, for sequences of integers or rationals, the closed formula will use algebraic numbers.
The complex numbers [math]\displaystyle{ r_1, \ldots, r_n }[/math] are the roots of the characteristic polynomial (or "auxiliary polynomial") of the recurrence:
- [math]\displaystyle{ x^d - c_1 x^{d-1} - \dots - c_{d-1} x - c_d }[/math]
whose coefficients are the same as those of the recurrence.[17] If the [math]\displaystyle{ d }[/math] roots [math]\displaystyle{ r_1, r_2, \dots, r_d }[/math] are all distinct, then the polynomials [math]\displaystyle{ k_i(n) }[/math] are all constants, which can be determined from the initial values of the sequence. If the roots of the characteristic polynomial are not distinct, and [math]\displaystyle{ r_i }[/math] is a root of multiplicity [math]\displaystyle{ m }[/math], then [math]\displaystyle{ k_i(n) }[/math] in the formula has degree [math]\displaystyle{ m - 1 }[/math]. For instance, if the characteristic polynomial factors as [math]\displaystyle{ (x-r)^3 }[/math], with the same root r occurring three times, then the [math]\displaystyle{ n }[/math]th term is of the form [math]\displaystyle{ s_n = (a + b n + c n^2) r^n. }[/math][18][19]
The term [math]\displaystyle{ z_n }[/math] is only needed when [math]\displaystyle{ c_d\ne 0 }[/math]; if [math]\displaystyle{ c_d = 0 }[/math] then it corrects for the fact that some initial values may be exceptions to the general recurrence. In particular, [math]\displaystyle{ z_n = 0 }[/math] for all [math]\displaystyle{ n \ge d }[/math], the order of the sequence.
Closure properties
Examples
The sum of two constant-recursive sequences is also constant-recursive.[20][21] For example, the sum of [math]\displaystyle{ s_n = 2^n }[/math] and [math]\displaystyle{ t_n = n }[/math] is [math]\displaystyle{ u_n = 2^n + n }[/math] ([math]\displaystyle{ 1, 3, 6, 11, 20, \ldots }[/math]), which satisfies the recurrence [math]\displaystyle{ u_n = 4u_{n-1} - 5u_{n-2} + 2u_{n-3} }[/math]. The new recurrence can be found by adding the generating functions for each sequence.
Similarly, the product of two constant-recursive sequences is constant-recursive.[20] For example, the product of [math]\displaystyle{ s_n = 2^n }[/math] and [math]\displaystyle{ t_n = n }[/math] is [math]\displaystyle{ u_n = n \cdot 2^n }[/math] ([math]\displaystyle{ 0, 2, 8, 24, 64, \ldots }[/math]), which satisfies the recurrence [math]\displaystyle{ u_n = 4 u_{n-1} - 4 u_{n-2} }[/math].
The left-shift sequence [math]\displaystyle{ u_n = s_{n + 1} }[/math] and the right-shift sequence [math]\displaystyle{ u_n = s_{n - 1} }[/math] (with [math]\displaystyle{ u_0 = 0 }[/math]) are constant-recursive because they satisfy the same recurrence relation. For example, because [math]\displaystyle{ s_n = 2^n }[/math] is constant-recursive, so is [math]\displaystyle{ u_n = 2^{n + 1} }[/math].
List of operations
In general, constant-recursive sequences are closed under the following operations, where [math]\displaystyle{ s = (s_n)_{n \in \mathbb{N}}, t = (t_n)_{n \in \mathbb{N}} }[/math] denote constant-recursive sequences, [math]\displaystyle{ f(x), g(x) }[/math] are their generating functions, and [math]\displaystyle{ d, e }[/math] are their orders, respectively.
Operation | Definition | Requirement | Generating function equivalent | Order |
---|---|---|---|---|
Term-wise sum [math]\displaystyle{ s + t }[/math] | [math]\displaystyle{ (s + t)_n = s_n + t_n }[/math] | — | [math]\displaystyle{ f(x) + g(x) }[/math] | [math]\displaystyle{ \le d + e }[/math][20] |
Term-wise product [math]\displaystyle{ s \cdot t }[/math] | [math]\displaystyle{ (s \cdot t)_n = s_n \cdot t_n }[/math] | — | — | [math]\displaystyle{ \le d \cdot e }[/math][9][20] |
Cauchy product [math]\displaystyle{ s * t }[/math] | [math]\displaystyle{ (s * t)_n = \sum_{i=0}^n s_i t_{n-i} }[/math] | — | [math]\displaystyle{ f(x) g(x) }[/math] | [math]\displaystyle{ \le d + e }[/math] |
Left shift [math]\displaystyle{ Ls }[/math] | [math]\displaystyle{ (Ls)_n = s_{n+1} }[/math] | — | [math]\displaystyle{ \frac{f(x) - s_0}{x} }[/math] | [math]\displaystyle{ \le d }[/math] |
Right shift [math]\displaystyle{ Rs }[/math] | [math]\displaystyle{ (Rs)_n = \begin{cases}s_{n-1} &n \ge 1\\0 &n = 0\end{cases} }[/math] | — | [math]\displaystyle{ x f(x) }[/math] | [math]\displaystyle{ \le d + 1 }[/math] |
Cauchy inverse [math]\displaystyle{ s^{(-1)} }[/math] | [math]\displaystyle{ (s^{(-1)})_n = \sum_{{i_1 + \dots + i_k = n} \atop {i_1, \ldots, i_k \ne 0}} (-1)^k s_{i_1} s_{i_2} \cdots s_{i_k} }[/math] | [math]\displaystyle{ s_0 = 1 }[/math] | [math]\displaystyle{ \frac{1}{f(x)} }[/math] | [math]\displaystyle{ \le \max(2d-1, 2) }[/math] |
Kleene star [math]\displaystyle{ s^{(*)} }[/math] | [math]\displaystyle{ (s^{(*)})_n = \sum_{{i_1 + \dots + i_k = n} \atop {i_1, \ldots, i_k \ne 0}} s_{i_1} s_{i_2} \cdots s_{i_k} }[/math] | [math]\displaystyle{ s_0 = 0 }[/math] | [math]\displaystyle{ \frac{1}{1 - f(x)} }[/math] | [math]\displaystyle{ \le \max(2d-1,2) }[/math] |
The closure under term-wise addition and multiplication follows from the closed-form characterization in terms of exponential polynomials. The closure under Cauchy product follows from the generating function characterization. The requirement [math]\displaystyle{ s_0 = 1 }[/math] for Cauchy inverse is necessary for the case of integer sequences, but can be replaced by [math]\displaystyle{ s_0 \ne 0 }[/math] if the sequence is over any field (rational, algebraic, real, or complex numbers).
Behavior
Zeros
Despite satisfying a simple local formula, a constant-recursive sequence can exhibit complicated global behavior. Define a zero of a constant-recursive sequence to be a nonnegative integer [math]\displaystyle{ n }[/math] such that [math]\displaystyle{ s_n = 0 }[/math]. The Skolem–Mahler–Lech theorem states that the zeros of the sequence are eventually repeating: there exists constants [math]\displaystyle{ M }[/math] and [math]\displaystyle{ N }[/math] such that for all [math]\displaystyle{ n \gt M }[/math], [math]\displaystyle{ s_n = 0 }[/math] if and only if [math]\displaystyle{ s_{n+N} = 0 }[/math]. This result holds for a constant-recursive sequence over the complex numbers, or more generally, over any field of characteristic zero.[22]
Decision problems
The pattern of zeros in a constant-recursive sequence can also be investigated from the perspective of computability theory. To do so, the description of the sequence [math]\displaystyle{ s_n }[/math] must be given a finite description; this can be done if the sequence is over the integers or rational numbers, or even over the algebraic numbers.[9] Given such an encoding for sequences [math]\displaystyle{ s_n }[/math], the following problems can be studied:
Problem | Description | Status[9][23] |
---|---|---|
Existence of a zero (Skolem problem) | On input [math]\displaystyle{ (s_n)_{n=0}^\infty }[/math], is [math]\displaystyle{ s_n = 0 }[/math] for some [math]\displaystyle{ n }[/math]? | Open |
Infinitely many zeros | On input [math]\displaystyle{ (s_n)_{n=0}^\infty }[/math], is [math]\displaystyle{ s_n = 0 }[/math] for infinitely many [math]\displaystyle{ n }[/math]? | Decidable |
Eventually all zero | On input [math]\displaystyle{ (s_n)_{n=0}^\infty }[/math], is [math]\displaystyle{ s_n = 0 }[/math] for all sufficiently large [math]\displaystyle{ n }[/math]? | Decidable |
Positivity | On input [math]\displaystyle{ (s_n)_{n=0}^\infty }[/math], is [math]\displaystyle{ s_n \gt 0 }[/math] for all [math]\displaystyle{ n }[/math]? | Open |
Eventual positivity | On input [math]\displaystyle{ (s_n)_{n=0}^\infty }[/math], is [math]\displaystyle{ s_n \gt 0 }[/math] for all sufficiently large [math]\displaystyle{ n }[/math]? | Open |
Because the square of a constant-recursive sequence [math]\displaystyle{ s_n^2 }[/math] is still constant-recursive (see closure properties), the existence-of-a-zero problem in the table above reduces to positivity, and infinitely-many-zeros reduces to eventual positivity. Other problems also reduce to those in the above table: for example, whether [math]\displaystyle{ s_n = c }[/math] for some [math]\displaystyle{ n }[/math] reduces to existence-of-a-zero for the sequence [math]\displaystyle{ s_n - c }[/math]. As a second example, for sequences in the real numbers, weak positivity (is [math]\displaystyle{ s_n \ge 0 }[/math] for all [math]\displaystyle{ n }[/math]?) reduces to positivity of the sequence [math]\displaystyle{ -s_n }[/math] (because the answer must be negated, this is a Turing reduction).
The Skolem-Mahler-Lech theorem would provide answers to some of these questions, except that its proof is non-constructive. It states that for all [math]\displaystyle{ n \gt M }[/math], the zeros are repeating; however, the value of [math]\displaystyle{ M }[/math] is not known to be computable, so this does not lead to a solution to the existence-of-a-zero problem.[9] On the other hand, the exact pattern which repeats after [math]\displaystyle{ n \gt M }[/math] is computable.[9][24] This is why the infinitely-many-zeros problem is decidable: just determine if the infinitely-repeating pattern is empty.
Decidability results are known when the order of a sequence is restricted to be small. For example, the Skolem problem is decidable for sequences of order up to 4,[9] and for a restricted set of sequences up to order 7.[23]
Generalizations
- A holonomic sequence is a natural generalization where the coefficients of the recurrence are allowed to be polynomial functions of [math]\displaystyle{ n }[/math] rather than constants.
- A [math]\displaystyle{ k }[/math]-regular sequence satisfies a linear recurrences with constant coefficients, but the recurrences take a different form. Rather than [math]\displaystyle{ s_n }[/math] being a linear combination of [math]\displaystyle{ s_m }[/math] for some integers [math]\displaystyle{ m }[/math] that are close to [math]\displaystyle{ n }[/math], each term [math]\displaystyle{ s_n }[/math] in a [math]\displaystyle{ k }[/math]-regular sequence is a linear combination of [math]\displaystyle{ s_m }[/math] for some integers [math]\displaystyle{ m }[/math] whose base-[math]\displaystyle{ k }[/math] representations are close to that of [math]\displaystyle{ n }[/math]. Constant-recursive sequences can be thought of as [math]\displaystyle{ 1 }[/math]-regular sequences, where the base-1 representation of [math]\displaystyle{ n }[/math] consists of [math]\displaystyle{ n }[/math] copies of the digit [math]\displaystyle{ 1 }[/math].
Notes
- ↑ Kauers & Paule 2010, p. 63.
- ↑ 2.0 2.1 2.2 Kauers & Paule 2010, p. 70.
- ↑ Halava, Vesa; Harju, Tero; Hirvensalo, Mika; Karhumäki, Juhani (2005), Skolem's Problem – On the Border between Decidability and Undecidability, p. 1
- ↑ Kauers & Paule 2010, p. 66.
- ↑ Boyadzhiev, Boyad (2012). "Close Encounters with the Stirling Numbers of the Second Kind". Math. Mag. 85 (4): 252–266. doi:10.4169/math.mag.85.4.252. https://www.maa.org/sites/default/files/pdf/upload_library/2/Boyadzhiev-2013.pdf.
- ↑ Riordan, John (1964). "Inverse Relations and Combinatorial Identities" (in en). The American Mathematical Monthly 71 (5): 485–498. doi:10.1080/00029890.1964.11992269. ISSN 0002-9890. https://www.tandfonline.com/doi/full/10.1080/00029890.1964.11992269.
- ↑ Jordan, Charles; Jordán, Károly (1965) (in en). Calculus of Finite Differences. American Mathematical Soc.. pp. 9–11. ISBN 978-0-8284-0033-6. https://books.google.com/books?id=3RfZOsDAyQsC&dq=theory+of+finite+differences&pg=PA1. See formula on p.9, top.
- ↑ Kauers & Paule 2010, p. 81.
- ↑ 9.0 9.1 9.2 9.3 9.4 9.5 9.6 Ouaknine, Joël; Worrell, James (2012), "Decision problems for linear recurrence sequences", Reachability Problems: 6th International Workshop, RP 2012, Bordeaux, France, September 17–19, 2012, Proceedings, Lecture Notes in Computer Science, 7550, Heidelberg: Springer-Verlag, pp. 21–28, doi:10.1007/978-3-642-33512-9_3.
- ↑ Martino, Ivan; Martino, Luca (2013-11-14). "On the variety of linear recurrences and numerical semigroups" (in en). Semigroup Forum 88 (3): 569–574. doi:10.1007/s00233-013-9551-2. ISSN 0037-1912.
- ↑ Kauers & Paule 2010, p. 74.
- ↑ Kauers & Paule 2010, p. 67.
- ↑ Kauers & Paule 2010, p. 69.
- ↑ Brousseau 1971, pp. 28-34, Lesson 5.
- ↑ Kauers & Paule 2010, pp. 68-70.
- ↑ Brousseau 1971, p. 16, Lesson 3.
- ↑ Brousseau 1971, p. 28, Lesson 5.
- ↑ Greene, Daniel H.; Knuth, Donald E. (1982), "2.1.1 Constant coefficients – A) Homogeneous equations", Mathematics for the Analysis of Algorithms (2nd ed.), Birkhäuser, p. 17.
- ↑ Brousseau 1971, pp. 29-31, Lesson 5.
- ↑ 20.0 20.1 20.2 20.3 Kauers & Paule 2010, p. 71.
- ↑ Brousseau 1971, p. 37, Lesson 6.
- ↑ Lech, C. (1953), "A Note on Recurring Series", Arkiv för Matematik 2 (5): 417–421, doi:10.1007/bf02590997, Bibcode: 1953ArM.....2..417L
- ↑ 23.0 23.1 Lipton, Richard; Luca, Florian; Nieuwveld, Joris; Ouaknine, Joël; Purser, David; Worrell, James (2022-08-04). "On the Skolem Problem and the Skolem Conjecture". Proceedings of the 37th Annual ACM/IEEE Symposium on Logic in Computer Science. LICS '22 (New York, NY, USA: Association for Computing Machinery): 1–9. doi:10.1145/3531130.3533328. ISBN 978-1-4503-9351-5. https://dl.acm.org/doi/10.1145/3531130.3533328.
- ↑ Berstel, Jean; Mignotte, Maurice (1976). "Deux propriétés décidables des suites récurrentes linéaires" (in fr). Bulletin de la Société Mathématique de France 104: 175–184. doi:10.24033/bsmf.1823.
References
- Kauers, Manuel; Paule, Peter (2010-12-01) (in en). The Concrete Tetrahedron: Symbolic Sums, Recurrence Equations, Generating Functions, Asymptotic Estimates. Springer Vienna. pp. 66. ISBN 978-3-7091-0444-6. https://books.google.com/books?id=BPeODAEACAAJ.
- Brousseau, Alfred (1971). Linear Recursion and Fibonacci Sequences. Fibonacci Association. http://www.fq.math.ca/linear.html.
External links
- "OEIS Index Rec". http://oeis.org/wiki/Index_to_OEIS:_Section_Rec. OEIS index to a few thousand examples of linear recurrences, sorted by order (number of terms) and signature (vector of values of the constant coefficients)
Original source: https://en.wikipedia.org/wiki/Constant-recursive sequence.
Read more |