Next Article in Journal
A Collocation Procedure for Treating the Time-Fractional FitzHugh–Nagumo Differential Equation Using Shifted Lucas Polynomials
Next Article in Special Issue
Clade Size Statistics Under Ford’s α-Model
Previous Article in Journal
A Fuzzy Variable H Strategy Based Ripple-Spreading Algorithm to Find the k Shortest Paths
Previous Article in Special Issue
Multiple Sums of Circular Binomial Products
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

C-Finite Sequences and Riordan Arrays

by
Donatella Merlini
Dipartimento di Statistica, Informatica, Applicazioni, Università di Firenze, I-50134 Firenze, Italy
Mathematics 2024, 12(23), 3671; https://doi.org/10.3390/math12233671
Submission received: 27 September 2024 / Revised: 31 October 2024 / Accepted: 21 November 2024 / Published: 23 November 2024

Abstract

:
Many prominent combinatorial sequences, such as the Fibonacci, Lucas, Pell, Jacobsthal and Tribonacci sequences, are defined by homogeneous linear recurrence relations with constant coefficients. These sequences are often referred to as C-finite sequences, and a variety of representations have been employed throughout the literature, largely influenced by the author’s background and the specific application under consideration. Beyond the representation through recurrence relations, other approaches include those based on generating functions, explicit formulas, matrix exponentiation, the method of undetermined coefficients and several others. Among these, the generating function approach is particularly prevalent in enumerative combinatorics due to its versatility and widespread use. The primary objective of this work is to introduce an alternative representation grounded in the theory of Riordan arrays. This representation provides a general formula expressed in terms of the vectors of constants and initial conditions associated with any recurrence relation of a given order, offering a new perspective on the structure of such sequences.

1. Introduction

According to recent terminology (see, e.g., [1,2]), a C-finite sequence is any sequence defined by a homogeneous linear recurrence relation with constant coefficients. If u k k N is a C-finite sequence, the recurrence relation is written as follows:
u n + ω = c 1 u n + ω 1 + c 2 u n + ω 2 + + c ω u n ,
where c 1 , c 2 , , c ω Q are constant with respect to n, c ω 0 and ω is the order of the recurrence. The sequence is completely defined when we fix the initial conditions, that is, the value of the first ω elements (not all 0) of the sequence u 0 , u 1 , u ω 1 . The defining recurrence relation (1) has the following obvious “generalization”:
c 0 u n + ω = c 1 u n + ω 1 + c 2 u n + ω 2 + + c ω u n ,
with c 0 0 , but obviously the two formulations are equivalent. Therefore, we will always suppose c 0 = 1 .
Surely, C-finite sequences are the simplest and most used numeric sequences, for example, the well-known Fibonacci sequence, the properties of which have been widely studied and applied. Because of that, a number of different representations have been adopted in the literature, often depending on the background of the author and/or on the properties related to the specific application.
Among the various representations, we obviously have recurrence relations which, according to the definition of a C-finite sequence, have to be homogeneous, linear and with constant coefficients. For the relation (1), if C = [ c 1 , c 2 , , c ω ] is the vector of coefficients and U = [ u 0 , u 1 , , u ω 1 ] is the vector of initial conditions, we use the following notation:
u k k N = ( [ c 1 , c 2 , , c ω ] , [ u 0 , u 1 , , u ω 1 ] ) = ( ω ) ( C , U ) ,
where the order can be understood when no ambiguity arises. For the well-known Fibonacci numbers, for example, we have the following:
F k k N = ( [ 1 , 1 ] , [ 0 , 1 ] ) corresponding to F n + 2 = F n + 1 + F n
valid for every n N , and with F 0 = 0 , F 1 = 1 as initial conditions.
Another representation is in terms of an explicit formula: a mathematical formula depending on a parameter n which returns u n , the element at position n in the sequence. Especially important are closed formulas, that is, formulas the evaluation of which does not require a number of arithmetic operations depending on n. For Fibonacci numbers we have the well-known Binet formula:
F n = ϕ n ϕ ^ n 5 ,
where ϕ = ( 5 + 1 ) / 2 1.618033988 is the golden ratio and ϕ ^ = 1 / ϕ .
Generating functions correspond to another important representation; it is well known that a sequence u k k N is C-finite if and only if its generating function is a rational function u ( t ) = P ( t ) / Q ( t ) , where P ( t ) , Q ( t ) are two polynomials having deg ( P ( t ) ) < deg ( Q ( t ) ) . The function u ( t ) contains the whole information relative to the sequence, so it is the ideal approach to most problems relative to C-finite sequences. A typical example is the generating function of Fibonacci numbers:
F ( t ) = t 1 t t 2 ,
from which so many properties of Fibonacci numbers can be deduced, in particular the Binet formula.
Moreover, the evaluation of u n through the recurrence relation can be seen as the computation of some power of a suitable matrix. In this case also, the appropriate example is given by the Fibonacci numbers. If we define
F = 1 1 1 0
then by computing the power F n we find a matrix containing some elements of the sequence:
F n = F n + 1 F n F n F n 1 .
The method can be generalized to all C-finite sequences and allows many of their properties to be easily proven.
Another peculiar representation is by points: if we know the order ω of a C-finite sequence (or, at least, an upper bound thereof), we can represent it by a subsequence of 2 ω consecutive elements. In fact, by substituting these values in (1), we obtain ω equations in the ω unknowns c 1 , c 2 , , c ω . If the points belong to the sequence, the system so obtained has one and only one solution. For example, the subsequence ( 5 , 8 , 13 , 21 ) defines the Fibonacci numbers, the order of which is 2; from these points, we obtain the following system:
13 = 8 c 1 + 5 c 2 21 = 13 c 1 + 8 c 2
with the obvious solution c 1 = c 2 = 1 . This representation has been intensively used by Doron Zeilberger [2] and known as the method of indeterminate coefficients.
The previous and other representations can be found in [1,2,3]. In Table 1, we show the first values of some well-known C-finite sequences which will be used as examples in this paper; they are found, among others, in the On-Line Encyclopedia of Integer Sequences [4] and we attach a label Axxxxxx to a sequence if it appears in the OEIS with that identifier.
In this work, we aim to introduce a novel representation for C-finite sequences, utilizing the framework of Riordan arrays, introduced in the literature in [5,6] as a generalization of the Pascal triangle.
A Riordan array D = R ( d ( t ) , h ( t ) ) is defined in terms of two generating functions d ( t ) and h ( t ) with d ( 0 ) 0 , h ( 0 ) = 0 , h ( 0 ) 0 and corresponds to an infinite matrix ( d n , k ) n , k N , where the generic element can be found by extracting the coefficient of t n from the generating function d ( t ) h ( t ) k . Many properties of Riordan arrays have been studied in the literature; in particular, they are recognized as a powerful tool for proving combinatorial identities (see, e.g., [6,7]). Actually, if f k k N is any sequence having f ( t ) as its generating function, it can be proven that the computation of the combinatorial sum k = 0 n d n , k f k can be reduced to the extraction of the coefficient from the generating function d ( t ) f ( h ( t ) ) , obtained by transforming f ( t ) in terms of the functions d ( t ) and h ( t ) . In this paper, by using an approach based on Riordan arrays, we are able to present a new representation for any C-finite sequence, which in the case of Fibonacci numbers gives the following formula:
F n = k = 0 ( n 1 ) / 2 n k 1 n 2 k 1 .
In Section 2, we provide the necessary theoretical foundation for understanding generating functions and Riordan arrays. Subsequently, in Section 3, we delve into the connection between C-finite sequences and Riordan arrays. A noteworthy feature of the representation discussed in this paper is that it can be generalized to entire classes of C-finite sequences of the same order, offering a unified approach to their study. A preliminary version of these results has been presented in [8].

2. Generating Functions and Riordan Arrays

One of the most important representations of C-finite sequences is through generating functions. Generating functions correspond to one of the most popular approaches to combinatorial problems and a clear exposition of this concept can be found in [9,10,11]. In fact, generating functions belong to the broader framework of the method of coefficients (see, e.g., [12,13]), which provides a unified approach to handling the algebraic properties of various types of sequences, particularly in the realm of enumerative combinatorics.
Let us consider a sequence of numbers f 0 , f 1 , f 2 , = f k k N ; the generating function for the sequence f k k N is defined as the formal power series f ( t ) = f 0 + f 1 t + f 2 t 2 + , where the indeterminate t is arbitrary. Given the sequence f k k N , we introduce the generating function operator  G , which applied to f k k N produces the generating function for the sequence, i.e., G f k k N = f ( t ) . The operator G is clearly linear:
G α f k + β g k = α G ( f k ) + β G ( g k )
and the function f ( t ) can be shifted:
G f k + 1 = G ( f k ) f 0 t .
For the Fibonacci sequence F k k N , we have the following:
G ( F n + 2 ) = G ( F n + 1 ) + G ( F n )
and by setting F ( t ) = G ( F n ) we find the following:
F ( t ) F 0 F 1 t t 2 = F ( t ) F 0 t + F ( t ) .
Because we know that F 0 = 0 , F 1 = 1 , we have the following:
F ( t ) t = t F ( t ) + t 2 F ( t )
and by solving in F ( t ) we have the explicit generating function:
F ( t ) = t 1 t t 2 .
Moreover, the notation [ t n ] f ( t ) indicates the extraction of the coefficient of t n from f ( t ) and is known as the coefficient operator, [ t n ] f ( t ) = f n . The linearity and shifting properties also apply to the [ t n ] operator:
[ t n ] ( α f ( t ) + β g ( t ) ) = α [ t n ] f ( t ) + β [ t n ] g ( t ) ,
[ t n ] t k f ( t ) = [ t n k ] f ( t ) .
An important property of this operator is Newton’s rule:
[ t n ] ( 1 + α t ) r = r n α n ,
which is one of the most frequently used results in coefficient extraction. Let us remark explicitly that when r = 1 we have the following:
[ t n ] 1 1 + α t = 1 n α n = 1 + n 1 n ( 1 ) n α n = ( α ) n .
For example, by using the [ t n ] operator, we can find an explicit expression for Fibonacci numbers. The denominator of F ( t ) can be written as 1 t t 2 = ( 1 ϕ t ) ( 1 ϕ ^ t ) where
ϕ = 1 + 5 2 , ϕ ^ = 1 5 2 .
By using partial fraction expansion we find the following:
F ( t ) = t ( 1 ϕ t ) ( 1 ϕ ^ t ) = A 1 ϕ t + B 1 ϕ ^ t = A A ϕ ^ t + B B ϕ t 1 t t 2 .
We determine the two constants A and B by equating the coefficients in the first and last expression for F ( t ) :
A + B = 0 A ϕ ^ B ϕ = 1 A = 1 / ( ϕ ϕ ^ ) = 1 / 5 B = A = 1 / 5 .
The value of F n is now obtained by extracting the coefficient of t n :
F n = [ t n ] F ( t ) = [ t n ] 1 5 1 1 ϕ t 1 1 ϕ ^ t =
= 1 5 [ t n ] 1 1 ϕ t [ t n ] 1 1 ϕ ^ t = ϕ n ϕ ^ n 5 .
More details and other properties of the operators G and [ t n ] can be found in [13].
The generating functions of C-finite sequences are particularly simple and can be derived directly from their recurrence relation, as previously carried out for Fibonacci numbers.
Theorem 1.
A sequence u k k N is C-finite if and only if its generating function u ( t ) is a rational function:
u ( t ) = P ( t ) Q ( t ) = a 0 + a 1 t + a 2 t 2 + + a k t k 1 c 1 t c 2 t 2 c ω t ω ,
where k = deg ( P ( t ) ) < ω = deg ( Q ( t ) ) .
Proof. 
The theorem is well known and is sometimes traced back to A. de Moivre [14], so we limit ourselves to a simple sketch. If u k k N is C-finite, relation (1) holds for every n N and we can apply the rules of the generating function operator linearity and shifting, this latter in the general form
G ( u n + j ) = u ( t ) u 0 u 1 t u j 1 t j 1 t j
for j = 0 , 1 , , ω . Multiplying everything by t ω and isolating u ( t ) , we obtain Q ( t ) u ( t ) = P ( t ) where deg ( P ( t ) ) is less than deg ( Q ( t ) ) by construction. For the converse, let u ( t ) = P ( t ) / Q ( t ) , write this identity as Q ( t ) u ( t ) = P ( t ) and extract the coefficient of t n + ω :
[ t n + ω ] Q ( t ) u ( t ) = [ t n + ω ] ( 1 c 1 t c 2 t 2 c ω t ω ) u ( t ) = [ t n + ω ] u ( t ) c 1 [ t n + ω 1 ] u ( t ) c 2 [ t n + ω 2 ] u ( t ) c ω [ t n ] u ( t ) = u n + ω c 1 u n + ω 1 c 2 u n + ω 2 c ω u n .
On the other hand, we have [ t n + ω ] P ( t ) = 0 , since deg ( P ( t ) ) < deg Q ( t ) = ω , and this completes the proof. □
Some important observations are to be emphasized relative to the conditions of this theorem. First of all, the last recurrence constants c ω and at least one among the initial conditions must be different from 0. In fact, in the former case, c ω = 0 would imply an order less than ω ; in the latter case, we would obtain the 0 sequence in correspondence of every other specification. Finally, let us consider an example of a generating function for which the condition deg ( P ( t ) ) < deg ( Q ( t ) ) is not true:
G ( t ) = 3 + t 3 t 2 4 t 3 t 4 1 t t 2 = 3 + 4 t + 4 t 2 + 4 t 3 + 7 t 4 + 11 t 5 + 18 t 6 + 29 t 7 + 47 t 8 + .
Since the denominator is the same as that of Fibonacci numbers, the relation G n + 2 = G n + 1 + G n should be valid. However, by a simple inspection, we see that the relation holds true only from the fifth element on, with initial conditions G 0 = 4 and G 1 = 7 . If we perform the division, we obtain 1 + 3 t + t 2 as quotient and 2 t as remainder; therefore,
G ( t ) = 1 + 3 t + t 2 + 2 t 1 t t 2 ;
now, everything is clear and we can go on ignoring the first elements, not conforming to the recurrence relation.
A (proper) Riordan array is defined by a pair of generating functions D = R ( d ( t ) , h ( t ) ) with d ( 0 ) 0 , h ( 0 ) = 0 , h ( 0 ) 0 and the usual way to represent the Riordan array R ( d ( t ) , h ( t ) ) is by means of an infinite matrix ( d n , k ) n , k N , its generic element being as follows:
d n , k = [ t n ] d ( t ) h ( t ) k .
If h ( 0 ) = 0 , the Riordan array is said to be non-proper; moreover, we point out that (8) is also well defined in the case d ( 0 ) = 0 . The Pascal triangle is simply the following case:
P = R 1 1 t , t 1 t ,
while
C = R 1 1 4 t 2 t , 1 1 4 t 2
represents the Catalan triangle. The first six rows of the involved matrices are given below:
P = 1 0 0 0 0 0 1 1 0 0 0 0 1 2 1 0 0 0 1 3 3 1 0 0 1 4 6 4 1 0 1 5 10 10 5 1 , C = 1 0 0 0 0 0 1 1 0 0 0 0 2 2 1 0 0 0 5 5 3 1 0 0 14 14 9 4 1 0 42 42 28 14 5 1 .
Both triangles are very well known and studied in the literature.
Many properties of Riordan arrays, in particular their connection with combinatorial sums, have been studied in the literature and are collected in the recent book [15]. Actually, if f k k N is any sequence having f ( t ) = k = 0 f k t k as its generating function, it is possible to prove the following:
k = 0 n d n , k f k = [ t n ] d ( t ) f ( h ( t ) )
thus reducing the sum to the extraction of a coefficient from a formal power series by using the operator [ t n ] (see, e.g., [6,7]). Equation (9) is known as the Fundamental Rule of Riordan Arrays (FRRA) and reduces to the partial sum theorem
k = 0 n f k = [ t n ] f ( t ) 1 t ,
when
D = R 1 1 t , t ,
and to the Euler transformation in the case of Pascal triangle:
k = 0 n n k f k = [ t n ] 1 1 t f t 1 t .
Let us see an application related to Harmonic Numbers H n = k = 1 n 1 k , starting from the generating function of the sequence ( 0 , 1 , 1 2 , 1 3 , 1 4 , ) :
G 1 n = ln 1 1 t
and the alternate sign version of it:
G ( 1 ) n n = ln 1 1 + t .
By using the FRRA, we have
G k = 1 n 1 k = G ( H n ) = 1 1 t ln 1 1 t
and
k = 1 n n k ( 1 ) k 1 k = [ t n ] 1 1 t ln 1 1 t = H n .
Equation (9) can be expressed in a different way, by observing that it corresponds to the product between the matrix ( d n , k ) n , k N and the vector of coefficients f k k N . For example, the first few rows corresponding to the Euler transformation k = 0 n n k = 2 n go as follows:
1 0 0 0 0 0 1 1 0 0 0 0 1 2 1 0 0 0 1 3 3 1 0 0 1 4 6 4 1 0 1 5 10 10 5 1 1 1 1 1 1 1 = 1 2 4 8 16 32 .
This reasoning leads to the following formula, which expresses the FRRA in terms of generating functions:
R ( d ( t ) , h ( t ) ) f ( t ) = d ( t ) f ( h ( t ) ) ,
where ∗ denotes the action of Riordan arrays on generating functions.
More generally, the product can be performed between two Riordan arrays R ( d ( t ) , h ( t ) ) and R ( a ( t ) , b ( t ) ) , as follows:
R ( d ( t ) , h ( t ) ) R ( a ( t ) , b ( t ) ) = R ( d ( t ) a ( h ( t ) ) , b ( h ( t ) ) ) .
A key characteristic of proper Riordan arrays is their group structure under the specified product operation. For an in-depth discussion on the theory and practical applications of Riordan arrays, readers can refer to [15].

3. Identities for C -Finite Sequences

Typically, the FRRA, in both Formulations (9) and (10), is applied from left to right, as demonstrated in the examples of the previous section. In this section, however, we introduce a new approach for representing C-finite sequences, which involves applying the formula from right to left. Specifically, given the generating function of a C-finite sequence of a particular order, the goal is to derive a combinatorial expression for its coefficients through repeated applications of the FRRA. To do so, we consider generating functions of the form t / ( 1 + c 1 t + + c ω t ω ) with a simple t at the numerator.
Let F be the set of all C-finite sequences and F ω denotes the class of C-finite sequences of order ω . Every class is, in its turn, subdivided into families, joining all the C-finite sequences having their generating functions with the same denominator. For example, Fibonacci and Lucas numbers belong to the same family, as do Jacobsthal and Jacobsthal–Lucas numbers. Finally, as the representative of the family P ( t ) / ( 1 + c 1 t + + c ω t ω ) , we choose the sequence whose numerator is t; this sequence will be called the canonical sequence of its family. The following theorem assures that by studying the canonical sequence we actually study the representation of all the sequences in the family.
Theorem 2.
Let
u ( t ) = P ( t ) Q ( t ) = a 0 + a 1 t + a 2 t 2 + + a ω 1 t ω 1 1 + c 1 t + c 2 t 2 + + c ω t ω
be the generating function of a C-finite sequence of order ω and let f ( t ) = t / Q ( t ) be the generating function of the canonical sequence of the relative family; then, u n can be expressed as a linear combination of at most ω 1 elements of the canonical sequence.
Proof. 
We make use of the method of coefficients by applying linearity and the shifting property [ t n ] t k f ( t ) = [ t n k ] f ( t ) whenever k n . Arranging the powers of t, we obtain
u n = [ t n ] a 0 + a 1 t + a 2 t 2 + + a ω 1 t ω 1 1 + c 1 t + c 2 t 2 + + c ω t ω = a 0 [ t n + 1 ] t Q ( t ) + a 1 [ t n ] t Q ( t ) + a 2 [ t n 1 ] t Q ( t ) + + a ω 1 [ t n ω + 2 ] t Q ( t )
and t / Q ( t ) is the generating function of the canonical sequence. □
We can now concentrate on canonical sequences by introducing some new concepts. Let us begin with the following generating functions:
G [ k ] ( t ) = 1 1 + c k t = 1 c k t + c k 2 t 2 c k 3 t 3 + c k 4 t 4 c k 5 t 5 + , Z [ k ] ( t ) = t 1 + c 1 t + c 2 t 2 + + c k t k ,
and then go on with two families of (non-proper) Riordan arrays:
S [ k ] = R t 1 + c 1 t + c 2 t 2 + + c k t k , t k + 1 1 + c 1 t + c 2 t 2 + + c k t k , N [ k ] = R 1 1 + c k t , t 1 + c k t .
Moreover, we need the following transformation α :
α ( R ( d ( t ) , h ( t ) ) = R ( d ( t ) , t h ( t ) ) ,
whose effect consists in pushing down by k positions the k-th column of the Riordan array. In fact, we have the following lemma:
Lemma 1.
Let d n , k be any element of the Riordan array D = R ( d ( t ) , h ( t ) ) ; then, for any element d ^ n , k of α ( D ) = R ( d ( t ) , t h ( t ) ) , we have d ^ n , k = d n k , k .
Proof. 
Clearly, we obtain the following:
d ^ n , k = [ t n ] d ( t ) ( t h ( t ) ) k = [ t n k ] d ( t ) h ( t ) k = d n k , k .
The theory of Riordan arrays, with Formula (10), allows us to prove the following identity.
Theorem 3.
For every positive k, we have S [ k ] G [ k + 1 ] ( t ) = Z [ k + 1 ] ( t ) .
Proof. 
The proof consists in a straightforward computation:
S [ k ] G [ k + 1 ] ( t ) = R t 1 + c 1 t + c 2 t 2 + + c k t k , t k + 1 1 + c 1 t + c 2 t 2 + + c k t k 1 1 + c k + 1 t = t 1 + c 1 t + c 2 t 2 + + c k t k · 1 1 + c k + 1 t k + 1 / ( 1 + c 1 t + c 2 t 2 + + c k t k ) = t 1 + c 1 t + c 2 t 2 + + c k t k · 1 + c 1 t + c 2 t 2 + + c k t k 1 + c 1 t + c 2 t 2 + + c k + 1 t k + 1 = t 1 + c 1 t + c 2 t 2 + + c k + 1 t k + 1
and this is simply Z [ k + 1 ] ( t ) . We explicitly observe that the computation implies the recursive relation Z [ k + 1 ] ( t ) = Z [ k ] ( t ) / ( 1 + c k + 1 t k Z [ k ] ( t ) ) .
This result has an immediate application. In fact, for k = 1 , we have
S [ 1 ] G [ 2 ] ( t ) = R t 1 + c 1 t , t 2 1 + c 1 t 1 1 + c 2 t = Z [ 2 ] ( t ) = t 1 + c 1 t + c 2 t 2 ,
the generating function of the generic canonical C-finite sequence of order 2. Therefore, we have found a universal formula which can be extended to all C-finite sequences of order 2 by means of Theorem 2. The problem is now to find an explicit formula for the elements of the Riordan array S [ 1 ] . Happily, the theory supplies a simple method to find S n , k [ 1 ] :
S n , k [ 1 ] = [ t n ] t 1 + c 1 t t 2 1 + c 1 t k = [ t n 2 k 1 ] 1 1 + c 1 t k + 1 = k 1 n 2 k 1 c 1 n 2 k 1 = n k 1 n 2 k 1 ( c 1 ) n 2 k 1 .
Finally, we compute the following:
u n = k = 0 n S n , k [ 1 ] ( c 2 ) k = k = 0 n n k 1 n 2 k 1 ( c 1 ) n 2 k 1 ( c 2 ) k ,
and conclude the following:
Theorem 4.
For the canonical sequence of class F 2 ,   u n = ( [ c 1 , c 2 , ] , [ 0 , 1 ] ) , we have the following general formula:
u n = k = 0 ( n 1 ) / 2 n k 1 n 2 k 1 ( c 1 ) n 2 k 1 ( c 2 ) k .
Proof. 
At this point, the only thing that remains to be proven concerns the limits of the sum. The binomial coefficient is different from 0 when n 2 k 1 0 and n k 1 ( n 2 k 1 ) 0 . This happens if and only if 0 k ( n 1 ) / 2 . □
Corollary 1.
The following identities hold true. For Fibonacci numbers A000045, defined by ( F n ) = ( [ 1 , 1 ] , [ 0 , 1 ] ) ,
F n = k = 0 ( n 1 ) / 2 n k 1 n 2 k 1 .
For Pell numbers A000129, defined by ( P n ) = ( [ 2 , 1 ] , [ 0 , 1 ] ) ,
P n = k = 0 ( n 1 ) / 2 n k 1 n 2 k 1 2 n 2 k 1 .
For Jacobsthal numbers A001045, defined by ( J n ) = ( [ 1 , 2 ] , [ 0 , 1 ] ) ,
J n = k = 0 ( n 1 ) / 2 n k 1 n 2 k 1 2 k .
For ( 3 n 2 n ) numbers A001047, defined by ( D n ) = ( [ 5 , 6 ] , [ 0 , 1 ] ) ,
D n = k = 0 ( n 1 ) / 2 n k 1 n 2 k 1 ( 6 ) k 5 n 2 k 1 .
For n numbers A001477, defined by ( N n ) = ( [ 2 , 1 ] , [ 0 , 1 ] ) ,
N n = n = k = 0 ( n 1 ) / 2 n k 1 n 2 k 1 ( 1 ) k 2 n 2 k 1 .
In order to find a general formula for class F ω , we proceed in an analogous way.
Lemma 2.
With the notations above, we have
α ( S [ k ] N [ k + 1 ] ) = S [ k + 1 ] .
Proof. 
By applying the rule for the product of two Riordan arrays, we obtain
S [ k ] N [ k + 1 ] = R t 1 + c 1 t + c 2 t 2 + + c k t k , t k + 1 1 + c 1 t + c 2 t 2 + + c k t k   R 1 1 + c k + 1 t , t 1 + c k + 1 t = R t 1 + c 1 t + c 2 t 2 + + c k + 1 t k + 1 , t k + 1 1 + c 1 t + c 2 t 2 + + c k + 1 t k + 1 .
Finally, α pushes down by k positions the elements of column k, for every k N . □
From Lemma 2 and Theorem 3, we find the following:
Theorem 5.
For every positive k, we have α ( S [ k ] N [ k + 1 ] ) G [ k + 2 ] ( t ) = Z [ k + 2 ] ( t ) .
Varying k in Theorem 5, we have the following:
Z [ 3 ] ( t ) = α ( S [ 1 ] N [ 2 ] ( t ) ) G [ 3 ] ( t ) ,
Z [ 4 ] ( t ) = α ( α ( S [ 1 ] N [ 2 ] ) N [ 3 ] ) G [ 4 ] ( t ) ,
Z [ 5 ] ( t ) = α ( α ( α ( S [ 1 ] N [ 2 ] ) N [ 3 ] ) N [ 4 ] ) G [ 5 ] ( t )
and so on, thus obtaining decompositions in terms of products of Riordan arrays and generating functions, which easily translate into combinatorial identities.
In particular, let us consider the case ω = 3 , that is, recurrence relations of the third order. For the canonical sequences we have the following:
Theorem 6.
For the canonical sequence of class F 3 ,   u n = ( [ c 1 , c 2 , c 3 ] , [ 0 , 1 , c 1 ] ) , we have the following general formula:
u n = k = 0 n j = 0 ( n k 1 ) / 2 n k j 1 n k 2 j 1 j k ( c 1 ) n k 2 j 1 ( c 2 ) j k ( c 3 ) k .
Proof. 
We begin by computing the product S [ 1 ] N [ 2 ] , the generic element of which is
j = 0 ( n 1 ) / 2 n j 1 n 2 j 1 j k ( c 1 ) n 2 j 1 ( c 2 ) j k .
The next step consists in applying the transformation α , but, as we have seen, it reduces to the change in variable n n k . The last step is to perform the product by G [ 3 ] ( t ) , which is carried out by applying the fundamental rule of Riordan arrays. □
As a simple but meaningful example, we consider Tribonacci numbers A000073
( T n ) = ( [ 1 , 1 , 1 ] , [ 0 , 1 , 1 ] ) ,
corresponding to the following canonical generating function:
T ( t ) = t 1 t t 2 t 3 .
The previous theorem gives the following identity:
T n = k = 0 n j = 0 ( n k 1 ) / 2 n k j 1 n k 2 j 1 j k .

4. Conclusions

In conclusion, we have explored various well-known combinatorial sequences, such as the Fibonacci, Lucas, Pell, Jacobsthal and Tribonacci sequences, all of which are defined by homogeneous linear recurrence relations with constant coefficients and belong to the class of C-finite sequences. Throughout the literature, several representations for these sequences have been adopted, each influenced by the author’s approach or the specific context of the application.
In this work, we focused on introducing a new representation based on the theory of Riordan arrays. Unlike traditional methods, such as generating functions, explicit formulas, or matrix exponentiation, our approach provides a unified formula that encapsulates both the constants and initial conditions of the involved recurrence relation. This offers a new perspective on how C-finite sequences can be studied.

Funding

This work was not supported by any funding, but is the result of ordinary research by the author supported by her institution.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the author.

Acknowledgments

The author would like to thank the late Emanuele Munarini to whom this special issue is due. She also thanks the reviewers for their helpful comments.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Kauers, M.; Paule, P. C-Finite Sequences. In The Concrete Tetrahedron: Symbolic Sums, Recurrence Equations, Generating Functions, Asymptotic Estimates; Springer: Vienna, Austria, 2011; pp. 63–86. [Google Scholar]
  2. Zeilberger, D. The C-finite ansatz. Ramanujan J. 2013, 31, 23–32. [Google Scholar] [CrossRef]
  3. Lyapin, R.A.P.; Chandragiri, S. The Cauchy Problem for Multidimensional Difference Equations in Lattice Cones. J. Sib. Fed. Univ. Math. Phys. 2020, 13, 187–196. [Google Scholar] [CrossRef]
  4. OEIS Foundation Inc. The On-Line Encyclopedia of Integer Sequences. Available online: https://oeis.org/ (accessed on 31 October 2024).
  5. Shapiro, L.; Getu, S.; Woan, W.J.; Woodson, L. The Riordan group. Discret. Appl. Math. 1991, 34, 229–239. [Google Scholar] [CrossRef]
  6. Sprugnoli, R. Riordan arrays and combinatorial sums. Discret. Math. 1994, 132, 267–290. [Google Scholar] [CrossRef]
  7. Sprugnoli, R. Riordan arrays and the Abel-Gould identity. Discret. Math. 1995, 142, 213–233. [Google Scholar] [CrossRef]
  8. Merlini, D.; Sprugnoli, R. C-finite sequences and Riordan arrays. In 3rd International Symposium on Riordan Arrays and Related Topics; Illinois Wesleyan University: Bloomington, IL, USA, 2016. [Google Scholar]
  9. Graham, R.; Knuth, D.; Patashnik, O. Concrete Mathematics, 2nd ed.; Addison-Wesley: Boston, MA, USA, 1989. [Google Scholar]
  10. Stanley, R. Enumerative Combinatoric; Wadsworth: Cambridge, UK, 1986; Volume 1. [Google Scholar]
  11. Wilf, H. Generatingfunctionology; Academic Press: San Diego, CA, USA, 1990. [Google Scholar]
  12. Egorychev, G.P. Integral Representation and the Computation of Combinatorial Sums (Trans. H. H. McFadden); American Mathematical Society: Providence, RI, USA, 1984; Volume 59. [Google Scholar]
  13. Merlini, D.; Sprugnoli, R.; Verri, M.C. The Method of Coefficients. Amer. Math. Monthly 2007, 114, 40–57. [Google Scholar] [CrossRef]
  14. de Moivre, A. De Fractionibus Algebraicis Radicalitate Immunibus ad Fractiones Simpliciores Reducendis, Deque Summandis Terminis Quarumdam Serierum Aequali Intervallo a Se Distantibus. Philos. Trans. 1722, 32, 162–178. [Google Scholar]
  15. Shapiro, L.; Sprugnoli, R.; Barry, P.; Cheon, G.-S.; He, T.-X.; Merlini, D.; Wang, W. The Riordan Group and Applications; Springer Monographs in Mathematics; Springer: Cham, Switzerland, 2022. [Google Scholar]
Table 1. Examples of C-finite sequences and their OEIS identifiers.
Table 1. Examples of C-finite sequences and their OEIS identifiers.
NAMEOEIS ω 012345678910
FibonacciA0000452011235813213455
LucasA0000322213471118294776123
PellA000129201251229701694089852378
JacobsthalA00104520113511214385171341
Pell–LucasA0022032226143482198478115427866726
3n − 2nA001047201519652116652059630519,17158,025
nA0014772012345678910
TribonacciA000073301124713244481149
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Merlini, D. C-Finite Sequences and Riordan Arrays. Mathematics 2024, 12, 3671. https://doi.org/10.3390/math12233671

AMA Style

Merlini D. C-Finite Sequences and Riordan Arrays. Mathematics. 2024; 12(23):3671. https://doi.org/10.3390/math12233671

Chicago/Turabian Style

Merlini, Donatella. 2024. "C-Finite Sequences and Riordan Arrays" Mathematics 12, no. 23: 3671. https://doi.org/10.3390/math12233671

APA Style

Merlini, D. (2024). C-Finite Sequences and Riordan Arrays. Mathematics, 12(23), 3671. https://doi.org/10.3390/math12233671

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop