A right square pyramid has the following dimensions:
- Length of the base square: $2a$
- Height (distance from the vertex to the base center): $h$
- Distance from the vertex to the middle point of the base edge: $b$
- Length of the pyramid's edge: $c$
The following relations hold: $ h^2+a^2=b^2$, $a^2+b^2=c^2$. Is there a way for the two triples $(h,a,b)$ , $(a,b,c)$ to be both pythagorean? If the answer is affirmative, can a parametrized family of such pairs of triples be found?
For this to work, $\space 1)\space$ the hypotenuse $\space (b)\space$ of one triangle must be a "leg" of the other and $\space 2)\space$ a leg $\space (a_1)\space$ of one triangle must equal the corresponding leg $\space (a_2)\space$ of the other. Here, we let $\space a_1=a_2.$ \begin{align*} h^2+a^2=b^2 &\space ,\space a^2+b^2=c^2\\ \implies b^2-h^2&=c^2-b^2 \qquad h, a<b<c \end{align*}
The problem is in condition $2)$ where $\space a_1=a_2,\space a_1,a_2\in\mathbb{N}.\space $ It would be easy if $\space a_1 \ne a_2\space $ and we let $\space a_1\space$ be the distance from the middle of the pyramid to the base and let $\space a_2\space$ be the [different] half-length of the base such as
\begin{align*} (h,a_1,b)=(3,4,5),\space (b,a_2,c)=(5,12,13)&\implies base=6a_1\space \space \\ (h,a_1,b)=(5,12,13),\space (b,a_2,c)=(13,84,85)&\implies base=14a_1\\ (h,a_1,b)=(7,24,25),\space (b,a_2,c)=(25,312,313)&\implies base=26a_1\\ (h,a_1,b)=(9,40,41),\space (b,a_2,c)=(41,840,841)&\implies base=42a_1\\ (h,a_1,b)=(15,8,17),\space (b,a_2,c)=(17,144,145)&\implies base=36a_1\\ (h,a_1,b)=(21,20,29),\space (b,a_2,c)=(29,420,421)&\implies base=42a_1\\ \end{align*}
There are an infinite number of these where, for $A^2+B^2=C^2,\quad $ $\space C_n=A_{n+1}\space $
If $a_1 = a_2\space$ can be non-integers, we do have tuples that are not Pythagorean triples (which require all sides to be integers) but which do fit the Pythagorean Theorem, e.g.
but, if the "rem" is removed from the program lines below, no integer values for $\space (a)\space $ are found in testing $h,a<b<c \le 100,000$.