Rational Triangles
A rational triangle can be defined as one having all sides with rational length.
Rational Right Triangles - Early Solutions
In Śulba solution for the equation -------(1) is available. Baudhāyana (c. 800 B.C.), Āpastamba and Kātyāyana (c. 500 B.C.) gave a method for the transformation of a rectangle into a square, which is the equivalent of the algebraical identity.
where m, n are any two arbitrary numbers. Thus we get
substituting p2,q2 for m, n respectively in order to eliminate the irrational quantities, we get
which gives the rational solution of (1).
Kātyāyana gives a very simple method for finding a square equal to the sum of a number of other squares of the same size which gives us with another solution of the rational right triangle.
Kātyāyana says: "As many squares (of equal size) as you wish to combine into one, the transverse line will be (equal to) one less than that; twice a side will be (equal to) one more than that; (thus) form (an isosceles) triangle. Its arrow (i.e., altitude) will do that."