I want to “rank” [primitive] Pythagorean triples by some metric that could reasonably be referred to as “size”.
Naturally, there are a huge number of options: size of hypotenuse, size of smallest leg, perimeter, area, radius of incircle, etc. etc. etc. (Note: One thing I don’t want to use is the row index from the triple’s position in one of the infinite ternary trees.)
Is there a widely-accepted “sizing” of triples? What are the pros and cons of various metrics?
EDIT (inspired by Gerry Myerson’s comment): The “Holy Grail” in this investigation would be a strictly “linear” ordering of the Pythagorean triples. Does (or can) such a thing exist?
EDIT #2: Let $(p,q)$ be the Euclid generating pair for a primitive Pythagorean triple. Applying the Cantor pairing function with $p-q$ and $q$ gives a unique integer value for each triple, which generally correlates with “size”; and I have yet to find anything more compact (e.g., in a set of $38$ of the “smallest” triples, the area-divided-by-6 range is $1–1820$, while the Cantor function for the same set has a range of $4–106$). What’s clearly missing is any obvious way to “descend” through this ordered set.
EDIT #3: The inradius is the most obvious “size” ranking, since the only gaps in the sequence are the powers of $2$. The issue here is the fact that inradius isn’t unique.
Given that side-A is odd, side-B is even, and side-C is odd, they take the form of $A = (2x+1), B=4y, C=4z+1), x,y,z\in\mathbb{N}.\quad$ Finding them is a relatively easy but pick any of the three and the solution seems incomplete without the other two. Also, side-A is larger than side-B for half of all triples. (I can demonstrate this if you want.)
Here are some other ratings and methods of finding them. Beginning with Euclid's formula shown here as $ \qquad A=m^2-k^2\qquad B=2mk \qquad C=m^2+k^2.\qquad$ Note: any m-value that yields an integer k-value yields a valid Pythagorean triple.
$\bullet\space$ Perimeter in sizes shown here
\begin{equation} P=2m^2+2mk\implies k=\frac{P-2m^2}{2m}\\ \text{for} \quad \biggl\lfloor\frac{\sqrt{4P+1}+1}{4}\biggr\rfloor\le m \le \biggl\lfloor\frac{\sqrt{2P+1}-1}{2}\biggr\rfloor \end{equation}
The lower limit ensures that $m>k$ and the upper limit insures that $k\ge1$. $$P=286\implies \biggl\lfloor\frac{\sqrt{1144+1}+1}{4}\biggr\rfloor =8\le m \le \biggl\lfloor\frac{\sqrt{572+1}-1}{2}\biggr\rfloor=11\\ \land\quad m\in\{11\}\implies k\in\{2\}$$ $$F(11,2)=(117,44,125)\qquad P=(117+44+125)=286$$
$\bullet\space$ Area:perimeter ratio$\space$ (All are multiples of $\frac{1}{2}$ and here is a way to find them)
$$R=\frac{area}{perimeter}=\frac{AB}{2P}=\frac{2mk(m^2-k^2)}{2(2m^2+2mk)}=\frac{mk-k^2}{2} $$ \begin{equation} R=\frac{mk-k^2}{2}\quad\implies k=\frac{m\pm\sqrt{m^2-8R}}{2}\\\text{for}\quad \big\lceil\sqrt{8R}\big\rceil\le m \le (2R+1) \end{equation} The lower limit insures that $k\in \mathbb{N}$ and the upper limit ensures that $m> k$.
$$R=1\implies \lceil\sqrt{8}\rceil=3\le m \le (2+1)=3 \\\land\qquad m\in\{ 3\}\implies k\in\{ 2,1\}$$ $$F(3,2)=(5,12,13)\space\land\space \frac{30}{30}=1\qquad F(3,1)=(8,6,10)\space\land\space \frac{24}{24}=1$$
$\bullet\space$ Area (Sizes are multiples of $6$ listed in this series). Up to $3$ distinct triples can have the same area.
\begin{equation} k_0=\sqrt{\frac{4m^2}{3}}\cos\biggl({\biggl(\frac{1}{3}\biggr)\cos^{-1}{\biggl(-\frac{3\sqrt{3}D}{2m^4}\biggr)}\biggr)} \\ k_1=\sqrt{\frac{4m^2}{3}}\cos\biggl({\biggl(\frac{1}{3}\biggr)\cos^{-1}{\biggl(\frac{3\sqrt{3}D}{2m^4}\biggr)}\biggr)} \\ k_2=k_1-k_0 \\\qquad\text{ for }\quad\bigg\lfloor\sqrt[\LARGE{4}]{\frac{8D}{3}}\bigg\rfloor \le m \le\big\lceil\sqrt[\LARGE{3}]{D}\big\rceil \end{equation}
$$D=840\implies \lfloor\sqrt[\LARGE{4}]{2(840)}\rfloor=7 \le m \le \lceil\sqrt[\LARGE{3}]{840}\rceil=10\quad\text {and we find}$$ $$m\in \{7\}\implies k\in\{5,8,3\}\qquad\land\qquad m\in\{8\}\implies k\in\{7\}$$ $$\text{We find }\qquad S_{mk}=\{(7,5), (7,8), (7,3), (8,7)\}$$ $$F(7,5)=(24,70,74)\quad F(7,8)=(-15,112,113)\\ F(7,3)=(40,42,58)\quad F(8,7)=(15,112,113)$$
$\bullet\space$ A,B,C product sizes seen here ( All are multiples of $60$. Finding them requires a more convoluted solution available on request.)
$\bullet\space B-A=1$ side difference. An interesting solution to $B-A=1$ was provided by Wacław Sierpiński, $\textit{Pythagorean triangles}$, THE SCRPTA MATHEMATICA STUDIES Number NINE, , GRADUATE SCHOOL OF SCIENCE YESHIVA UNIVERSITY, NEW YORK, 1962, pp. 17-22 with a formula that generates these triples $(T_n)$ sequentially with a starting "seed" of $T_0=(0,0,1)$. \begin{equation}T_{n+1}=3A_n+2C_n+1\qquad B_{n+1}=3A_n+2C_n+2 \qquad C_{n+1}=4A_n+3C_n+2\end{equation}
$$T_1=(3,4,5)\qquad T_2=(20,21,29)\qquad T_3=(119,120,169)\qquad \textbf{ ...}$$
In casual testing, it appears that only the sums and products of A,B,C have unique solutions (only one triple per value) and Area/Perimeter ratio is a pleasing set $\big(R=\big\{\frac{1}{2},\frac{2}{2},\frac{3}{2},\cdots\big\}\big)$ so perhaps one of these are the most "natural" series to pursue.
$\textbf{Update:}$ Gerry Myerson has shown below that perimeter does not map to a unique triple.