Abstract
The Horadam sequence has been widely studied in combinatorics and number theory. In this paper, we find that the context-free grammar can be used to generate Horadam sequences. Using this grammar, we deduce several identities, including Cassini-like identities. Moreover, we investigate the relationship between two distinct Horadam sequences and with and provide an approach to derive identities, which can be illustrated by the Fibonacci and Lucas sequences as well as the two kinds of Chebyshev polynomials.
MSC:
11B39; 11B83; 05A19
1. Introduction
Setting and , the linear recurrence relation
generates a sequence , which can be called the since Horadam initiated the study in 1961 [1]. It unifies a number of well-known sequences, see Table 1 for special cases. Recently, there have been many extensions and variations of the Horadam sequence, see [2,3,4,5,6,7,8,9,10,11]. For the sake of brevity, we shall denote by .
Table 1.
Some special cases of Horadam sequence.
In this paper, we find that the context-free grammar can be used to generate the Horadam sequence. The grammatical method was introduced by Chen [12] when he investigated exponential structures in combinatorics. The context-free grammar is a formal language that can be used to discover new combinatorial models [13,14], new combinatorial algorithms [7], and new convolution formulas [14,15]. Moreover, using the changing of the grammars, different expansions and novel relationships can also be discovered [7,14,15]. Recent studies have demonstrated broad applications of context-free grammars in combinatorics, see [16,17,18,19,20] for instance.
The paper is organized as follows: In Section 2, we present a grammatical description of the Horadam sequence. In Section 3, as applications of the Horadam grammar, we establish some identities associated with Horadam numbers and investigate the relationship between two distinct Horadam numbers and with .
2. The Horadam Grammar
Let A be an alphabet with letters as independent commutative indeterminates. Following Chen [12], a context-free grammar G over A consists of substitution rules replacing letters in A by formal functions over A. We can define a formal derivative associated with G as a differential operator on formal functions over A. More precisely, is a linear operator satisfying the relations
and the Leibnitz formula
In the following, we give an illustration of the grammar:
Consider the Fibonacci sequence defined by , . Suppose we are given a row of squares, with two types of tiles: dominos, which can cover two squares, and monominos, which can cover one square. A tiling of the row is a set of tiles that covers each square exactly once. It is well known that for , is the number of tilings of a row of squares [19]. We distinguish two cases: if the tiling ends with a monomino, then we mark it by a x; if the tiling ends with a domino, then we mark it by a y. It is easy to verify that . For example, and . Motivated by the above discussion, we can now present the main result of the paper.
Theorem 1.
We call the Horadam grammar. We have
In particular, .
Proof.
Note that
So, the result holds for . By induction, assume that the result holds for . Then,
as desired. This completes the proof. □
3. Applications of the Horadam Grammar
3.1. Explicit Formulas and Identities
As an application of Horadam grammar, we first deduce a known formula (see (Theorem 37) in [9]) of the Horadam sequence. We adopt a grammar-based proof, which is more concise.
Theorem 2.
For ,
Proof.
Note that
By introduction, it is routine to verify that
and, similarly,
Taking on both sides of , we can obtain
as desired. □
Theorem 2 can also be written in the equivalent form
Siar and Keskin [8] of (Theorem 6) showed
Next, we present a new expression of using solely the terms from the sequence via the grammatical approach, which is unavailable in the literature.
Theorem 3.
For ,
Taking and , we can, respectively, obtain that
For Fibonacci numbers and Lucas numbers , we obtain
Proof.
Next, we will present Vajda-like identities. The new result differs in form from the usual expressions. For example, Soykan [9] of (Theorem 11) showed
Yazlik and Taskara [11] of (Theorem 7) presented
However, when and , our result degenerates into a Cassini-like identity, coinciding with [9].
Theorem 4.
For ,
In particular, we have
- (i)
- when ;
- (ii)
- when ;
- (iii)
- when and .
Proof.
For the Horadam grammar , in order to compute more efficiently, we consider a change of it. Setting and , we see that . For this reason, we obtain a new grammar:
In the same way as in the proof of Theorem 1, it is easy to deduce that
Therefore, to study , we need to compute
Let us first examine how to calculate it for the case of .
To compute , we decompose the difference into a cascading sequence of intermediate terms. Through systematic cancellation of consecutive paired terms, the entire chain of equalities collapses into a concise expression involving only the boundary terms. That is,
Since , we obtain
which leads to (5). □
3.2. The Relationship Between and with
We will provide a new method to establish the relationship between two Horadam-type sequences that have different initial values.
Theorem 5.
Let be the Horadam numbers . For arbitrary numbers s and r and non-negative integer k, we have
In particular, if for some and k, there exists and e and non-negative integer l, such that
then
If and , then
Proof.
By Theorem 1, we have
Taking and on both sides of the above equation, we obtain (6).
Remark 1.
For a given and with , an effective way to deduce their relationship is as follows:
- (i)
- Fix the value of and e.
- (ii)
- Solve for s and r in the following equations
- (iii)
- Substitute s and r from (7) and simplify.
An illustration of Theorem 5 is given as follows:
Corollary 1
([21]). For the Fibonacci and Lucas numbers, we have
Proof.
Since and , we have , , and . Thus, letting and and, respectively, taking , , , …, in (8), we can obtain
Since the Lucas number (i.e., and ), we obtain
□
We now consider the Chebyshev polynomials as another application of Theorem 5. The Chebyshev polynomial of the first kind is a polynomial in t of degree n, satisfying the recurrence relation
with the initial conditions and . The first few Chebyshev polynomials are listed as follows:
The Chebyshev polynomial of the second kind satisfies the same recurrence relation
together with the initial conditions and . The first few terms are
The polynomial sequences and can be regarded as two different Horadam sequences with the same and . Therefore, according Theorem 1, for the grammar , we have
Corollary 2
([22]). We have
Proof.
In (7), by taking (i.e., and ), and , we arrive at
and so
Similarly, we can obtain the second formula by taking , and . □
By taking appropriate values, many such relationships can be obtained. In (7), by taking , and , we can obtain a new result.
Corollary 3.
We have
In particular, we have
Equivalently, we have
In (7), by taking
we obtain another new result.
Corollary 4.
We have
It should be noted that the Corollaries 1–4 merely present a subset of all possible identities. In fact, by Remark 1, we can obtain additional identities. For example, if we take , , , and , then we can obtain
Since , by Corollary 3, we obtain a new identity:
4. Conclusions
This paper uses context-free grammars as a new tool to investigate the properties of the Horadam sequence. By using a simple context-free grammar , we successfully generated the Horadam sequence. Our grammars not only derive several new or known identities but also uncover meaningful connections between Horadam sequences with different initial values and the same recurrence coefficients . Furthermore, we demonstrate how this grammatical method can be extended to derive identities for special cases, including the Fibonacci and Lucas numbers, as well as Chebyshev polynomials of the first and second kinds.
To the best of our knowledge, Theorems 1, 3, 4, and 5 and Corollaries 3 and 4 introduce new identities or relationships, whereas Theorem 2 and Corollaries 1 and 2 provide new proofs of known results, illustrating the versatility of the grammars. Our result highlights its capacity to both generate new knowledge and deepen the understanding of classical identities. The grammars can also be flexibly changed to derive different relational expressions. This is demonstrated in the paper by the transformation from grammar to , which is used to obtain the identity in Theorem 4.
Indeed, many combinatorial objects admit grammatical interpretations, making this method an important tool in combinatorics. For example, if the polynomials satisfy
we can always use a series of grammars, such as
to obtain the relation
where denotes the formal derivative associated with . Interested readers can use the above model to study the Hermite polynomials, Legendre polynomials, and other similar polynomials [23]. We next give another application. Let ; we can study the Meixner polynomials through . Beyond combinatorics, the grammars can also find applications in number theory, algorithm analysis, and the mathematical modeling of recursive processes in fields such as computer science and physics.
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. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported by the National Natural Science Foundation of China (NSFC No. 12071063).
Data Availability Statement
No new data were created or analyzed in this study. Data sharing is not applicable to this article.
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
- Horadam, A.F. A generalized Fibonacci sequence. Am. Math. Mon. 1961, 68, 455–459. [Google Scholar] [CrossRef] [Scilit]
- Abd-Elhameed, W.M.; Alqubori, O.M.; Alluhaybi, A.A.; Amin, A.K. Novel expressions for certain generalized Leonardo polynomials and their associated numbers. Axioms 2025, 14, 286. [Google Scholar] [CrossRef] [Scilit]
- Guo, B.N.; Polatlı, E.; Qi, F. Determinantal formulas and recurrent relations for bi-periodic Fibonacci and Lucas polynomials. In Advances in Intelligent Systems and Computing; Springer: Berlin/Heidelberg, Germany, 2021; p. 1356. [Google Scholar]
- 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] [Scilit]
- Larcombe, P.J.; Bagdasar, O.D.; Fennessey, E.J. Horadam sequences: A survey. Bull. ICA 2013, 67, 49–72. [Google Scholar]
- 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] [Scilit]
- 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] [Scilit]
- Şiar, Z.; Keskin, R. Some new identities concerning the Horadam sequence and its companion sequence. Commun. Korean Math. Soc. 2019, 34, 1–16. [Google Scholar]
- Soykan, Y. On generalized Fibonacci polynomials: Horadam polynomials. Earthline J. Math. Sci. 2023, 11, 23–114. [Google Scholar] [CrossRef] [Scilit]
- Tan, E.; Podrug, L.; Iršič Chenoweth, V. Horadam–Lucas Cubes. Axioms 2024, 13, 837. [Google Scholar] [CrossRef] [Scilit]
- Yazlik, Y.; Taskara, N. A note on generalized k-Horadam sequence. Comput. Math. Appl. 2012, 63, 36–41. [Google Scholar] [CrossRef] [Scilit]
- Chen, W.Y.C. Context-free grammars, differential operators and formal power series. Theor. Comput. Sci. 1993, 117, 113–129. [Google Scholar] [CrossRef] [Scilit]
- Chen, W.Y.C. Context-free grammars, permutations and increasing trees. Adv. Appl. Math. 2017, 82, 58–82. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]
- Chen, W.Y.C.; Fu, A.M. The Dumont ansatz for the Eulerian polynomials, peak polynomials and derivative polynomials. Ann. Combin. 2023, 27, 707–735. [Google Scholar] [CrossRef] [Scilit]
- Ma, S.-M. Some combinatorial arrays generated by context-free grammars. Eur. J. Comb. 2013, 34, 1081–1091. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]
- 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]
- Yang, H.R.; Phang, C. A context-free grammar associated with Fibonacci and Lucas sequences. J. Math. 2023, 1, 6497710. [Google Scholar] [CrossRef] [Scilit]
- Zhou, R.R.; Yeh, J.; Ren, F. Context-free grammars for several triangular arrays. Axioms 2022, 11, 297. [Google Scholar] [CrossRef] [Scilit]
- Roettger, E.L.F.; Williams, H.C. The Enchantment of Numbers; Springer: Cham, Switzerland, 2025; p. 110. [Google Scholar]
- Mason, J.C.; Handscomb, D.C. Chebyshev Polynomials; Chapman and Hall/CRC: New York, NY, USA, 2002; p. 30. [Google Scholar]
- Đorđević, G.B.; Milovanović, G.V. Special Classes of Polynomials; University of Niš, Faculty of Technology, Leskovac: Leskovac, Serbia, 2014. [Google Scholar]
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).