Abstract
We give an explicit formula for the p-Frobenius number of triples associated with Diophantine Equations (), that is, the largest positive integer that can only be represented in p ways by combining the three integers of the solutions of Diophantine equations . This result is also a generalization because if and , the (0-)Frobenius number of the Pythagorean triple has already been given. To find p-Frobenius numbers, we use geometrically easy to understand figures of the elements of the p-Apéry set, which exhibits symmetric appearances.
MSC:
11D07; 11D25; 05A15; 11D04; 20M14
1. Introduction
Diophantine equations are a fundamental part and one of the oldest branches of number theory. The main study is of polynomial equations or systems of equations, particularly in integers. Though there are many aspects and applications (see, e.g., [,,]), Diophantine equations are used to characterize certain problems in Diophantine approximations. The study of the Frobenius problem of Pythagorean triples is important in the fields of number theory and discrete mathematics. This problem has important applications in cryptography, computer science, combinatorics, and other fields. For example, in cryptography, it is related to the discrete logarithm problem and elliptic curve cryptography. In computer science, it is related to algorithm design and complexity analysis. In combinatorics, it is related to many problems in graph theory and discrete mathematics. Therefore, studying the Pythagorean Frobenius problem not only helps to understand the basic problems of number theory and discrete mathematics but also provides an important mathematical foundation for practical applications.
In [,], we computed upper and lower bounds for the approximation of hyperbolic functions at points () by rationals such that x, y, and z form Pythagorean triples. In [,], we considered Diophantine approximations to values of hyperbolic functions, where is the solution of more Diophantine equations, including .
In both physics and biology, both the Pythagorean triples and the Pythagorean theorem have some applications. In physics, the Pythagorean triples and the Pythagorean theorem can be applied to describe problems in mechanics and kinematics. For example, when studying the trajectory, velocity, and acceleration of an object, the Pythagorean theorem can be used to calculate the relationship between the position and velocity of an object at different points in time. In addition, the Pythagorean theorem can also be used to analyze the path and interference effects of waves when describing wave propagation and interference. In biology, the Pythagorean triples and the Pythagorean theorem can be applied to describe the morphology and structure of living organisms. For example, when studying the bone structure, organ layout, and neural network of an object, the Pythagorean theorem and the Pythagorean triples can be used to analyze the relationship between them. In addition, the Pythagorean theorem can be used to describe the proportions and associations between different parts during the growth and development of organisms. Overall, the Pythagorean triples and the Pythagorean theorem can help scientists understand and describe the motion, morphology, and structure of objects in physics and biology, thus helping to study and explain various phenomena and laws.
For integer , consider a set of positive integers with . Finding the number of non-negative integral representations , denoted by , to for a given positive integer n is one of the most important and interesting topics. This number is often called the denumerant and is equal to the coefficient of in ([]). Sylvester [] and Cayley [] showed that can be expressed as the sum of a polynomial in n of degree and a periodic function of period . For two variables, a formula for is obtained in []. For three variables in the pairwise coprime case , in [], the periodic function part is expressed in terms of trigonometric functions.
For a non-negative integer p, define and by
and
respectively, satisfying , which is the set of non-negative integers. The set is called a p-numerical semigroup because is a usual numerical semigroup. is the set of p-gaps. Define and by
and these are called the p-Frobenius number and the p-Sylvester number (or p-genus). When , and are the original Frobenius number and Sylvester number (or genus), respectively. Finding such values is one of the crucial matters in the Diophantine problem of Frobenius. More detailed descriptions of the p-numerical semigroups and their symmetric properties can be found in [].
The Frobenius problem (also known as the coin exchange problem, postage stamp problem, or Chicken McNugget problem) has a long history and is one of the popular problems that has attracted the attention of experts as well as amateurs. For two variables , it is known that
(see Refs. [,]). For three or more variables, the Frobenius number cannot be given by any set of closed formulas which can be reduced to a finite set of certain polynomials ([]). For three variables, various algorithms have been devised for finding the Frobenius number. For example, in [], the Frobenius number is uniquely determined by six positive integers that are the solution to a system of three polynomial equations. In [], a general algorithm is given by using a matrix. Nevertheless, explicit closed formulas have been found only for some special cases, including arithmetic, geometric, Mersenne, repunits, and triangular (see [,,] and references therein). We are interested in finding explicit closed forms, which is one of the most crucial matters in the Frobenius problem. Our method has an advantage in terms of visually grasping the elements of the Apéry set, and it is more useful to obtain more related values, including th egenus (Sylvester number), Sylvester sum [], weighted power Sylvester sum [,,], and so on.
We are interested in finding a closed or explicit form for the p-Frobenius number, which is more difficult when . For three or more variables, no concrete examples had been found until recently, when the first author succeeded in giving the p-Frobenius number as a closed-form expression for the triangular number triplet ([]) for repunits ([,]), Fibonacci triplets ([]), Jacobsthal triplets ([,]), and arithmetic triplets ([]).
When , it is the original Frobenius number in the famous Diophantine problem of Frobenius. We also obtain closed forms for the number of positive integers and the largest positive integer that can be represented in only p ways by combining the three integers of the Diophantine triple.
In this paper, we study the numerical semigroup of the triples satisfying the Diophantine equation (). When and , the Frobenius number of the Pythagorean triple is given in [,]. The Frobenius number of a little-modified triple is studied in []. To find p-Frobenius numbers, we use geometrically easy to understand figures of the elements of the p-Apéry set.
2. Preliminaries
We introduce the p-Apéry set (see []) below in order to obtain the formulas for and . Without loss of generality, we assume that .
Definition 1.
Let p be a non-negative 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 following conditions:
Note that is defined to be 0.
It follows that for each p,
When , it is hard to find any explicit form of as well as . Nevertheless, the following convenient formulas are known (for a more general case, see []). Though finding is hard enough in general, we can obtain it for some special sequences .
Lemma 1.
Let k and p be integers with and . Assume that . We have
Remark 1.
When , the formulas (1) and (2) reduce to the formulas by Brauer and Shockley [] and Selmer [], respectively:
where () with . The formula for the Sylvester sum was discovered by Tripathi []. More general formulas using Bernoulli numbers can be seen in [].
3.
For the solution of the Diophantine equation , we obtain two kinds of parameterizations. Notice that there are common cases in both. If , then
where . If , then
where .
The case where has already been discussed in [,]. Namely,
Let . Then the Frobenius number of this triple is given as follows.
Theorem 1.
If , then
If , then
Remark 2.
When , both formulas in Theorem 1 reduce to that in (3). It is important to see that when , two kinds of parameterizations depend upon which of and is smaller.
3.1. When
For convenience, we put
Since and , we see that and . Note that when . When , we assume that .
The elements of the (0-)Apéry set are given as in Table 1, where each point corresponds to the expression and the area of the (0-)Apéry set is equal to .
Table 1.
when .
Since
we have and . Therefore, the sequence can be arranged as follows.
[Step 1]
After the row of the longer term
with length s, by increasing by t in the vertical direction, we move to the row
because . If it is still in the longer term, we repeat [Step 1].
[Step 2]
If it reaches the shorter term
with length , by decreasing by () in the vertical direction, we move to the row
because
If it is still in the shorter term, we repeat In fact, after the point , one moves back to .
Since , all the points inside the area in Table 1 appear in the sequence just once. Indeed, this sequence is equivalent to the sequence .
It is clear that one of the values at or at takes the largest element. Since , the element at is the largest in the Apéry set. Hence, by Lemma 1 (1), we have
3.2. When
For convenience, we put
Since and , we see that and . Note that when . When , we assume that .
Since , we have and . In a similar way, we know that all the elements of the (0-)Apéry set are given as in Table 2.
Table 2.
when .
Therefore, the sequence can be arranged as follows.
[Step 1]
After the row of the longer term
with length (), by increasing by () in the vertical direction, we move to the row
because . If it is still in the longer term, we repeat
[Step 2]
If it reaches the shorter term
with length t, by decreasing by (t) in the vertical direction, we move to the row
because . If it is still in the shorter term, we repeat [Step 2]. Otherwise, we apply [Step 1]. In fact, after the point , one moves back to .
Since , all the points inside the area in Table 2 appear in the sequence just once. Indeed, this sequence is equivalent to the sequence .
Compare the elements at and , which take possible maximal values. Since
we find that the element at is the largest in the Apéry set. By Lemma 1 (1), we have
4.
We shall show the following.
Theorem 2.
If , then for a non-negative integer p with ,
If , then for a non-negative integer p with ,
4.1. When
4.1.1.
All elements of are arranged in the form of shifting elements of whose remainders modulo are equal. Assume that now (otherwise, the arrangement of the elements in the Apéry set is very complicated and requires separate discussions so that the Frobenius number cannot be given in the general closed explicit formula, as mentioned later in the general p case). See Table 3. Since , each value at is equivalent to the value at . In addition, by , the elements of the first t rows in are shifted by (in the lower-right direction) as the elements of . However, as the column width of the element in the first () rows is s, if it is transferred as it is, there will be a part that protrudes sideways, and such a part is located below the lower-left area of (this position is reasonable because ). Finally, all elements other than the elements in the first t rows move directly to the side of the area of in the upper-right (this position is also reasonable because ). From this arrangement, also forms a complete residue system modulo .
Table 3.
when .
Now we shall show that each element has at least two different representations. For the area at the bottom-left of Table 3, by
we have for and
For the middle area of , by (6), we have for and
There are four candidates at
to take the largest value in . Since , the first one and the third one are larger than the second one and the fourth one, respectively. Since , the first one is bigger than the third one. Hence, by Lemmas 1 (1)
4.1.2.
When , it continues until , the area of moves to the area of , which moves to the area of , and so on, in the correspondence relation modulo (). Table 4 shows the areas of the () for the case where . In Table 4, the area of is marked as 0 (including and ); that of is marked as 1 (including and ) with and ; that of is marked as 2 (including and ) with , , , and ; and that of is marked as 3 with , , , , , and . The areas having the same residue modulo () are determined as
and the main parts are as
That is, the elements of the area of the lower-left stair portions in correspond to the elements of the area of the upper-right stair portion in and are aligned from the upper-right row to the lower-left. The elements of the area of the upper-right stair portion in correspond to the elements of the area of the lower-left stair portion in , respectively, and line up in the upper-right direction from the lowest-left column. The elements of the area of in the center portion, except for the area in the lower-left and the area in the upper-right, correspond to the elements of the area of in the lower-right diagonal direction.
Table 4.
() when .
More generally and more precisely, for , each element of the l-th block from the left in the area of the lower-left stair portions in is expressed by
and for , each element of the -th block from the right in the area of the upper-right stair portions in is expressed by
Then, by , we have the congruent relation for and
as well as for and .
For simplicity, denote by the value of . Each element of the leftmost area of () has exactly () representations, because
Note that since .
Each element of the second from the left area of () has exactly () representations, because
Each element of the third from the left area of () has exactly () representations, because
In general, each element of the l-th () from the left area of () has exactly () representations, because
Similarly, each element of the -th () from the top-right area of () has exactly () representations, because
Concerning the central portion of , it is easy to see that each element is expressed by
and all elements have exactly () representations, because
Finally, the candidates to take the largest value in are clearly scattered in the lower right corners:
By comparing these values, we can find that is the largest. Hence, by Lemma 1 (1)
In addition, Theorem 2 does not hold for . As can be seen from the example in Table 4, the elements of the central area of corresponding to the elements of the central area of are not all left, and there will be elements corresponding to another location. Due to the deviation, the place where the maximum value is taken also changes from in for . In the case of the example in Table 5, for , the elements in the area of the stair part on both sides still regularly move to the opposite side, but in the main central part, some surplus elements move to the lower-left () and some to the upper-right (). In this case, in general, takes the largest value. It is as shown in Table 5. At , the place where the largest value is taken becomes more complicated since the corresponding residue part is further displaced.
Table 5.
() when .
In the table, denotes the position of the largest element in . Note that the
area (and so 4h) does not exist if is an integer.
4.2. When
When , the situation is somewhat similar to that of the case where , but the roles of and are interchanged. Namely, the roles of () and t are interchanged. Therefore, the calculation is not so similar.
Table 6 shows the case where . The numbers indicate the area of for .
Table 6.
() when .
For simplicity, denote by . More generally and more precisely, for , each element of the l-th block from the left in the area of the lower-left stair portions in is expressed by
and for , each element of the -th block from the right in the area of the upper-right stair portions in is expressed by
Concerning the central portion of , each element is expressed by
All the lower-right elements of the () square areas and the central area are candidates for the largest value of . Furthermore, by comparison, we can see that the position at takes the largest value, which is at the bottom-right of the central area, and in Table 6, the position is shown by (p = 0, 1, 2, 3). Hence, by Lemma 1 (1)
5. Sylvester Number (Genus)
We can use Table 4 to obtain an explicit form of the genus (Sylvester number). First, let . For a non-negative integer p, by the representation of each element in Equations (8)–(10), we have
By Lemma 1 (2) we have
Next, consider the case where . For a non-negative integer p, by the representation of each element in Equations (11)–(13), we have
By Lemma 1 (2) we have
Theorem 3.
When , for a non-negative integer p with , we have
When , for a non-negative integer p with , we have
6. Examples
When in Theorems 2 and 3, the result appears in [].
When and , by applying the first formula of Theorem 2, for we have
In fact,
However, when , this formula gives 379680, which does not match the real value 379679. By applying the first formula of Theorem 3, we have for
In fact,
When and , we can apply the second formula of Theorem 2. For we have
In fact,
By applying the second formula of Theorem 3, we have for
In fact,
7. Final Comments
In the case of two variables, there are general explicit formulas for the Frobenius and Sylvester numbers. Even if the classic is such a situation, the case when is even more difficult. In this paper, we succeeded in providing closed explicit formulas with a smaller non-negative integer p. If the value of p becomes larger, as is shown in the tables, the regularity is broken, so these numbers can only be found in separate arguments. It is clear that it is very difficult to give a general closed explicit formula for all non-negative integers p. For more than three variables, general closed explicit formulas for all non-negative integers p have not yet been discovered in any particular case.
Diophantine equations of the type () seem to be more popular. Their solutions can also be parameterized. However, the situation becomes much more complicated, and much more detailed discussion is needed. In addition, if the value r is different, the situation of the Apéry set is different, so we cannot discuss the general r.
8. Conclusions
Pythagorean triples are positive integer solutions to the most fundamental equations among the many Diophantine equations and have been studied by many researchers for a very long time.
On the other hand, the linear Diophantine problem of Frobenius is a very familiar problem that is also encountered in topics in everyday life. This paper becomes very meaningful in that it combines such familiar topics. Since there are a huge number of Diophantine equations, it is hoped that by applying the method in this paper, it will be possible to connect even more Diophantine equations and the linear Diophantine problem of Frobenius in the future.
Author Contributions
Writing—original draft preparation, T.K.; writing—review and editing, R.Y. 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.
Acknowledgments
The authors thank the referees for the careful reading of the manuscript.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Cohen, H. Number Theory. Volume I: Tools and Diophantine Equations; Graduate Texts in Mathematics; Springer: New York, NY, USA, 2007; Volume 239. [Google Scholar]
- Cohen, H. Number Theory. Volume II: Analytic and Modern Tools; Graduate Texts in Mathematics; Springer: New York, NY, USA, 2007; Volume 240. [Google Scholar]
- Dickson, L.E. History of the Theory of Numbers. Vol. II: Diophantine Analysis; Reprint of the 1920 original published by Carnegie Institution, Washington, DC; Dover Publications: Mineola, NY, USA, 2005. [Google Scholar]
- Elsner, C.; Komatsu, T.; Shiokawa, I. On convergents formed by Pythagorean Numbers, Diophantine Analysis and Related Fields 2006, Honor of Iekata Shiokawa. In Proceedings of the Conference, Keio University, Yokohama, Japan, 7–10 March 2006; Seminar on Mathematical Sciences, 35. Katsurada, M., Ed.; Department of Mathematics, Keio University: Yokohama, Japan, 2006; pp. 59–76. [Google Scholar]
- Elsner, C.; Komatsu, T.; Shiokawa, I. Approximation of values of hypergeometric functions by restricted rationals. J. Theor. Nombres Bordx. 2007, 19, 393–404. [Google Scholar] [CrossRef]
- Elsner, C.; Komatsu, T.; Shiokawa, I. On convergents formed from Diophantine equations. Glas. Mat. III. Ser. 2009, 44, 267–284. [Google Scholar] [CrossRef]
- Chaichana, T.; Komatsu, T.; Laohakosol, V. On Convergents of Certain Values of Hyperbolic Functions Formed from Diophantine Equations. Tokyo J. Math. 2013, 36, 239–251. [Google Scholar] [CrossRef]
- Sylvester, J.J. On subinvariants, i.e., semi-invariants to binary quantics of an unlimited order. Am. J. Math. 1882, 5, 119–136. [Google Scholar] [CrossRef]
- Sylvester, J.J. On the partition of numbers. Quart. J. Pure Appl. Math. 1857, 1, 141–152. [Google Scholar]
- Cayley, A. On a problem of double partitions. Philos. Mag. 1860, 20, 337–341. [Google Scholar] [CrossRef]
- Tripathi, A. The number of solutions to ax + by = n. Fibonacci Quart. 2000, 38, 290–293. [Google Scholar]
- Komatsu, T. On the number of solutions of the Diophantine equation of Frobenius–General case. Math. Commun. 2003, 8, 195–206. [Google Scholar]
- Komatsu, T.; Ying, H. p-numerical semigroups with p-symmetric properties. J. Algebra Appl. 2024, 2450216. [Google Scholar] [CrossRef]
- Sylvester, J.J. Mathematical questions with their solutions. Educ. Times 1884, 41, 21. [Google Scholar]
- Curtis, F. On formulas for the Frobenius number of a numerical semigroup. Math. Scand. 1990, 67, 190–192. [Google Scholar] [CrossRef]
- Rosales, J.C.; Garcia-Sanchez, P.A. Numerical semigroups with embedding dimension three. Arch. Math. 2004, 83, 488–496. [Google Scholar] [CrossRef]
- Fel, L.G. Frobenius problem for semigroups S(d1, d2, d3). Funct. Anal. Other Math. 2006, 1, 119–157. [Google Scholar] [CrossRef]
- Robles-Pérez, A.M.; Rosales, J.C. The Frobenius number for sequences of triangular and tetrahedral numbers. J. Number Theory 2018, 186, 473–492. [Google Scholar] [CrossRef]
- Rosales, J.C.; Branco, M.B.; Torrão, D. The Frobenius problem for Thabit numerical semigroups. J. Number Theory 2015, 155, 85–99. [Google Scholar] [CrossRef]
- Rosales, J.C.; Branco, M.B.; Torrão, D. The Frobenius problem for Mersenne numerical semigroups. Math. Z. 2017, 286, 741–749. [Google Scholar] [CrossRef]
- 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]
- 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.; 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]
- 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]
- 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]
- 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.; Ying, H. The p-numerical semigroup of the triple of arithmetic progressions. Symmetry 2023, 15, 1328. [Google Scholar] [CrossRef]
- Gil, B.K.; Han, J.-W.; Kim, T.H.; Koo, R.H.; Lee, B.W.; Lee, J.; Nam, K.S.; Park, H.W.; Park, P.-S. Frobenius numbers of Pythagorean triples. Int. J. Number Theory 2015, 11, 613–619. [Google Scholar] [CrossRef]
- Elizeche, E.F.; Tripathi, A. On numerical semigroups generated by primitive Pythagorean triplets. Integers 2020, 20, A75. [Google Scholar]
- Komatsu, T.; Sury, B. p-numerical semigroups of Pythagorean triples. Preprint 2023, arXiv:2307.08998. [Google Scholar]
- 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. 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]
- 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]
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/).