Rahul Sharma (Editor)

Constant recursive sequence

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, a constant-recursive sequence or C-finite sequence is a sequence satisfying a linear recurrence with constant coefficients.

Contents

Definition

An order-d homogeneous linear recurrence with constant coefficients is an equation of the form

s ( n ) = c 1 s ( n 1 ) + c 2 s ( n 2 ) + + c d s ( n d ) ,

where the d coefficients c 1 , c 2 , , c d are constants.

A sequence s ( 0 ) , s ( 1 ) , s ( 2 ) , is a constant-recursive sequence if there is an order-d homogeneous linear recurrence with constant coefficients that it satisfies for all n d .

Equivalently, s ( n ) n 0 is constant-recursive if the set of sequences

{ s ( n + r ) n 0 : r 0 }

is contained in a vector space whose dimension is finite.

Fibonacci sequence

The sequence 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... of Fibonacci numbers satisfies the recurrence

F n = F n 1 + F n 2

with initial conditions

F 0 = 0 F 1 = 1.

Explicitly, the recurrence yields the values

F 2 = F 1 + F 0 = 1 F 3 = F 2 + F 1 = 2 F 4 = F 3 + F 2 = 3 F 5 = F 4 + F 3 = 5

etc.

Lucas sequences

The sequence 2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, ... of Lucas numbers satisfies the same recurrence as the Fibonacci sequence but with initial conditions

L 0 = 2 L 1 = 1.

More generally, every Lucas sequence is a constant-recursive sequence.

Geometric sequences

The geometric sequence a , a r , a r 2 , is constant-recursive, since it satisfies the recurrence s ( n ) = r s ( n 1 ) for all n 1 .

Eventually periodic sequences

A sequence that is eventually periodic with period length is constant-recursive, since it satisfies s ( n ) = s ( n ) for all n d for some d.

Characterization in terms of exponential polynomials

The characteristic polynomial (or "auxiliary polynomial") of the recurrence is the polynomial

x d c 1 x d 1 c d 1 x c d

whose coefficients are the same as those of the recurrence. The nth term s ( n ) of a constant-recursive sequence can be written in terms of the roots of its characteristic polynomial. If the d roots r 1 , r 2 , , r d are all distinct, then the nth term of the sequence is

s ( n ) = k 1 r 1 n + k 2 r 2 n + + k d r d n

where the coefficients ki are constants that can be determined by the initial conditions.

For the Fibonacci sequence, the characteristic polynomial is x 2 x 1 , whose roots ϕ = 1 + 5 2 and ϕ ¯ = 1 5 2 appear in Binet's formula

F n = ϕ n ϕ ¯ n 5 .

More generally, if a root r of the characteristic polynomial has multiplicity m, then the term r n is multiplied by a degree- ( m 1 ) polynomial in n. That is, let r 1 , , r e be the distinct roots of the characteristic polynomial. Then

s ( n ) = k 1 ( n ) r 1 n + k 2 ( n ) r 2 n + + k e ( n ) r e n

where k i ( n ) is a polynomial of degree m i 1 . For instance, if the characteristic polynomial factors as ( x r ) 3 , with the same root r occurring three times, then the nth term is of the form

s ( n ) = ( a + b n + c n 2 ) r n .

Conversely, if there are polynomials k i ( n ) such that

s ( n ) = k 1 ( n ) r 1 n + k 2 ( n ) r 2 n + + k e ( n ) r e n ,

then s ( n ) n 0 is constant-recursive.

Characterization in terms of rational generating functions

A sequence is constant-recursive precisely when its generating function

n 0 s ( n ) x n = s ( 0 ) + s ( 1 ) x 1 + s ( 2 ) x 2 + s ( 3 ) x 3 +

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.

The generating function of the Fibonacci sequence is

x 1 x x 2 .

In general, multiplying a generating function by the polynomial

1 c 1 x 1 c 2 x 2 c d x d

yields a series

( s ( 0 ) + s ( 1 ) x 1 + s ( 2 ) x 2 + ) ( 1 c 1 x 1 c 2 x 2 c d x d ) = ( b 0 + b 1 x 1 + b 2 x 2 + ) ,

where

b n = s ( n ) c 1 s ( n 1 ) c 2 s ( n 2 ) c d s ( n d ) .

If s ( n ) satisfies the recurrence relation

s ( n ) = c 1 s ( n 1 ) + c 2 s ( n 2 ) + + c d s ( n d ) ,

then b n = 0 for all n d . In other words,

( s ( 0 ) + s ( 1 ) x 1 + s ( 2 ) x 2 + ) ( 1 c 1 x 1 c 2 x 2 c d x d ) = ( b 0 + b 1 x 1 + b 2 x 2 + + b d 1 x d 1 ) ,

so we obtain the rational function

n 0 s ( n ) x n = b 0 + b 1 x 1 + b 2 x 2 + + b d 1 x d 1 1 c 1 x 1 c 2 x 2 c d x d .

In the special case of a periodic sequence satisfying s ( n ) = s ( n d ) for n d , the generating function is

s ( 0 ) + s ( 1 ) x 1 + + s ( d 1 ) x d 1 1 x d = ( s ( 0 ) + s ( 1 ) x 1 + + s ( d 1 ) x d 1 ) + ( s ( 0 ) + s ( 1 ) x 1 + + s ( d 1 ) x d 1 ) x d + ( s ( 0 ) + s ( 1 ) x 1 + + s ( d 1 ) x d 1 ) x 2 d +

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.

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.

Sequences satisfying non-homogeneous recurrences

A sequence satisfying a non-homogeneous linear recurrence with constant coefficients is constant-recursive.

This is because the recurrence

s ( n ) = c 1 s ( n 1 ) + c 2 s ( n 2 ) + + c d s ( n d ) + c

can be solved for c to obtain

c = s ( n ) c 1 s ( n 1 ) c 2 s ( n 2 ) c d s ( n d ) .

Substituting this into the equation

s ( n + 1 ) = c 1 s ( n ) + c 2 s ( n 1 ) + + c d s ( n + 1 d ) + c

shows that s ( n ) satisfies the homogeneous recurrence

s ( n + 1 ) = ( c 1 + 1 ) s ( n ) + ( c 2 c 1 ) s ( n 1 ) + + ( c d c d 1 ) s ( n + 1 d ) c d s ( n d )

of order d + 1 .

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 k -regular sequence satisfies linear recurrences with constant coefficients, but the recurrences take a different form. Rather than s ( n ) being a linear combination of s ( m ) for some integers m that are close to n , each term s ( n ) in a k -regular sequence is a linear combination of s ( m ) for some integers m whose base- k representations are close to that of n . Constant-recursive sequences can be thought of as 1 -regular sequences, where the base-1 representation of n consists of n copies of the digit 1 .

References

Constant-recursive sequence Wikipedia