P-recursive equation

From HandWiki
Short description: Linear recurrence equation

In mathematics a P-recursive equation is a linear equation of sequences where the coefficient sequences can be represented as polynomials. P-recursive equations are linear recurrence equations (or linear recurrence relations or linear difference equations) with polynomial coefficients. These equations play an important role in different areas of mathematics, specifically in combinatorics. The sequences which are solutions of these equations are called holonomic, P-recursive or D-finite.

From the late 1980s, the first algorithms were developed to find solutions for these equations. Sergei A. Abramov, Marko Petkovšek and Mark van Hoeij described algorithms to find polynomial, rational, hypergeometric and d'Alembertian solutions.

Definition

Let [math]\displaystyle{ \mathbb{K} }[/math] be a field of characteristic zero (for example [math]\displaystyle{ \mathbb{K} = \mathbb{Q} }[/math]), [math]\displaystyle{ p_k(n) \in \mathbb{K} [n] }[/math] polynomials for [math]\displaystyle{ k = 0,\dots,r }[/math],[math]\displaystyle{ f \in \mathbb{K}^{\N} }[/math] a sequence and [math]\displaystyle{ y \in \mathbb{K}^{\N} }[/math] an unknown sequence. The equation[math]\displaystyle{ \sum_{k=0}^r p_k(n) \, y (n+k) = f(n) }[/math]is called a linear recurrence equation with polynomial coefficients (all recurrence equations in this article are of this form). If [math]\displaystyle{ p_0 }[/math] and [math]\displaystyle{ p_r }[/math] are both nonzero, then [math]\displaystyle{ r }[/math] is called the order of the equation. If [math]\displaystyle{ f }[/math] is zero the equation is called homogeneous, otherwise it is called inhomogeneous.

This can also be written as [math]\displaystyle{ L y = f }[/math] where [math]\displaystyle{ L=\sum_{k=0}^r p_k N^k }[/math] is a linear recurrence operator with polynomial coefficients and [math]\displaystyle{ N }[/math] is the shift operator, i.e. [math]\displaystyle{ N \, y (n) = y (n+1) }[/math].

Closed form solutions

Let [math]\displaystyle{ \sum_{k=0}^r p_k(n) \, y (n+k) = f(n) }[/math] or equivalently [math]\displaystyle{ Ly=f }[/math] be a recurrence equation with polynomial coefficients. There exist several algorithms which compute solutions of this equation. These algorithms can compute polynomial, rational, hypergeometric and d'Alembertian solutions. The solution of a homogeneous equation is given by the kernel of the linear recurrence operator: [math]\displaystyle{ \ker L = \{ y \in \mathbb{K}^\N \, : \, L y = 0\} }[/math]. As a subspace of the space of sequences this kernel has a basis.[1] Let [math]\displaystyle{ \{ y^{(1)}, y^{(2)}, \dots, y^{(m)} \} }[/math] be a basis of [math]\displaystyle{ \ker L }[/math], then the formal sum [math]\displaystyle{ c_1 y^{(1)} + \dots + c_m y^{(m)} }[/math] for arbitrary constants [math]\displaystyle{ c_1,\dots,c_m \in \mathbb{K} }[/math] is called the general solution of the homogeneous problem [math]\displaystyle{ Ly=0 }[/math]. If [math]\displaystyle{ \tilde{y} }[/math] is a particular solution of [math]\displaystyle{ Ly=f }[/math], i.e. [math]\displaystyle{ L \tilde{y}=f }[/math], then [math]\displaystyle{ c_1 y^{(1)} + \dots + c_m y^{(m)} + \tilde{y} }[/math] is also a solution of the inhomogeneous problem and it is called the general solution of the inhomogeneous problem.

Polynomial solutions

The other algorithms for finding more general solutions (e.g. rational or hypergeometric solutions) also rely on algorithms which compute polynomial solutions.

Rational solutions

Hypergeometric solution

Main page: Petkovšek's algorithmA sequence [math]\displaystyle{ y(n) }[/math] is called hypergeometric if the ratio of two consecutive terms is a rational function in [math]\displaystyle{ n }[/math], i.e. [math]\displaystyle{ y (n+1) / y(n) \in \mathbb{K} (n) }[/math]. This is the case if and only if the sequence is the solution of a first-order recurrence equation with polynomial coefficients. The set of hypergeometric sequences is not a subspace of the space of sequences as it is not closed under addition.

In 1992 Marko Petkovšek gave an algorithm to get the general hypergeometric solution of a recurrence equation where the right-hand side [math]\displaystyle{ f }[/math] is the sum of hypergeometric sequences. The algorithm makes use of the Gosper-Petkovšek normal-form of a rational function. With this specific representation it is again sufficient to consider polynomial solutions of a transformed equation.[2]

A different and more efficient approach is due to Mark van Hoeij. Considering the roots of the first and the last coefficient polynomial [math]\displaystyle{ p_0 }[/math] and [math]\displaystyle{ p_r }[/math] – called singularities – one can build a solution step by step making use of the fact that every hypergeometric sequence [math]\displaystyle{ y (n) }[/math] has a representation of the form[math]\displaystyle{ y (n) = c \, r(n)\, z^n \, \Gamma(n-\xi_1)^{e_1} \Gamma(n-\xi_2)^{e_2} \cdots \Gamma(n-\xi_s)^{e_s} }[/math]for some [math]\displaystyle{ c \in \mathbb{K}, z \in \overline{\mathbb{K}}, s \in \N, r(n) \in \overline\mathbb{K}(n), \xi_1, \dots, \xi_s \in \overline{\mathbb{K}} }[/math] with [math]\displaystyle{ \xi_i-\xi_j \notin \Z }[/math] for [math]\displaystyle{ i \neq j }[/math] and [math]\displaystyle{ e_1, \dots, e_s \in \Z }[/math]. Here [math]\displaystyle{ \Gamma (n) }[/math] denotes the Gamma function and [math]\displaystyle{ \overline{\mathbb{K}} }[/math] the algebraic closure of the field [math]\displaystyle{ \mathbb{K} }[/math]. Then the [math]\displaystyle{ \xi_1, \dots, \xi_s }[/math] have to be singularities of the equation (i.e. roots of [math]\displaystyle{ p_0 }[/math] or [math]\displaystyle{ p_r }[/math]). Furthermore one can compute bounds for the exponents [math]\displaystyle{ e_i }[/math]. For fixed values [math]\displaystyle{ \xi_1, \dots, \xi_s, e_1, \dots, e_s }[/math] it is possible to make an ansatz which gives candidates for [math]\displaystyle{ z }[/math]. For a specific [math]\displaystyle{ z }[/math] one can again make an ansatz to get the rational function [math]\displaystyle{ r(n) }[/math] by Abramov's algorithm. Considering all possibilities one gets the general solution of the recurrence equation.[3][4]

D'Alembertian solutions

A sequence [math]\displaystyle{ y }[/math] is called d'Alembertian if [math]\displaystyle{ y = h_1 \sum h_2 \sum \cdots \sum h_k }[/math] for some hypergeometric sequences [math]\displaystyle{ h_1,\dots,h_k }[/math] and [math]\displaystyle{ y=\sum x }[/math] means that [math]\displaystyle{ \Delta y = x }[/math] where [math]\displaystyle{ \Delta }[/math] denotes the difference operator, i.e. [math]\displaystyle{ \Delta y = N y - y = y (n+1) - y(n) }[/math]. This is the case if and only if there are first-order linear recurrence operators [math]\displaystyle{ L_1, \dots, L_k }[/math] with rational coefficients such that [math]\displaystyle{ L_k \cdots L_1 y = 0 }[/math].[5]

1994 Abramov and Petkovšek described an algorithm which computes the general d'Alembertian solution of a recurrence equation. This algorithm computes hypergeometric solutions and reduces the order of the recurrence equation recursively.[6]

Examples

Signed permutation matrices

The number of signed permutation matrices of size [math]\displaystyle{ n \times n }[/math] can be described by the sequence [math]\displaystyle{ y(n) \in \Q^{\N} }[/math]. A signed permutation matrix is a square matrix which has exactly one nonzero entry in every row and in every column. The nonzero entries can be [math]\displaystyle{ \pm 1 }[/math]. The sequence is determined by the linear recurrence equation with polynomial coefficients[math]\displaystyle{ y (n) = 4(n-1)^2 \, y (n-2) + 2 \, y (n-1) }[/math]and the initial values [math]\displaystyle{ y(0) = 1, y(1) = 2 }[/math]. Applying an algorithm to find hypergeometric solutions one can find the general hypergeometric solution[math]\displaystyle{ y (n) = c \, 2^n n! }[/math]for some constant [math]\displaystyle{ c }[/math]. Also considering the initial values, the sequence [math]\displaystyle{ y (n) = 2^n n! }[/math] describes the number of signed permutation matrices.[7]

Involutions

The number of involutions [math]\displaystyle{ y(n) }[/math] of a set with [math]\displaystyle{ n }[/math] elements is given by the recurrence equation[math]\displaystyle{ y (n) = (n-1) \, y (n-2) + y (n-1). }[/math]Applying for example Petkovšek's algorithm it is possible to see that there is no polynomial, rational or hypergeometric solution for this recurrence equation.[5]

Applications

A function [math]\displaystyle{ F(n,k) }[/math] is called hypergeometric if [math]\displaystyle{ F(n,k+1)/F(n,k), F(n+1,k)/F(n,k) \in \mathbb{K}(n,k) }[/math] where [math]\displaystyle{ \mathbb{K}(n,k) }[/math] denotes the rational functions in [math]\displaystyle{ n }[/math] and [math]\displaystyle{ k }[/math]. A hypergeometric sum is a finite sum of the form [math]\displaystyle{ f(n)=\sum_k F(n,k) }[/math] where [math]\displaystyle{ F(n,k) }[/math] is hypergeometric. Zeilberger's creative telescoping algorithm can transform such a hypergeometric sum into a recurrence equation with polynomial coefficients. This equation can then be solved to get for example a linear combination of hypergeometric solutions which is called a closed form solution of [math]\displaystyle{ f }[/math].[5]

References

  1. If sequences are considered equal if they are equal in almost all terms, then this basis is finite. More on this can be found in the book A=B by Petkovšek, Wilf and Zeilberger.
  2. Cite error: Invalid <ref> tag; no text was provided for refs named Petkovšek 1992
  3. van Hoeij, Mark (1999). "Finite singularities and hypergeometric solutions of linear recurrence equations". Journal of Pure and Applied Algebra 139 (1–3): 109–131. doi:10.1016/s0022-4049(99)00008-0. ISSN 0022-4049. 
  4. Cluzeau, Thomas; van Hoeij, Mark (2006). "Computing Hypergeometric Solutions of Linear Recurrence Equations" (in en). Applicable Algebra in Engineering, Communication and Computing 17 (2): 83–115. doi:10.1007/s00200-005-0192-x. ISSN 0938-1279. 
  5. 5.0 5.1 5.2 Cite error: Invalid <ref> tag; no text was provided for refs named Petkovšek 1996
  6. Abramov, Sergei A.; Petkovšek, Marko (1994). "D'Alembertian solutions of linear differential and difference equations". Proceedings of the international symposium on Symbolic and algebraic computation - ISSAC '94. ACM. pp. 169–174. doi:10.1145/190347.190412. ISBN 978-0897916387. 
  7. "A000165 - OEIS". https://oeis.org/A000165.