Special right triangle than 256: Isosceles right-angled triangles cannot have sides with integer values, because the ratio of the hypotenuse to either other side is , but cannot be expressed as a ratio of two integers. However, infinitely many "almost-isosceles" right triangles do exist. These are right-angled triangles with integral sides for which the lengths of the non-hypotenuse edges differ by one. Such almost-isosceles right-angled triangles can be obtained recursively, "a" is length of hypotenuse, "n" = 1, 2, 3, ... Equivalently, where {"x", "y"} are the solutions to the Pell equation , with the hypotenuse "y" being the odd terms of the
Fermat's right triangle theorem of a right triangle with square area. By dividing by any common factors, one can assume that this triangle is primitive and from the known form of all primitive Pythagorean triples, one can set formula_23, formula_24, and formula_25, by which the problem is transformed into finding relatively prime integers formula_26 and formula_27 (one of which is even) such that formula_28 is square. The four linear factors formula_26, formula_27, formula_31, and formula_32 are relatively prime and therefore must themselves be squares; let formula_33 and formula_34. Both formula_35 and formula_36 must be odd since exactly one of formula_26 or formula_27 is even