Abstract
Many people, including Horadam, have studied the numbers , satisfying the recurrence relation () with and . In this paper, we study the p-numerical semigroups of the triple for integers . For a nonnegative integer p, the p-numerical semigroup is defined as the set of integers whose nonnegative integral linear combinations of given positive integers with are expressed in more than p ways. When , is the original numerical semigroup. The largest element and the cardinality of are called the p-Frobenius number and the p-genus, respectively.
MSC:
11D07; 20M14; 05A17; 05A19; 11D04; 11B68; 11P81
1. Introduction
We consider the sequence , satisfying:
where u and v are positive integers with . The values of depend on the values of u and v. If , is the n-th Fibonacci number [1]. If and , is the n-th Jacobsthal number [2,3]. If and , is the n-th Pell number [4]. However, for simplicity, if we do not specify the values of u or v, we will simply write for .
This type of number sequence has been well known to many people by Horadam’s series of studies ([5,6,7,8,9]) in the 1960s. Because of this fact, this sequence is sometimes called the Horadam sequence. Horadam himself used the recurrence relation . However, recently more people (see, e.g., [10,11]) have used the recurrence relation and such works are still due to Horadam. In general, the initial values are arbitrary, but because of some simplifications, we set and . According to [6], this sequence has long exercised interest, as seen in, for instance, Bessel-Hagen [12], Lucas [13], and Tagiuri [14], and, for historical details, Dickson [15]. However, it is deplorable that quite a few papers are publishing results that have already been obtained by these authors as new results, either because they are unaware of their or the following important results, or even if they are ignoring them.
Given the set of positive integers (), for a nonnegative integer p, let be the set of integers whose nonnegative integral linear combinations of given positive integers are expressed in more than p ways. For a set of nonnegative integers , the set is finite if and only if . Then, there exists the largest integer in , called the p-Frobenius number. The cardinality of is called the p-genus and is denoted by . The sum of the elements in is called the p-Sylvester sum and is denoted by . This kind of concept is a generalization of the famous Diophantine problem of Frobenius since is the case when the original Frobenius number , the genus and the Sylvester sum are recovered. We can call the p-numerical semigroup. Strictly speaking, when , does not include 0 since the integer 0 has only one representation, so it satisfies simple additivity, and the set becomes a numerical semigroup. For numerical semigroups, we refer to [16,17,18]. For the p-numerical semigroup, we refer to [19]. The recent study of the number of representation (denumerant), denoted by p in this paper, can be seen in [20,21,22]. In particular, in [23], an algorithm that computes the denumerant is shown. In [24], three simple reduction formulas for the denumerant are obtaine using the Bernoulli–Barnes polynomials. In [25], this algorithm is shown to avoid plenty of repeated computations and is, hence, faster.
We are interested in finding any closed or explicit form of the p-Frobenius number, which is even more difficult when . For three or more variables, no concrete example had been found. Most recently, we have finally succeeded in giving the p-Frobenius number as closed-form expressions for the triangular number triplet ([26]), for repunits ([27,28]).
In this paper, we study the p-numerical semigroups of the triple for integers . We give explicit closed formulas of p-Frobenius numbers and p-genus of this triple. Note that the special cases for Fibonacci [1], Pell [4], and Jacobsthal triples [2,3] have already been studied.
The outline of this paper is as follows. In the next section, we introduce the concept of the p-Apéry set and show how it is used to obtain the p-Frobenius number, the p-genus and the p-Sylvester sum. In Section 3, we show the result for . The structure is different for odd k and even k. In Section 4, we show the result for , which is yielded from that for . In Section 5, we give an explicit form of the p-genus. The figures in Section 3 and Section 4 are helpful to find the calculation of the p-genus. In Section 6, we hint at some comments on a simple modification of the recurrence relation.
2. Preliminaries
We introduce the Apéry set (see [29]) below in order to obtain the formulas for , , and technically. Without loss of generality, we assume that .
Definition 1.
Let p be a nonnegative integer. For a set of positive integers with and we denote by:
the p-Apéry set of A, where each positive integer satisfies the conditions:
Note that is defined to be 0.
It follows that for each p:
Even though it is hard to find any explicit form of as well as and , by using convenient formulas established in [30,31], we can obtain such values for some special sequences after finding any regular structure of . One convenient formula is on the power sum:
by using Bernoulli numbers defined by the generating function:
and another convenient formula is on the weighted power sum ([32,33]):
by using Eulerian numbers appearing in the generating function:
with and . Here, is a nonnegative integer and . Some generalization of Bernulli numbers in connection with summation are devied in [34]. From these convenient formulas, many useful expressions are yielded as special cases. Some useful ones are given as follows. The Formulas (3) and (4) are entailed from and , respectively. The proof of this lemma is given in [31] as a more general case.
Lemma 1.
Let κ, p, and μ be integers with and . Assume that . We have:
Remark 1.
When , the Formulas (2)–(4) reduce to the formulas by Brauer and Shockley [35] [Lemma 3], Selmer [36] [Theorem], and Tripathi [37] [Lemma 1] (the latter reference contained a typo, which was corrected in [38]), respectively:
where () with .
3. The Case Where
We use the following properties repeatedly. The proof is trivial and omitted.
Lemma 2.
For , we have:
First of all, if i is odd and , then by (1) and (7):
Hence, . Therefore, from now on, we consider the case only when i is even and k is odd, or when i is odd, with .
3.1. The Case Where k Is Odd
When k is odd, we choose nonnegative integers and as:
where if due to (5); otherwise is the largest integer, satisfying:
More directly, when i is even (and k is odd):
When i is odd (and k is odd):
Note that if ([2]), then always .
When and i is odd, by and , there exists an integer h such that . By , . Thus:
Thus, we get:
We use the following identity.
Lemma 3.
For , we have:
Assume that (the case is discussed later). Then, the elements of the (0-)Apéry set are given in Figure 1. Here, we consider the expression:
or simply the position .
Figure 1.
for odd k.
We shall show that all the elements in Figure 1 constitute the sequence in the vertical y direction. However, if i is odd and i is even, the situation of this sequence is different. In short, if i is odd, the sequence appears continuously, but if i is even, the sequence is divided into u subsequences.
First, let i be odd. Then, by , we have:
By (7), we get:
Hence:
Thus, the element at () cannot be an element of but as the same residue modulo , where . Next, by Lemma 3, we have:
Thus, the element at () cannot be an element of but .
Therefore, the sequence is divided into the longer parts with length and the shorter parts with length . Namely, the longer part is of the subsequence:
with the next element at . The shorter part is of the subsequence
with the next element at . Since , all elements in are different modulo .
Next, let i be even. Then by , we have:
Hence:
with (). By the determination of in (11), we see that . So, we use the relation (14). Thus, each subsequence is given as the following points. For :
with next element is at , coming back to the first one, because of Lemma 3. In addition, by (8), all terms of the above subsequence are:
Since , this is equivalent to (). Therefore, there is no overlapped element among all subsequences. By (9), the total number of terms in each subsequence is:
as expected.
By Figure 1, the candidates of the largest element of are at or at . Since is equivalent to , by Lemma 1 (2), if , then:
If , then:
• The case k is odd with
When k is odd and , we get and . Hence, the elements of the (0-)Apéry set are given in Figure 2.
Figure 2.
when .
Similarly to the case , when i is odd, so , the sequence simply becomes one sequence by combining all the subsequences with length and with length . When i is even, so , the sequence consists of u subsequences with the same length .
By Figure 2, the largest element of is at . Hence:
In fact, this is included in the case where and .
3.2. The Case Where k Is Even
When k is even (so i is odd), we choose nonnegative integers q and r as:
where . Note that is an integer for even k. Note that because otherwise i is also even. Then, the elements of the (0-)Apéry set are given in Figure 3.
Figure 3.
for even k.
Similarly to the case where k is odd in (14), we have:
Thus, the element at () cannot be an element of but as the same residue modulo . The sequence is divided into the longer parts with length and one shorter part with length r. Namely, the longer part is of the subsequence:
with the next element at . One shorter part is of the subsequence:
with the next element at . Notice that similarly to Lemma 3, we have:
Since , all elements in are different modulo . Then by , we have:
By Figure 3, the candidates of the largest element of are at or at . Since is equivalent to , by Lemma 1 (2), if , then:
If , then:
Notice that may occur in some cases. For example, . In this case, both of the two formulas are valid, yielding the Frobenius number .
4. The Case Where
It is important to see that the elements of are determined from those of .
4.1. When k Is Odd
• When
The corresponding relations from to are as follows, see Figure 4.
Figure 4.
() for odd k.
[The first u rows]
by Lemma 3 and
respectively. Note that when , the second corresponding relation does not exist. This also implies that all the elements at and can be expressed in terms of in at least two ways.
[Others]
by the identity (13). This also implies that all the elements at can be expressed in at least two ways.
By Figure 4, there are four candidates to take the largest value of . Namely, the values at:
If , one of the elements at and at is the largest. In this case, if , then:
If , then:
If , one of the elements at and at is the largest. In this case, if , then:
If , then:
Example 1.
When , the first identity is applied:
Indeed, there are two representations in terms of as:
which is the largest element of . In fact, the second, the third and the fourth identities yield the smaller values:
respectively.
When , the second identity is applied:
In fact, the first, the third, and the fourth identities yield the smaller values:
respectively.
When , the third identity is applied:
In fact, the first, the second, and the fourth identities yield the smaller values:
respectively.
When , the fourth identity is applied:
In fact, the first, the second, and the third identities yield the smaller values:
respectively.
• When
The similar corresponding relations to the case are also applied for . When , the elements of the first u rows of the main area (the second block from the left) correspond to fill the gap below the left-most block:
The other elements of the main area correspond to those in the block immediately to the right to go up the u row:
The elements of the stair areas correspond to those in the block immediately to the right in the form as it is to go up the row:
Figure 5 shows the areas in which the elements of p-Apéry set exist for . The outermost lower right area is the area where the elements of the 2-Apéry set exist. We can also show that all the elements of the 2-Apéry set have at least three distinct representations in terms of .
Figure 5.
() for odd k.
From Figure 5, there are six candidates to take the largest element of . These elements are indicated as follows: 

If (or ), one of those at
,
, and
is the largest. Otherwise, one of those at
,
, and
is the largest. However, it is clear that one of the values at
or
(respectively,
or
) is larger than at
(respectively,
). Hence, if , then the element at
(respectively,
) is the largest. Otherwise, the element at
(respectively,
) is the largest.
,
, and
is the largest. Otherwise, one of those at
,
, and
is the largest. However, it is clear that one of the values at
or
(respectively,
or
) is larger than at
(respectively,
). Hence, if , then the element at
(respectively,
) is the largest. Otherwise, the element at
(respectively,
) is the largest.In conclusion, if and , then:
If and , then:
If and , then:
If and , then:
In general, for an integer , it is sufficient to compare two elements at both ends, see Figure 6. If and , then:
Figure 6.
for odd k.
If and , then:
If and , then:
If and , then:
The positions of the elements of below the left-most block and the positions of in the right-most block are arranged as shown in Figure 6.
This situation is continued as long as . However, when , the shape of the block on the right side collapses. Thus, the regularity of taking the maximum value of is broken. Hence, the fourth case holds until and other cases hold for .
In conclusion, when k is odd, the p-Frobenius number is given as follows.
Theorem 1.
If and , then:
If and , then:
If and , then for :
Example 2.
When , the first identity is applied. Since and , for we have:
Namely, the corresponding element for each integer is at (). However, for , the p-Frobenius numbers can be computed neither by the above formula nor by any other closed formulas. Namely, the real value is , corresponding to , though the formula gives 1274931, corresponding to .
4.2. When k Is Even
• When
Similarly to the odd case where k is odd, the elements of can be determined from those of . When , there are corresponding relations as follows.
[The first row ]
with
due to (15). Note that when the second corresponding relation does not exist. This also implies that all the elements at and can be expressed in terms of in at least two ways.
[Others]
by the identity (13). This also implies that all the elements at can be expressed in at least two ways.
By Figure 7, there are four candidates to take the largest value of . Namely, the values at:
Figure 7.
() for even k.
If , one of the elements at and at is the largest. In this case, if , then:
If , then
If , one of the elements at and at is the largest. In this case, if , then:
If , then:
• When
The situation is similar for . From Figure 8, there are six candidates to take the largest element of . These elements are indicated as follows:


Figure 8.
() for even k.
Similarly to the case where k is odd, middle element at
and at
cannot take the largest value. Hence, if , then the element at
(respectively,
) is the largest. Otherwise, the element at
(respectively,
) is the largest.
and at
cannot take the largest value. Hence, if , then the element at
(respectively,
) is the largest. Otherwise, the element at
(respectively,
) is the largest.In conclusion, if and , then:
If and , then:
If and , then:
If and , then:
In general, for an integer , it is sufficient to compare two elements at both ends, see Figure 9. If and , then:
If and , then:
If and , then:
If and , then:
Figure 9.
for even k.
The positions of the elements of below the left-most block and the positions of in the right-most block are arranged as shown in Figure 6.
This situation is continued as long as . However, when , the shape of the block on the right side collapses. Namely, we cannot take the value at . Thus, the regularity of taking the maximum value of is broken. Hence, the fourth case holds until , and other cases hold for .
In conclusion, when k is even, the p-Frobenius number is given as follows.
Theorem 2.
Let i be an integer and k be even with . Let q and r be determined as (15). For , if and , then:
If and , then:
If and , then:
If and , then for :
Example 3.
When , we have and . So, the elements of , where , are given as in Figure 10. The largest element is at , which comes from the second identity. Thus:
Figure 10.
for .
Notice that the right-most element is at and the block of the right side is empty. Therefore, the formula does not hold for . In fact, , corresponding to , though the formula gives 63,914, corresponding to .
5. -Genus
5.1. The Case Where k Is Odd
Let k be odd. For a nonnegative integer p, the areas of the p-Apéry set can be divided into three parts: the stairs part (left), the stairs part (right), and the main part. By referring to Figure 6 (with Figure 4 and Figure 5), we can compute:
Here, we used the relation (9) to simplify the expression. In addition, by , we have:
By Lemma 1 (3), we have:
Since the z value of the right-most side must be nonnegative, . Namely, the above formula is valid for .
Example 4.
When , by:
for we have for
However, for , the p-genus cannot be obtained by the above formula. The real values are given by:
though the formula gives:
5.2. The Case Where k Is Even
Similarly to the case for k is odd, when k is even, by referring to Figure 9 (with Figure 7 and Figure 8), we can compute:
Here, we used the relation (15) to simplify the expression. In addition:
are all positive integers. By Lemma 1 (3), we have:
In conclusion, the p-genus is explicitly given as follows.
Theorem 3.
Example 5.
Let . So, . Then, for by the formula we have:
However, contrary to the fact that , the formula gives 50746.
6. Final Comments
The original numbers studied by Horadam satisfy the recurrence relation . From this point of view, almost all the above identities hold by replacing v by , though the condition is necessary. For example, the identities of (7) and (8) are replaced by:
respectively. For example, when , by for by the first identity of Theorem 1, we have:
When , by for by the first identity of Theorem 2, we have:
7. Conclusions
In this paper, we give explicit formulas of the p-Frobenius number and the p-genus of triplet for integers , where ’s are the so-called Horadam numbers, satisfying the recurrence relation () with and . We give explicit closed formulas of p-Frobenius numbers and p-genus of this triple. When , or , the results for Fibonacci, Pell, and Jacobsthal triples are recovered.
Horadam also studied the number with arbitrary initial values and . However, with arbitrary initial values, many identities (e.g., (7)) do not hold as they are. Hence, the situation becomes too complicated. An approach to get some recurrences to a wide class of polynomials in [39] may be useful for future works.
Author Contributions
Writing—original draft preparation, T.K.; writing—review and editing, J.M. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Data are contained within the article.
Conflicts of Interest
The author declares no conflicts of interest.
References
- Komatsu, T.; Ying, H. The p-Frobenius and p-Sylvester numbers for Fibonacci and Lucas triplets. Math. Biosci. Eng. 2023, 20, 3455–3481. [Google Scholar] [CrossRef] [PubMed]
- Komatsu, T.; Pita-Ruiz, C. The Frobenius number for Jacobsthal triples associated with number of solutions. Axioms 2023, 12, 98. [Google Scholar] [CrossRef]
- Komatsu, T.; Laishram, S.; Punyani, P. p-numerical semigroups of generalized Fibonacci triples. Symmetry 2023, 15, 852. [Google Scholar] [CrossRef]
- Komatsu, T.; Mu, J. p-numerical semigroups of Pell triples. J. Ramanujan Math. Soc. 2023. in press. Available online: https://jrms.ramanujanmathsociety.org/articles_in_press.html (accessed on 27 October 2023).
- Horadam, A.F. A generalized Fibonacci sequence. Am. Math. Mon. 1961, 68, 455–459. [Google Scholar] [CrossRef]
- Horadam, A.F. Generating functions for powers of a certain generalized sequence of numbers. Duke Math. J. 1965, 32, 437–446. [Google Scholar] [CrossRef]
- Horadam, A.F. Basic properties of a certain generalized sequence of numbers. Fibonacci Quart. 1965, 3, 161–177. [Google Scholar]
- Horadam, A.F. Special properties of the sequence wn (a, b; p, q). Fibonacci Quart. 1967, 5, 424–434. [Google Scholar]
- Horadam, A.F. Tschebyscheff and other functions associated with the sequence {wn (a, b; p, q)}. Fibonacci Quart. 1969, 7, 14–22. [Google Scholar]
- Belbachir, H.; Belkhir, A. On some generalizations of Horadam’s numbers. Filomat 2018, 32, 5037–5052. [Google Scholar] [CrossRef]
- Kocer, G.E.; Mansour, T.; Tuglu, N. Norms of circulant and semicirculant matrices with Horadam’s numbers. Ars Comb. 2007, 85, 353–359. [Google Scholar]
- Bessel-Hagen, E. Repertorium der höheren Mathematik; B. G. Teubner: Leipzig, Germany, 1929; p. 1563. [Google Scholar]
- Lucas, E. Théorie des Nombres; Librairie Scientifique et Technique Albert Blanchard: Paris, France, 1961. [Google Scholar]
- Tagiuri, A. Sequences of positive integers. Period. Mat. Storia Ser. 2 1901, 3, 97–114. (In Italian) [Google Scholar]
- Dickson, L.E. History of the Theory of Numbers. Vol. I: Divisibility and Primality; Chelsea Publishing Co.: New York, NY, USA, 1966; Chapter 17. [Google Scholar]
- Assi, A.; D’Anna, M.; Garcia-Sanchez, P.A. Numerical Semigroups and Applications, 2nd ed.; RSME Springer Series 3; Springer: Cham, Switzerland, 2020. [Google Scholar]
- Rosales, J.C.; Garcia-Sanchez, P.A. Finitely Generated Commutative Monoids; Nova Science Publishers, Inc.: Commack, NY, USA, 1999. [Google Scholar]
- Rosales, J.C.; Garcia-Sanchez, P.A. Numerical Semigroups; Developments in Mathematics, 20; Springer: New York, NY, USA, 2009. [Google Scholar]
- Komatsu, T.; Ying, H. p-numerical semigroups with p-symmetric properties. J. Algebra Appl. 2024, 2450216. [Google Scholar] [CrossRef]
- Liu, F.; Xin, G.; Ye, S.; Yin, J. A note on generalized repunit numerical semigroups. arXiv 2023, arXiv:2306.10738. [Google Scholar]
- Liu, F.; Xin, G.; Ye, S.; Yin, J. A combinatorial model of numerical semigroup. arXiv 2023, arXiv:2306.03459. [Google Scholar]
- Liu, F.; Xin, G. A combinatorial approach to Frobenius numbers of some special sequences (complete version). arXiv 2023, arXiv:2303.07149. [Google Scholar]
- Liu, F.; Xin, G. A fast algorithm for denumerants with three variables. arXiv 2024, arXiv:2406.18955. [Google Scholar]
- Liu, F.; Xin, G.; Zhang, C. Three simple reduction formulas for the denumerant functions. arXiv 2024, arXiv:2404.13989. [Google Scholar]
- Xin, G.; Zhang, C. An algebraic combinatorial approach to Sylvester’s denumerant. arXiv 2023, arXiv:2312.01569. [Google Scholar]
- Komatsu, T. The Frobenius number for sequences of triangular numbers associated with number of solutions. Ann. Comb. 2022, 26, 757–779. [Google Scholar] [CrossRef]
- Komatsu, T. The Frobenius number associated with the number of representations for sequences of repunits. C. R. Math. Acad. Sci. Paris 2023, 361, 73–89. [Google Scholar] [CrossRef]
- Komatsu, T.; Laohakosol, V. The p-Frobenius problems for the sequence of generalized repunits. Results Math. 2023, 79, 26. [Google Scholar] [CrossRef]
- Apéry, R. Sur les branches superlinéaires des courbes algébriques. C. R. Acad. Sci. Paris 1946, 222, 1198–1200. [Google Scholar]
- Komatsu, T. Sylvester power and weighted sums on the Frobenius set in arithmetic progression. Discret. Appl. Math. 2022, 315, 110–126. [Google Scholar] [CrossRef]
- Komatsu, T. On the determination of p-Frobenius and related numbers using the p-Apéry set. Rev. R. Acad. Cienc. Exactas Fís. Nat. Ser. A Mat. RACSAM 2024, 118, 58. [Google Scholar] [CrossRef]
- Komatsu, T.; Zhang, Y. Weighted Sylvester sums on the Frobenius set. Ir. Math. Soc. Bull. 2021, 87, 21–29. [Google Scholar] [CrossRef]
- Komatsu, T.; Zhang, Y. Weighted Sylvester sums on the Frobenius set in more variables. Kyushu J. Math. 2022, 76, 163–175. [Google Scholar] [CrossRef]
- Leinartas, E.K.; Shishkina, O.A. The discrete analog of the Newton–Leibniz formula in the problem of summation over simplex lattice points. Zh. Sib. Fed. Univ. Mat. Fiz. 2019, 12, 503–508. [Google Scholar] [CrossRef]
- Brauer, A.; Shockley, B.M. On a problem of Frobenius. J. Reine. Angew. Math. 1962, 211, 215–220. [Google Scholar]
- Selmer, E.S. On the linear diophantine problem of Frobenius. J. Reine Angew. Math. 1977, 293–294, 1–17. [Google Scholar]
- Tripathi, A. On sums of positive integers that are not of the form ax + by. Am. Math. Mon. 2008, 115, 363–364. [Google Scholar] [CrossRef]
- Punyani, P.; Tripathi, A. On changes in the Frobenius and Sylvester numbers. Integers 2018, 18B, A8. [Google Scholar] [CrossRef]
- Lyapin, A.P.; Akhtamova, S.S. Recurrence relations for the sections of the generating series of the solution to the multidimensional difference equation. Vestn. Udmurt. Univ. Mat. Mekh. Komp’yut. Nauk. 2021, 31, 414–423. [Google Scholar] [CrossRef]
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. |
© 2024 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/).









