Cannabis Ruderalis

Content deleted Content added
→‎Closed-form characterizations: state closed form up front, restructure, expand
Tags: 2017 wikitext editor Disambiguation links added
Tag: 2017 wikitext editor
Line 98: Line 98:
:<math>s(n) = (a + b n + c n^2) r^n.</math><ref>{{citation|contribution=2.1.1 Constant coefficients – A) Homogeneous equations|title=Mathematics for the Analysis of Algorithms|first1=Daniel H.|last1=Greene|first2=Donald E.|last2=Knuth|author2-link=Donald Knuth| edition=2nd| publisher=Birkhäuser |page=17 | year=1982}}.</ref>
:<math>s(n) = (a + b n + c n^2) r^n.</math><ref>{{citation|contribution=2.1.1 Constant coefficients – A) Homogeneous equations|title=Mathematics for the Analysis of Algorithms|first1=Daniel H.|last1=Greene|first2=Donald E.|last2=Knuth|author2-link=Donald Knuth| edition=2nd| publisher=Birkhäuser |page=17 | year=1982}}.</ref>


== Generating function characterization ==
=== Generating function view ===


A sequence is constant-recursive precisely when its [[generating function]]
A sequence is constant-recursive precisely when its [[generating function]]

Revision as of 01:32, 12 November 2021

The Fibonacci sequence is constant-recursive: each element of the sequence is the sum of the previous two.
Hasse diagram of some subsets of constant-recursive sequences, ordered by inclusion

In mathematics and theoretical computer science, a constant-recursive sequence or linear recurrence sequence is an infinite sequence of numbers in which each number in the sequence is equal to a linear combination of one or more of its immediate predecessors.

The most famous example of a constant-recursive sequence is the Fibonacci sequence, in which each number is the sum of the previous two; formally, we say that it satisfies the linear recurrence relation , where is the th Fibonacci number. Generalizing this idea, a constant-recursive sequence satisfies a formula of the form

where are constants. In addition to the Fibonacci sequence, constant-recursive sequences include many other well-known sequences, such as arithmetic progressions, geometric progressions, and polynomials.

Constant-recursive sequences arise in combinatorics and the theory of finite differences; in algebraic number theory, due to the relation of the sequence to the roots of a polynomial; in the analysis of algorithms in the running time of simple recursive functions; and in formal language theory, where they count strings up to a given length in a regular language. Constant-recursive sequences are closed under important mathematical operations such as pointwise addition, pointwise multiplication, and Cauchy product. A seminal result is the Skolem–Mahler–Lech theorem, which 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 algorithm to determine whether a linear recurrence has at least one zero, remains one of the unsolved problems in mathematics.

Definition

An order-d homogeneous linear recurrence relation is an equation of the form

where the d coefficients are coefficients ranging over the integers, rational numbers, algebraic numbers, real numbers, or complex numbers.

A sequence (ranging over the same domain as the coefficients) is a constant-recursive sequence if there is an order-d homogeneous linear recurrence with constant coefficients that it satisfies for all . Note that this definition allows eventually-periodic sequences such as and , which are disallowed by some authors.[1] These sequences can be excluded by requiring that .

The order of a constant-recursive sequence is the smallest such that the sequence satisfies an order-d homogeneous linear recurrence, or for the everywhere-zero sequence.

Equivalent definitions

In terms of vector spaces

A sequence is constant-recursive if and only if the set of sequences

is contained in a vector space whose dimension is finite, i.e. a finite-dimensional subspace of closed under the left-shift operator. This is because the order- linear recurrence relation can be understood as a proof of linear dependence between the vectors for . An extension of this argument shows that the order of the sequence is equal to the dimension of the vector space generated by for all .

In terms of non-homogeneous linear recurrences

A non-homogeneous linear recurrence is an equation of the form

where is an additional constant. Any sequence satisfying a non-homogeneous linear recurrence is constant-recursive. This is because subtracting the equation for from the equation for yields a homogeneous recurrence for , from which we can solve for to obtain

Examples

Fibonacci sequence

The sequence 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... of Fibonacci numbers is constant-recursive of order 2 because it satisfies the recurrence with . For example, and .

Lucas sequences

The sequence 2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, ... (sequence A000032 in the OEIS) of Lucas numbers satisfies the same recurrence as the Fibonacci sequence but with initial conditions and . More generally, every Lucas sequence is constant-recursive of order 2.

Arithmetic progressions

For any and any , the arithmetic progression is constant-recursive of order 2, because it satisfies . Generalizing this, see polynomial sequences below.

Geometric progressions

For any and , the geometric progression is constant-recursive of order 1, because it satisfies . This includes, for example, the sequence 1, 2, 4, 8, 16, ... as well as the rational number sequence .

Eventually periodic sequences

A sequence that is eventually periodic with period length is constant-recursive, since it satisfies for all , where the order 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

For any polynomial , the sequence of its values is a constant-recursive sequence. If the degree of the polynomial is , the sequence satisfies a recurrence of order , with coefficients given by the corresponding element of the binomial transform.[2] The first few such equations are

for a degree 0 (that is, constant) polynomial,
for a degree 1 or less polynomial,
for a degree 2 or less polynomial, and
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.[3] Any sequence of integer, real, or complex values can be used as initial conditions for a constant-recursive sequence of order . If the initial conditions lie on a polynomial of degree or less, then the constant-recursive sequence also obeys a lower order equation.

Enumeration of words in a regular language

Let be a regular language, and let be the number of words of length in . Then is constant-recursive. For example, for the language of all binary strings, for the language of all unary strings, and 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 over the semiring is constant-recursive.

Other examples

The sequences of Jacobsthal numbers, Padovan numbers, Pell numbers, and Perrin numbers are constant-recursive.

Closed-form characterization

Constant-recursive sequences admit the following unique closed form characterization using exponential polynomials: every constant-recursive sequence can be written in the form

where

  • is a sequence which is zero for all but finitely many ;
  • are complex polynomials; and
  • are distinct complex number constants.

This characterization is exact: every sequence that can be written in the above form is constant-recursive.

For example, the Fibonacci number is written in this form using Binet's formula:

where is the Golden ratio and , both roots of the equation . In this case, , for all , (constant polynomials), , and . 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 are derived as the roots of the characteristic polynomial (or "auxiliary polynomial") of the recurrence:

whose coefficients are the same as those of the recurrence. If the roots are all distinct, then the polynomials are all constants, which can be determined from the initial values of the sequence. The term is only needed when ; if then it corrects for the fact that some initial values may be exceptions to the general recurrence. In particular, for all , the order of the sequence.

In the general case where the roots of the characteristic polynomial are not necessarily distinct, and is a root of multiplicity , the term is multiplied by a degree- polynomial in (i.e. in the formula has degree ). For instance, if the characteristic polynomial factors as , with the same root r occurring three times, then the th term is of the form

[4]

Generating function view

A sequence is constant-recursive precisely when its generating function

is a rational function. 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.[5] For example, the generating function of the Fibonacci sequence is

In general, multiplying a generating function by the polynomial

yields a series

where

If satisfies the recurrence relation

then for all . In other words,

so we obtain the rational function

In the special case of a periodic sequence satisfying for , the generating function is

by expanding the geometric series.

The generating function of the Catalan numbers is not a rational function, which implies that the Catalan numbers do not satisfy a linear recurrence with constant coefficients.

Derivation of the closed form from the generating function

The closed form can be derived from the generating function via partial fraction decomposition. Specifically, if the generating function is written as

then the polynomial gives the initial set of corrections , the denominator gives rise to the exponential term , and the numerator of smaller degree gives rise to the polynomial coefficient .

Closure properties

The termwise addition or multiplication of two constant-recursive sequences is again constant-recursive. This follows from the characterization in terms of exponential polynomials.

The Cauchy product of two constant-recursive sequences is constant-recursive. This follows from the characterization in terms of rational generating functions.

Generalizations

A natural generalization is obtained by relaxing the condition that the coefficients of the recurrence are constants. If the coefficients are allowed to be polynomials, then one obtains holonomic sequences.

A -regular sequence satisfies linear recurrences with constant coefficients, but the recurrences take a different form. Rather than being a linear combination of for some integers that are close to , each term in a -regular sequence is a linear combination of for some integers whose base- representations are close to that of . Constant-recursive sequences can be thought of as -regular sequences, where the base-1 representation of consists of copies of the digit .

Notes

  1. ^ Kauers, Manuel; Paule, Peter (2010-12-01). The Concrete Tetrahedron: Symbolic Sums, Recurrence Equations, Generating Functions, Asymptotic Estimates. Springer Vienna. ISBN 978-3-7091-0444-6.
  2. ^ Boyadzhiev, Boyad (2012). "Close Encounters with the Stirling Numbers of the Second Kind" (PDF). Math. Mag. 85: 252–266.
  3. ^ Jordan, Charles; Jordán, Károly (1965). Calculus of Finite Differences. American Mathematical Soc. pp. 9–11. ISBN 978-0-8284-0033-6. See formula on p.9, top.
  4. ^ 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.
  5. ^ Martino, Ivan; Martino, Luca (2013-11-14). "On the variety of linear recurrences and numerical semigroups". Semigroup Forum. 88 (3): 569–574. arXiv:1207.0111. doi:10.1007/s00233-013-9551-2. ISSN 0037-1912.

References

See also

External links

  • "OEIS Index 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)

Leave a Reply