You are currently viewing a new version of our website. To view the old version click .
Axioms
  • Article
  • Open Access

11 December 2025

Deriving Binomial Convolution Formulas for Horadam Sequences via Context-Free Grammars

,
,
and
1
School of Mathematics and Statistics, Shandong University of Technology, Zibo 255000, China
2
School of Mathematics and Statistics, Northeastern University at Qinhuangdao, Qinhuangdao 066004, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Algebra and Number Theory

Abstract

The Horadam sequence H n ( a , b ; p , q ) unifies a number of well-known sequences, such as Fibonacci and Lucas sequences. We use the context-free grammars as a new tool to study Horadam sequences. By introducing a set of auxiliary basis polynomials ( v 1 , v 2 , v 3 ) and using the formal derivative associated with the Horadam grammar, we solve the convolution coefficients and provide a unified method to discover convolution formulas associated with binomial coefficients. These results are extended to subsequences with indices k n through a parameterized grammar G k . Using the modified grammar G k ˜ , we derive convolution formulas involving the weighting term ( q ) n i . Furthermore, applying the proposed framework to ( p , q ) -Fibonacci and ( p , q ) -Lucas sequences, we derive explicit convolution formulas with parameters ( p , q ) . The framework is also applied to derive specific identities for Pell and Pell–Lucas numbers, as well as for Fermat and Fermat–Lucas numbers.
MSC:
11B39; 11B83; 05A19

1. Introduction

The Horadam sequence  H n ( a , b ; p , q ) can be defined by
H n + 2 = p H n + 1 + q H n
with the initial values H 0 = a and H 1 = b [1]. It unifies a number of well-known sequences; see Table 1 for special cases. It can be seen that two types of Horadam sequences, H n ( 0 , 1 ; p , q ) and H n ( 2 , p ; p , q ) , are special. The sequence H n ( 0 , 1 ; p , q ) is called ( p , q ) -Fibonacci sequence, and H n ( 2 , p ; p , q ) is called ( p , q ) -Lucas sequence. In recent years, there have been many extensions of Horadam sequences. Cao and Wang [2] established symmetric inequalities for the reciprocal sums of Fibonacci numbers. Church and Bicknell [3] provided several different binomial convolutions about Fibonacci and Lucas numbers. For k , n 0 ,
i = 0 n n i F k i L k n k i = 2 n F k n ,
i = 0 n n i F k i F k n k i = 1 5 ( 2 n L k n 2 L k n ) ,
i = 0 n n i L k i L k n k i = 2 n L k n + 2 L k n .
Carlitz [4] also showed several binomial convolutions about Fibonacci and Lucas numbers, for example, for n , k 0 ,
i = 0 n n i ( 1 ) n i F k i F k 1 n i = F k n F n ,
i = 0 n n i ( 1 ) n i L k i F k 1 n i = F k n L n .
See [5,6,7,8,9,10,11] for more binomial identities about Horadam sequences. Some determinantal formulas and recurrence relations about Horadam sequences were given in [12], and the study of properties of polynomial sequences can be found in [13,14,15,16,17,18].
Table 1. Some special cases of the Horadam sequence.
In [19], we found that the context-free grammar can be used to study Horadam sequences. Many combinatorial polynomials can be studied by grammars, making this method an important tool in combinatorics. The framework of using context-free grammars to generate combinatorial polynomials was proposed by Chen [20]. Using context-free grammars, we developed a general method to deduce determinantal representations of enumerative polynomials [21] and provided three new interpretations of the second-order Eulerian polynomials [22]. The context-free grammar can also be used to discover new combinatorial models and algorithms [16,23], new convolution formulas [23,24], and different expansions and new relationships [16,23,24]. According to [25], an advantage of the grammatical description of a combinatorial sequence is that a recursion of its generating function can be provided by attaching a labeling of the combinatorial object in accordance with the replacement rules of the grammar. According to [26], an advantage of the change in grammars is that the recurrence system of the bi- γ -coefficients of colored Eulerian polynomials can be deduced and the bi- γ -positivity can be shown. More applications of context-free grammars in combinatorics can be found in [27,28,29,30,31].
In this paper, we focus on convolution formulas of Horadam sequences associated with binomial coefficients. The paper is organized as follows: In Section 2, we first recall the Horadam grammar, then collect some explicit formulas for Horadam sequences that will be used in the following discussion. In Section 3, we deduce three kinds of binomial convolution formulas. Section 3.1 presents the main result of this paper (Theorem 1). For special sequences, ( p , q ) -Fibonacci sequence and ( p , q ) -Lucas sequence, we give the explicit convolution formulas with parameters ( p , q ) . Section 3.2 introduces additional parameter k and generalizes the results obtained in Section 3.1 via a modified Horadam grammar (Theorem 3). As an application, we give explicit formulas for Pell and Pell–Lucas numbers (Corollary 6), as well as for Fermat and Fermat–Lucas numbers (Corollary 7). Section 3.3 provides a unified way to deduce convolution formulas in the form i = 0 n n i ( q ) n i A i B k n i (Theorem 5).

2. Preliminaries

For the sake of brevity, we shall fix the following notations:
  • H n denotes Horadam sequence H n ( a , b ; p , q ) .
  • A n denotes Horadam sequence H n ( A 0 , A 1 ; p , q ) ,
    H 0 = A 0 , H 1 = A 1 , and H n + 2 = p H n + 1 + q H n ( n = 0 , 1 , 2 , ) .
  • B n denotes Horadam sequence H n ( B 0 , B 1 ; p , q ) ,
    H 0 = B 0 , H 1 = B 1 , and H n + 2 = p H n + 1 + q H n ( n = 0 , 1 , 2 , ) .
  • F n denotes ( p , q ) -Fibonacci sequence H n ( 0 , 1 ; p , q ) ,
    H 0 = 0 , H 1 = 1 , and H n + 2 = p H n + 1 + q H n ( n = 0 , 1 , 2 , ) .
  • L n denotes ( p , q ) -Lucas sequence H n ( 2 , p ; p , q ) ,
    H 0 = 2 , H 1 = p , and H n + 2 = p H n + 1 + q H n ( n = 0 , 1 , 2 , ) .
  • Δ denotes p 2 + 4 q .
Let A be an alphabet whose letters are regarded as independent commutative indeterminates. A formal function over A is defined as follows:
(1)
Each letter in A is a formal function.
(2)
If x and y are formal functions, then x + y and x y are all formal functions.
(3)
If x is a formal function and f ( t ) is an analytic function in t, then f ( x ) is a formal function.
(4)
Every formal function is constructed as above in a finite number of steps.
A context-free grammar G over A consists of substitution rules replacing letters in A by formal functions over A [20]. A rule in a context-free grammar is also said to be a production as in the theory of formal language [32]. We can define a formal derivative D G with respect to the grammar G as a differential operator on formal functions over A. More precisely, D G is defined as follows:
(1)
For two formal functions x and y, we have
D G ( x + y ) = D G ( x ) + D G ( y ) , D G ( x y ) = D G ( x ) y + x D G ( y ) .
(2)
For any analytic function f ( t ) and formal function x, we have
D G f ( x ) = f ( x ) x D G ( x ) .
(3)
For a letter u in A, if there is a rule u v in the grammar G, where v is a formal function, then D G ( u ) = v ; otherwise D G ( u ) = 0 , and u is called a constant or a terminal.
For example, let G = { x x + y , y x } and D G be the formal derivative with respect to G. Then, we have D G ( x ) = x + y , D G ( x + 2 y ) = D G ( x ) + 2 D G ( y ) = 3 x + y , and D G ( x 1 ) = ( 1 ) x 2 D G ( x ) = x 1 x 2 y .
We define D G 0 ( x ) = x for any formal function x. It is clear that Leibnitz’s formula still holds for a formal derivative D G ,
D G n ( x y ) = i = 0 n n i D G i ( x ) D G n i ( y ) .
The Horadam grammar was introduced in [19]. For frequently used grammars in the paper, we usually mark them with a subscript. We put a superscript label 1 right after G to indicate Horadam grammar throughout the paper, which is defined as follows:
G 1 = { x p x + y , y q x } .
Using Horadam grammar G 1 , we discovered several identities [19]. At the beginning, we need some useful lemmas for later proof.
Lemma 1 
([19]). Let H n be Horadam sequence H n ( a , b ; p , q ) . For n 0 , we have
D G 1 n ( b x + a y ) = H n + 1 x + H n y ,
and
D G 1 n ( b x + a y ) | x = 0 , y = 1 = H n .
In particular,
D G 1 n ( x ) | x = 0 , y = 1 = F n , D G 1 n ( p x + 2 y ) | x = 0 , y = 1 = L n .
Lemma 2 
([19]). Let F n be ( p , q ) -Fibonacci sequence H n ( 0 , 1 ; p , q ) . For n , m 1 ,
F n + m 1 = F n F m + q F n 1 F m 1 .
Lemma 3. 
For n , k 1 , we have
F k n + 1 + q F k n 1 = L k n .
Proof. 
From Lemma 1, we get that F k n + 1 = D G 1 k n + 1 ( x ) | x = 0 , y = 1 , F k n 1 = D G 1 k n 1 ( x ) | x = 0 , y = 1 , and L k n = D G 1 k n ( p x + 2 y ) | x = 0 , y = 1 . Since
D G 1 k n + 1 ( x ) + q D G 1 k n 1 ( x ) = D G 1 k n 1 ( D G 1 2 ( x ) + q x ) = D G 1 k n 1 ( ( p 2 + 2 q ) x + p y ) = D G 1 k n 1 ( L 2 x + L 1 y ) = D G 1 k n ( L 1 x + L 0 y ) = D G 1 k n ( p x + 2 y ) ,
taking x = 0 , y = 1 in both sides of the above equation, we can obtain the desired result. □
When k = 1 , by Lemma 3, we see that F n + 1 + q F n 1 = L n .

3. Convolution Formulas of Horadam Sequences

In this section, we provide a framework to discover binomial convolution formulas of Horadam sequences. Section 3.1 deduces convolution formulas involving the ( p , q ) -Fibonacci sequence F n and the ( p , q ) -Lucas sequence L n . Section 3.2 generalizes the result of Section 3.1 involving F k n and L k n .
In Section 3.1 and Section 3.2, we always assume Δ 0 .

3.1. Convolution Formulas Related to F n and L n

Let A n be the Horadam sequences H n ( A 0 , A 1 ; p , q ) and B n be H n ( B 0 , B 1 ; p , q ) , respectively. By Leibnitz formula (2) and Equation (4), we have
D G 1 n ( ( A 1 x + A 0 y ) ( B 1 x + B 0 y ) ) | x = 0 , y = 1 = i = 0 n n i D G 1 i ( A 1 x + A 0 y ) | x = 0 , y = 1 D G 1 n i ( B 1 x + B 0 y ) | x = 0 , y = 1 = i = 0 n n i A i B n i .
It follows that if we find the sequence corresponding to
D G 1 n ( ( A 1 x + A 0 y ) ( B 1 x + B 0 y ) ) | x = 0 , y = 1 ;
then, we can discover the convolution formulas. Since it is difficult to find the sequences corresponding to D G 1 n ( x 2 ) | x = 0 , y = 1 , D G 1 n ( x y ) | x = 0 , y = 1 and D G 1 n ( y 2 ) | x = 0 , y = 1 , we choose another three polynomials v 1 , v 2 and v 3 to express ( A 1 x + A 0 y ) ( B 1 x + B 0 y ) . We recall the special sequences F n and L n ,
F 0 = 0 , F 1 = 1 , F 2 = p , F 3 = p 2 + q ,
L 0 = 2 , L 1 = p , L 2 = p 2 + 2 q , L 3 = p 3 + 3 p q ,
Notice that ( 1 x + 0 y ) ( p x + 2 y ) = p x 2 + 2 x y is a special polynomial since
p x 2 + 2 x y = F 2 x 2 + 2 F 1 x y + F 0 y 2
and
D G 1 ( p x 2 + 2 x y ) = 2 ( ( p 2 + q ) x 2 + 2 p x y + y 2 ) = 2 ( F 3 x 2 + 2 F 2 x y + F 1 y 2 ) .
For a nonzero polynomial v, if there exists a number λ such that D G 1 ( v ) = λ v , then v is also a special polynomial. From the above discussion about special polynomials, we choose the following polynomials: v 1 , v 2 and v 3 . Let
v 1 = p x 2 + 2 x y , v 2 = ( p 2 + q ) x 2 + 2 p x y + y 2 , v 3 = q x 2 + p x y + y 2 ,
which satisfy D G 1 ( v 1 ) = 2 v 2 and D G 1 ( v 3 ) = p v 3 . We can verify the determinant of the coefficient matrix
p p 2 + q q 2 2 p p 0 1 1 = p 2 4 q = Δ 0 ,
which follows that x 2 , x y and y 2 can be represented as linear combinations of v 1 , v 2 and v 3 . Therefore, the product of linear forms, ( A 1 x + A 0 y ) ( B 1 x + B 0 y ) , can be linearly expressed in terms of v 1 , v 2 and v 3 . Moreover, the sequences corresponding to D G 1 n ( v 1 ) | x = 0 , y = 1 , D G 1 n ( v 2 ) | x = 0 , y = 1 and D G 1 n ( v 3 ) | x = 0 , y = 1 can be given as follows.
Lemma 4. 
For n 0 , we have
(i
D G 1 n ( v 1 ) | x = 0 , y = 1 = 2 n F n ;
(ii
D G 1 n ( v 2 ) | x = 0 , y = 1 = 2 n F n + 1 ;
(iii
D G 1 n ( v 3 ) | x = 0 , y = 1 = p n .
Proof. 
First, we claim that
D G 1 n ( v 1 ) = 2 n F n + 2 x 2 + 2 n + 1 F n + 1 x y + 2 n F n y 2 .
Note that
D G 1 ( v 1 ) = D G 1 ( p x 2 + 2 x y ) = 2 ( p 2 + q ) x 2 + 2 2 p x y + 2 y 2 .
Thus the assertion holds for n = 1 . By induction, we assume that the assertion holds for n = m 1 . Since D G 1 ( x 2 ) = 2 p x 2 + 2 x y , D G 1 ( x y ) = q x 2 + p x y + y 2 , and D G 1 ( y 2 ) = 2 q x y , we have
D G 1 m ( v 1 ) = D G 1 ( D G 1 m 1 ( v 1 ) ) = D G 1 ( 2 m 1 F m + 1 x 2 + 2 m F m x y + 2 m 1 F m 1 y 2 ) = 2 m 1 F m + 1 D G 1 ( x 2 ) + 2 m F m D G 1 ( x y ) + 2 m 1 F m 1 D G 1 ( y 2 ) = 2 m ( p F m + 1 + q F m ) x 2 + 2 m ( F m + 1 + p F m + q F m 1 ) x y + 2 m F m y 2 = 2 m F m + 2 x 2 + 2 m + 1 F m + 1 x y + 2 m F m y 2 .
Therefore the assertion is true for n = m , as desired.
Taking x = 0 , y = 1 on both sides of (7), we can obtain ( i ) . Since D G 1 ( v 1 ) = 2 v 2 , we obtain D G 1 n ( v 2 ) = 1 2 D G 1 n + 1 ( v 1 ) and hence ( i i ) holds.
At last, since D G 1 ( v 3 ) = p v 3 , we can get D G 1 n ( v 3 ) = p n v 3 . Combining this identity and v 3 | x = 0 , y = 1 = 1 , we obtain ( i i i ) . □
Now we give the main result of this paper.
Theorem 1. 
Let A n denote the Horadam sequence H n ( A 0 , A 1 ; p , q ) and let B n denote the Horadam sequence H n ( B 0 , B 1 ; p , q ) , respectively. Set Δ = p 2 + 4 q . We have
i = 0 n n i A i B n i = p A 1 B 1 + ( A 0 B 1 + A 1 B 0 ) ( p 2 + 2 q ) A 0 B 0 ( p 3 + 3 p q ) Δ 2 n F n + 2 A 1 B 1 ( A 0 B 1 + A 1 B 0 ) p + A 0 B 0 ( p 2 + 2 q ) Δ 2 n F n + 1 + 2 A 1 B 1 + ( A 0 B 1 + A 1 B 0 ) p + A 0 B 0 2 q Δ p n .
Proof. 
By (6), we see that
x 2 = p Δ v 1 + 2 Δ v 2 2 Δ v 3 , x y = p 2 + 2 q Δ v 1 p Δ v 2 + p Δ v 3 , y 2 = p 3 + 3 p q Δ v 1 + p 2 + 2 q Δ v 2 + 2 q Δ v 3 .
Substituting the above three equations into ( A 1 x + A 0 y ) ( B 1 x + B 0 y ) yields
( A 1 x + A 0 y ) ( B 1 x + B 0 y ) = p A 1 B 1 + ( A 0 B 1 + A 1 B 0 ) ( p 2 + 2 q ) A 0 B 0 ( p 3 + 3 p q ) Δ v 1 + 2 A 1 B 1 ( A 0 B 1 + A 1 B 0 ) p + A 0 B 0 ( p 2 + 2 q ) Δ v 2 + 2 A 1 B 1 + ( A 0 B 1 + A 1 B 0 ) p + A 0 B 0 2 q Δ v 3 .
Then, by Lemma 4, we get
D G 1 n ( ( A 1 x + A 0 y ) ( B 1 x + B 0 y ) ) | x = 0 , y = 1 = p A 1 B 1 + ( A 0 B 1 + A 1 B 0 ) ( p 2 + 2 q ) A 0 B 0 ( p 3 + 3 p q ) Δ 2 n F n + 2 A 1 B 1 ( A 0 B 1 + A 1 B 0 ) p + A 0 B 0 ( p 2 + 2 q ) Δ 2 n F n + 1 + 2 A 1 B 1 + ( A 0 B 1 + A 1 B 0 ) p + A 0 B 0 2 q Δ p n .
Combining with (5), we can obtain the desired result. □
Substituting the initial values of Horadam sequences in Theorem 1 yields the following corollary.
Corollary 1. 
For ( p , q ) -Fibonacci sequence F n and ( p , q ) -Lucas sequence L n , we have
(i
i = 0 n n i F i L n i = 2 n F n ;
(ii
i = 0 n n i F i F n i = 2 n p Δ F n + 2 n + 1 Δ F n + 1 2 p n Δ ;
(iii
i = 0 n n i L i L n i = 2 n p F n + 2 n + 1 F n + 1 + 2 p n .
Using Lemma 3, we can obtain the following result from the above corollary.
Corollary 2. 
We have
(i
i = 0 n n i F i F n i = 2 n Δ L n 2 p n Δ ;
(ii
i = 0 n n i L i L n i = 2 n L n + 2 p n .

3.2. Convolution Formulas Related to F k n and L k n

In the previous subsection, we have obtained some convolution formulas related to F n and L n using Horadam grammar (3), which can be rewritten as
G 1 = { x F 2 x + F 1 y , y q F 1 x + q F 0 y } .
where F 0 = 0 , F 1 = 1 and F 2 = p are ( p , q ) -Fibonacci numbers. Now, we add a parameter k and consider the grammar
G k = { x F k + 1 x + F k y , y q F k x + q F k 1 y } .
where F k 1 , F k and F k + 1 are all ( p , q ) -Fibonacci numbers.
Theorem 2. 
For n 1 , we have
(i
D G k n ( x ) = F k n + 1 x + F k n y ;
(ii
D G k n ( y ) = q F k n x + q F k n 1 y ;
(iii
D G k n ( b x + a y ) = ( b F k n + 1 + a q F k n ) x + ( b F k n + a q F k n 1 ) y .
Proof. 
First, we prove (i) by induction. Note that
D G k ( x ) = F k + 1 x + F k y .
The result holds for n = 1 . By induction, assume that the result holds for n = m 1 . Then, we calculate
D G k m ( x ) = D G k ( D G k m 1 ( x ) ) = D G k ( F k ( m 1 ) + 1 x + F k ( m 1 ) y ) = F k ( m 1 ) + 1 D G k ( x ) + F k ( m 1 ) D G k ( y ) = F k ( m 1 ) + 1 ( F k + 1 x + F k y ) + F k ( m 1 ) ( q F k x + q F k 1 y ) = ( F k ( m 1 ) + 1 F k + 1 + q F k ( m 1 ) F k ) x + ( F k ( m 1 ) + 1 F k + q F k ( m 1 ) F k 1 ) y = F k m + 1 x + F k m y ,
where the last equation follows from Lemma 2. It shows that the result still holds for n = m . Similarly, we can obtain ( i i ) by induction. The result ( i i i ) follows from (i) and ( i i ). This completes the proof. □
By (1) and Lemma 3, we can get p F k n + 1 + 2 q F k n = F k n + 2 + q F k n = L k n + 1 . Using the result of Theorem 2 ( i i i ) with a = 2 and b = p , we have the following corollary.
Corollary 3. 
For n 1 , we have
D G k n ( p x + 2 y ) = L k n + 1 x + L k n y .
Next, we consider to use the Leibnitz formula
D G k n ( ( A 1 x + A 0 y ) ( B 1 x + B 0 y ) ) | x = 0 , y = 1 = i = 0 n n i D G k i ( A 1 x + A 0 y ) | x = 0 , y = 1 D G k n i ( B 1 x + B 0 y ) | x = 0 , y = 1 .
to generate a new convolution formula. Taking x = 0 , y = 1 in Theorem 2 ( i i i ) , we can see that the right-hand side of Equation (8) is equal to
i = 0 n n i ( A 1 F k i + q A 0 F k i 1 ) ( B 1 F k n k i + q B 0 F k n k i 1 ) ,
which can be written as
i = 0 n n i j , l = 0 1 A j B l q 2 j l F k i 1 + j F k n k i 1 + l .
Therefore we need to find the sequence corresponding to
D G k n ( ( A 1 x + A 0 y ) ( B 1 x + B 0 y ) ) | x = 0 , y = 1 .
We employ the same basis polynomials v 1 , v 2 and v 3 defined in Equation (6) to solve the above problem. From D G k ( v 1 ) = 2 F k + 2 x 2 + 2 2 F k + 1 x y + 2 F k y 2 , D G k ( v 2 ) = 2 F k + 3 x 2 + 2 2 F k + 2 x y + 2 F k + 1 y 2 , and D G k ( v 3 ) = L k v 3 , we can derive the following lemma. The proof is similar to that of Lemma 4, so we omit it.
Lemma 5. 
For n 1 , we have
(i
D G k n ( v 1 ) | x = 0 , y = 1 = 2 n F k n ;
(ii
D G k n ( v 2 ) | x = 0 , y = 1 = 2 n F k n + 1 ;
(iii
D G k n ( v 3 ) | x = 0 , y = 1 = L k n .
Using the same manner with Theorem 1, we can obtain the following theorem by Theorem 2, Corollary 3 and Lemma 5:
Theorem 3. 
Let A n denote the Horadam sequence H n ( A 0 , A 1 ; p , q ) and let B n denote the Horadam sequence H n ( B 0 , B 1 ; p , q ) , respectively. Set Δ = p 2 + 4 q . We have
i = 0 n n i j , l = 0 1 A j B l q 2 j l F k i 1 + j F k n k i 1 + l = p A 1 B 1 + ( A 0 B 1 + A 1 B 0 ) ( p 2 + 2 q ) A 0 B 0 ( p 3 + 3 p q ) Δ 2 n F k n + 2 A 1 B 1 ( A 0 B 1 + A 1 B 0 ) p + A 0 B 0 ( p 2 + 2 q ) Δ 2 n F k n + 1 + 2 A 1 B 1 + ( A 0 B 1 + A 1 B 0 ) p + A 0 B 0 2 q Δ L k n .
Corollary 4. 
For the ( p , q ) -Fibonacci sequence F n and ( p , q ) -Lucas sequence L n , we have
(i
i = 0 n n i F k i L k n k i = 2 n F k n ;
(ii
i = 0 n n i F k i F k n k i = 2 n p Δ F k n + 2 n + 1 Δ F k n + 1 2 Δ L k n ;
(iii
i = 0 n n i L k i L k n k i = 2 n p F k n + 2 n + 1 F k n + 1 + 2 L k n .
By Lemma 3, we have p F k n + 2 F k n + 1 = q F k n 1 + F k n + 1 = L k n . So we obtain the following corollary:
Corollary 5. 
For the ( p , q ) -Fibonacci sequence F n and ( p , q ) -Lucas sequence L n , we have
(i
i = 0 n n i F k i F k n k i = 2 n Δ L k n 2 Δ L k n ;
(ii
i = 0 n n i L k i L k n k i = 2 n L k n + 2 L k n .
Many sequences, including Fibonacci and Lucas numbers, Jacobsthal and Jacobsthal–Lucas numbers, and all other sequences shown in Table 1, are special cases of F n and L n . For simplicity, we only give convolution formulas for Pell and Pell–Lucas numbers, as well as for Fermat and Fermat–Lucas numbers as applications of Theorem 3, as readers may derive other formulas by analogy.
Corollary 6. 
Let P n be the Pell number H n ( 0 , 1 ; 2 , 1 ) and Q n be the Pell–Lucas number H n ( 2 , 2 ; 2 , 1 ) , respectively. We have
(i
i = 0 n n i P k i Q k n k i = 2 n P k n ;
(ii
i = 0 n n i P k i P k n k i = 2 n 2 P k n + 2 n 2 P k n + 1 1 4 Q k n ;
(iii
i = 0 n n i Q k i Q k n k i = 2 n + 1 P k n + 2 n + 1 P k n + 1 + 2 Q k n .
Corollary 7. 
Let S n be the Fermat number H n ( 0 , 1 ; 3 , 2 ) and T n be the Fermat–Lucas number H n ( 2 , 3 ; 3 , 2 ) , respectively. We have
(i
i = 0 n n i S k i T k n k i = 2 n S k n ;
(ii
i = 0 n n i S k i S k n k i = 3 · 2 n S k n + 2 n + 1 S k n + 1 2 T k n ;
(iii
i = 0 n n i T k i T k n k i = 3 · 2 n S k n + 2 n + 1 S k n + 1 + 2 T k n .
Remark 1. 
In Section 3.1 and Section 3.2, we assume Δ = p 2 + 4 q 0 . This is a necessary condition for the invertibility of the coefficient matrix used to define v 1 , v 2 and v 3 in Equation (6). When Δ = 0 , the method fails. But for v 1 , v 2 and v 3 in Equation (6) and Theorem 2, Corollary 3 and Lemma 5 always hold, regardless of whether Δ is zero. Namely, the following equations are valid for all values of p and q:
D G k n ( x ) | x = 0 , y = 1 = F k n , D G k n ( p x + 2 y ) | x = 0 , y = 1 = L k n , D G k n ( v 1 ) | x = 0 , y = 1 = 2 n F k n , D G k n ( v 3 ) | x = 0 , y = 1 = L k n .
Note that v 1 = p x 2 + 2 x y = x ( p x + 2 y ) and if Δ = 0 , then v 3 = q x 2 + p x y + y 2 = 1 4 ( p x + 2 y ) 2 . Thus, using the Formula (8) with A 1 x + A 0 y = x , B 1 x + B 0 y = p x + 2 y , we have
i = 0 n n i F k i L k n k i = 2 n F k n .
Using the Formula (8) with A 1 x + A 0 y = p x + 2 y , B 1 x + B 0 y = p x + 2 y , we can drive
i = 0 n n i L k i L k n k i = 2 2 L k n .
Since F n = n p n 2 n 1 and L n = p n 2 n 1 when Δ = 0 , the two convolution Formulas (9) and (10) are consistent with the formulas of Corollary 4 ( i ) and ( i i i ) , respectively.
To sum up, the formulas of Corollary 4 ( i ) and ( i i i ) always hold, regardless of whether Δ is zero.
For example, let M n denote the modified Oresme number H n ( 0 , 1 ; 1 , 1 4 ) defined by
M 0 = 0 , M 1 = 1 , and M n + 2 = M n + 1 1 4 M n ( n = 0 , 1 , 2 , ) ,
and let R n denote the Oresme–Lucas number H n ( 2 , 1 ; 1 , 1 4 ) defined by
R 0 = 2 , R 1 = 1 , and R n + 2 = R n + 1 1 4 R n ( n = 0 , 1 , 2 , ) .
The sequence M n begins with
0 , 1 , 1 , 3 4 , 1 2 , 5 16 , 3 16 , , n 2 n 1 ,
The sequence R n begins with
2 , 1 , 1 2 , 1 4 , 1 8 , 1 16 , 1 32 , , 1 2 n 1 ,
We can verify the Formulas (9) and (10). For example, when n = 3 , k = 2 , we have
3 0 M 0 R 6 + 3 1 M 2 R 4 + 3 2 M 4 R 2 + 3 3 M 6 R 0 = 2 3 M 6 .
3 0 R 0 R 6 + 3 1 R 2 R 4 + 3 2 R 4 R 2 + 3 3 R 6 R 0 = 2 2 R 2 3 .

3.3. Convolution Formulas Related to ( q ) n i

Motivated by Fibonacci convolution identities involving the term ( 1 ) n i in [4], we extend the study of these identities to Horadam sequences, focusing on convolution formulas weighted by ( q ) n i . We introduce a new context-free grammar to generate such formulas. Let
G k ˜ = { x F k + 1 x + F k y , y q F k x + q F k 1 y , z q F k 1 z } .
The substitution rules on { x , y } in G k ˜ is the same with G k , and hence by Theorem 2, we have
D G k ˜ n ( x ) = F k n + 1 x + F k n y , D G k ˜ n ( y ) = q F k n x + q F k n 1 y .
The rule z q F k 1 z in the grammar G k ˜ leads that D G k ˜ ( z ) = q F k 1 z and D G k ˜ 2 ( z ) = D G k ˜ ( D G k ˜ ( z ) ) = D G k ˜ ( q F k 1 z ) = q F k 1 D G k ˜ ( z ) = ( q ) 2 F k 1 2 z , and one can easily check that
D G k ˜ n ( z ) = ( q ) n F k 1 n z .
Theorem 4. 
For n 1 , we have
(i
D G k ˜ n ( x z ) = F k n ( F n + 1 x z + F n y z ) ;
(ii
D G k ˜ n ( y z ) = q F k n ( F n x z + F n 1 y z ) ;
(iii
D G k ˜ n ( ( b x + a y ) z ) = F k n ( b F n + 1 + a q F n ) x z + F k n ( b F n + a q F n 1 ) y z .
Proof. 
First, we show (i) by induction. Note that
D G k ˜ ( x z ) = ( F k + 1 q F k 1 ) x z + F k y z = F k ( p x z + y z ) = F k ( F 2 x z + F 1 y z ) .
The result holds for n = 1 . By induction, assume that the result holds for n = m 1 . Then, since
D G k ˜ ( y z ) = ( q F k x + q F k 1 y ) z q F k 1 y z = q F k x z ,
we calculate
D G k ˜ m ( x z ) = D G k ˜ ( D G k ˜ m 1 ( x z ) ) = D G k ˜ ( F k m 1 ( F m x z + F m 1 y z ) ) = F k m 1 ( F m D G k ˜ ( x z ) + F m 1 D G k ˜ ( y z ) ) = F k m 1 ( F m F k ( F 2 x z + F 1 y z ) + F m 1 q F k x z ) = F k m ( ( F m F 2 + q F m 1 ) x z + F m F 1 y z ) = F k m ( F m + 1 x z + F m y z ) ,
where the last equation follows from Lemma 2. It shows that (i) still holds for n = m . By (13), we can get D G k ˜ n ( y z ) = q F k D G k ˜ n 1 ( x z ) , which yields ( i i ). Combining (i) and ( i i ), we obtain ( i i i ). This completes the proof. □
Now, we use the Leibnitz formula to generate new convolution formulas.
Theorem 5. 
Let F n denote the ( p , q ) -Fibonacci sequence and let L n denote the ( p , q ) -Lucas sequence, respectively. We have
i = 0 n n i ( q ) n i ( b F k i + a q F k i 1 ) F k 1 n i = F k n ( b F n + a q F n 1 ) .
Proof. 
We consider the following formula:
D G k ˜ n ( ( b x + a y ) z ) | x = 0 , y = z = 1 = i = 0 n n i D G k ˜ i ( b x + a y ) | x = 0 , y = z = 1 D G k ˜ n i ( z ) | x = 0 , y = z = 1 .
For the right-hand side of (14), by (11) and (12), we have
D G k ˜ i ( b x + a y ) | x = 0 , y = z = 1 = b F k i + a q F k i 1
and
D G k ˜ n i ( z ) | x = 0 , y = z = 1 = ( q ) n i F k 1 n i .
For the left-hand side of (14), by Theorem 4 ( i i i ) , we have
D G k ˜ n ( ( b x + a y ) z ) | x = 0 , y = z = 1 = F k n ( b F n + a q F n 1 ) .
Thus we obtain the desired formula. □
Corollary 8. 
Let F n denote the ( p , q ) -Fibonacci sequence and let L n denote the ( p , q ) -Lucas sequence, respectively. We have the following:
(i
i = 0 n n i ( q ) n i F k i F k 1 n i = F k n F n ;
(ii
i = 0 n n i ( q ) n i L k i F k 1 n i = F k n L n .
Proof. 
When a = 0 and b = 1 , the formula ( i ) is easily obtained. When a = 2 and b = p , we have b F n + a q F n 1 = p F n + 2 q F n 1 = F n + 1 + q F n 1 = L n by Equation (1) and Lemma 3, and hence we can obtain the desired formula ( i i ) . □

4. Conclusions

This paper uses context-free grammars as a new tool to investigate Horadam sequences. We have provided a unified approach to discover convolution formulas involving H n ( A 0 , A 1 ; p , q ) and H n ( B 0 , B 1 ; p , q ) with binomial coefficients. All convolution formulas in this paper are derived from Leibnitz’s formula, hence in the form
i = 0 n n i A i B n i .
For special sequences, H n ( 0 , 1 ; p , q ) (denoted as F n for brevity) and H n ( 2 , p ; p , q ) (denoted as L n for brevity), we have deduced the explicit formulas with parameters ( p , q ) . Our results apply to parameterized sequences of various types, whereas some authors only proved them for one or a few specific sequences, including those in [3,4,5,18,30]. To the best of our knowledge (compare with the alternative known result), Theorems 1, 3 and 5 are new.
Our result highlights the capacity of grammars in exploring new formulas. Distinct grammars can be used to derive different formulas. This is demonstrated in the paper by the change in grammars from G k to G k ˜ , which is used to obtain the formulas in Theorem 5. Constructing new variations in the grammar could be a pathway to discovering identities for other weighted polynomial sequences. Indeed, many combinatorial polynomials can be studied by grammars, making this method an important tool in combinatorics. It may be interesting to consider multivariate Fibonacci polynomials using grammars, and some formulas could be deduced, for example, the generalized Cassini formula.

Author Contributions

Methodology, J.-Y.L.; validation, H.-L.L.; formal analysis, Z.-H.Z.; writing—original draft preparation, J.-Y.L.; writing—review and editing, J.-Y.L. and T.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

No new data were created or analyzed in this study.

Acknowledgments

The authors appreciate anonymous referees for their careful reading and professional comments on the original version of this paper.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Horadam, A.F. A generalized Fibonacci sequence. Am. Math. Mon. 1961, 68, 455–459. [Google Scholar] [CrossRef]
  2. Cao, S.; Wang, T. Symmetric inequalities for reciprocal sums of Fibonacci numbers. Symmetry 2025, 17, 1743. [Google Scholar] [CrossRef]
  3. Church, C.A.; Bicknell, M. Exponential generating functions for Fibonacci identities. Fibonacci Q. 1973, 11, 275–281. [Google Scholar] [CrossRef]
  4. Carlitz, L. Some classes of Fibonacci sums. Fibonacci Q. 1978, 16, 411–426. [Google Scholar] [CrossRef]
  5. Đorđević, G.B.; Milovanović, G.V. Special Classes of Polynomials; Faculty of Technology, Leskovac, University of Niš: Leskovac, Serbia, 2014. [Google Scholar]
  6. Graham, R.L.; Knuth, D.E.; Patashnik, O. Concrete Mathematics: A Foundation for Computer Science, 2nd ed.; Addison-Wesley: Reading, MA, USA, 1994. [Google Scholar]
  7. Gulec, H.H.; Taskara, N. On the properties of Fibonacci numbers with binomial coefficients. Int. J. Contemp. Math. Sci. 2009, 4, 1251–1256. [Google Scholar]
  8. Guo, D.; Chu, W. Binomial sums with Pell and Lucas polynomials. Bull. Belg. Math. Soc.—Simon Stevin 2021, 28, 133–145. [Google Scholar] [CrossRef]
  9. Roettger, E.L.F.; Williams, H.C. The Enchantment of Numbers; Springer: Cham, Switzerland, 2025; pp. 69–117. [Google Scholar]
  10. Taskara, N.; Uslu, K.; Gulec, H.H. On the properties of Lucas numbers with binomial coefficients. Appl. Math. Lett. 2010, 23, 68–72. [Google Scholar] [CrossRef]
  11. Vajda, S. Fibonacci and Lucas Numbers, and the Golden Section, Theory and Applications; John Wiley and Sons: New York, NY, USA, 1989. [Google Scholar]
  12. Guo, B.N.; Polatlı, E.; Qi, F. Determinantal formulas and recurrent relations for bi-periodic Fibonacci and Lucas polynomials. In New Trends in Applied Analysis and Computational Mathematics, Proceedings of the International Conference on Advances in Mathematics and Computing (ICAMC 2020), Odisha, India, 7–8 February 2020; Springer: Singapore, 2021; pp. 263–276. [Google Scholar]
  13. Huan, Z.; Liu, L.L.; Yan, X. A unified approach to multivariate polynomial sequences with real stability. Adv. Appl. Math. 2023, 148, 102534. [Google Scholar] [CrossRef]
  14. Koparal, S.; Ömür, N.; Boz, S.; Mohamed, K.S.; Khan, W.A.; Adam, A. Generalized Fibonacci polynomials and their properties. Symmetry 2025, 17, 1898. [Google Scholar] [CrossRef]
  15. Liu, L.L.; Wang, Y. A unified approach to polynomial sequences with only real zeros. Adv. Appl. Math. 2007, 38, 542–560. [Google Scholar] [CrossRef]
  16. Ma, S.-M.; Qi, H.; Yeh, J.; Yeh, Y.-N. Stirling permutation codes. II. J. Comb. Theory Ser. A 2026, 217, 106093. [Google Scholar] [CrossRef]
  17. Qi, F.; Kızılateş, C.; Du, W.-S. A closed formula for the Horadam polynomials in terms of a tridiagonal determinant. Symmetry 2019, 11, 782. [Google Scholar] [CrossRef]
  18. Soykan, Y. On generalized Fibonacci polynomials: Horadam polynomials. Earthline J. Math. Sci. 2023, 11, 23–114. [Google Scholar] [CrossRef]
  19. Liu, J.-Y.; Li, H.-L.; Zhang, Z.-H. A grammatical interpretation of Horadam sequences. Axioms 2025, 14, 819. [Google Scholar] [CrossRef]
  20. Chen, W.Y.C. Context-free grammars, differential operators and formal power series. Theor. Comput. Sci. 1993, 117, 113–129. [Google Scholar] [CrossRef]
  21. Ma, S.-M.; Bian, H.; Liu, J.-Y.; Yeh, J.; Yeh, Y.-N. Determinantal representations of enumerative polynomials. Discret. Appl. Math. 2026, 378, 682–702. [Google Scholar] [CrossRef]
  22. Ma, S.-M.; Liu, J.-Y.; Yeh, J.; Yeh, Y.-N. Eulerian-type polynomials over Stirling permutations and box sorting algorithm. J. Comb. Theory Ser. A 2026, 220, 106132. [Google Scholar] [CrossRef]
  23. Ma, S.-M.; Qi, H.; Yeh, J.; Yeh, Y.-N. On the joint distributions of succession and Eulerian statistics. Adv. Appl. Math. 2025, 162, 102772. [Google Scholar] [CrossRef]
  24. Chen, W.Y.C.; Fu, A.M. The Dumont ansatz for the Eulerian polynomials, peak polynomials and derivative polynomials. Ann. Comb. 2023, 27, 707–735. [Google Scholar] [CrossRef]
  25. Chen, W.Y.C. Context-free grammars, permutations and increasing trees. Adv. Appl. Math. 2017, 82, 58–82. [Google Scholar] [CrossRef]
  26. Ma, S.-M.; Ma, J.; Yeh, J.; Yeh, Y.-N. Excedance-type polynomials, gamma-positivity and alternatingly increasing property. Eur. J. Comb. 2024, 118, 103869. [Google Scholar] [CrossRef]
  27. Ma, S.-M. Some combinatorial arrays generated by context-free grammars. Eur. J. Comb. 2013, 34, 1081–1091. [Google Scholar] [CrossRef]
  28. Ma, S.-M.; Ma, J.; Yeh, Y.-N.; Zhu, B.-X. Context-free grammars for several polynomials associated with Eulerian polynomials. Electron. J. Comb. 2018, 25, P1.31. [Google Scholar] [CrossRef] [PubMed]
  29. Shabiya, Y.; Kruchinin, V.; Kruchinin, D. Enumeration of words derived from unambiguous context-free grammars based on powers of generating functions. Proc. Jangjeon Math. Soc. 2025, 28, 299–317. [Google Scholar]
  30. Yang, H.R.; Phang, C. A context-free grammar associated with Fibonacci and Lucas sequences. J. Math. 2023, 2023, 6497710. [Google Scholar] [CrossRef]
  31. Zhou, R.R.; Yeh, J.; Ren, F. Context-free grammars for several triangular arrays. Axioms 2022, 11, 297. [Google Scholar] [CrossRef]
  32. Goldman, J.R. Formal languages and enumeration. J. Comb. Theory Ser. A 1978, 24, 318–338. [Google Scholar] [CrossRef][Green Version]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.