[Paper Review] On the generation of Heronian triangles
This paper presents efficient algorithms for generating all integer Heronian triangles (triangles with integer sides and rational area) up to a given diameter $ n $, using a refined parameterization that eliminates denominators and enables fast computation. The authors achieve $ \mathcal{O}(n^{2+\varepsilon}) $ time complexity and enumerate all such triangles for $ n \leq 600000 $, enabling new insights into related geometric problems including perfect pyramids and Heronian triangles with equal area and perimeter.
We describe several algorithms for the generation of integer Heronian triangles with diameter at most $n$. Two of them have running time $\mathcal{O}\left(n^{2+\varepsilon} ight)$. We enumerate all integer Heronian triangles for $n\le 600000$ and apply the complete list on some related problems.
Motivation & Objective
- To develop fast algorithms for generating all integer Heronian triangles with diameter at most $ n $, where diameter is the maximum side length.
- To overcome computational inefficiencies in Brahmagupta’s original parametric formulation by eliminating denominators through a new parameterization.
- To enumerate all such triangles up to $ n = 600000 $, enabling empirical investigation of open problems in Diophantine geometry.
- To apply the complete list to related problems, including the existence of perfect pyramids and sets of Heronian triangles with equal area and perimeter.
Proposed method
- Introduce a new parameterization of Heronian triangles using pairwise coprime integers $ w_1, w_2, w_3, w_4 $, and squarefree parameters $ s, u $, to eliminate denominators in Brahmagupta’s formula.
- Prove that $ w_4 \leq 8n $, bounding the search space for the denominator factor and enabling efficient enumeration.
- Use the identity $ w_4 \mid 2(i+h) $ and $ w_4 \mid 8c $ to constrain possible values of $ w_4 $, reducing the search space.
- Implement Algorithm 3.1 to iterate over $ a $, $ w_4 $, and factorizations of $ a w_4 $, then solve $ x^2 + y^2 = z $ for each $ z $.
- Use nested loops over integer factorizations to recover parameters $ p, \alpha, u, x, y, \beta, w_1, v, \gamma, s, t $, and compute side lengths $ a, b, c $.
- Apply a second algorithm based on the number of divisors of $ ab $, using $ \mathcal{L}_{\varphi(b_1,b_2)}(j) $ to efficiently generate candidate triangles.
Experimental results
Research questions
- RQ1What is the most efficient way to generate all integer Heronian triangles with diameter at most $ n $, and can this be done in $ \mathcal{O}(n^{2+\varepsilon}) $ time?
- RQ2Do there exist perfect pyramids (tetrahedra with integer edges, rational face areas, and rational volume) with equal surface area or equal volume?
- RQ3Are there sets of $ N \geq 11 $ pairwise non-similar Heronian triangles with equal area and equal perimeter?
- RQ4Is there a Heronian triangle with three rational medians, and if so, what is its minimal diameter?
Key findings
- The authors successfully enumerate all integer Heronian triangles with diameter at most $ n = 600000 $, producing a complete list for further analysis.
- Two algorithms are developed with time complexity $ \mathcal{O}(n^{2+\varepsilon}) $, significantly improving upon brute-force enumeration.
- No examples were found for the open problem of a Heronian triangle with three rational medians, suggesting such triangles may have diameter greater than 600000.
- The conjecture that the only rational tetrahedron with edges in arithmetic progression and one rational face area is unique up to scaling is verified up to diameter 600000.
- Six distinct primitive perfect pyramids with equal surface area were found, but no examples with equal surface and volume were discovered up to diameter 600000.
- The smallest 11-tuple of Heronian triangles with equal area and perimeter has a perimeter exceeding 1,200,000, confirming the difficulty of such constructions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.