Generating integral triangles with two equal sides How can I generate all triangles which have integral sides and area, and exactly two of its three sides are equal?
For example, a triangle with sides ${5,5,6}$ satisfies these terms.

Heron's formula says the area of a triangle with sides $a, b, c$ is
$$Area = \sqrt{s(s-a)(s-b)(s-c)}$$
where $s$ is the semiperimeter, $s = \frac{a+b+c}{2}$.
Now, your assumption is two sides are equal, so $a, b, b$.  The area is now
$$Area = \sqrt{s(s-a)(s-b)^2} = (s-b)\sqrt{s(s-a)}$$
Now $s-b$ might not be an integer, if $s$ is not, but it will at worst be a fraction of the form $\frac{z}{2}$.  I will deal more with this later.
For now, we want $\sqrt{s(s-a)}$ to be an integer, so $s(s-a)$ must be a perfect square.  Now, $s = \frac{a + 2b}{2} = \frac{a}{2} + b$ so this simplifies to wanting
$$s(s-a) = (\frac{a}{2} + b)(\frac{a}{2} + b - a) = (b + \frac{a}{2})(b - \frac{a}{2}) = b^2 - \frac{a^2}{4}$$
a perfect square, so let's say it equals $c^2$.  Thus, we want all integer solutions to
$$c^2 + \left(\frac{a}{2}\right)^2 = b^2$$
If we happen to get a solution such that $(s-b)\sqrt{s(s-a)}$ is not an integer, then multiply all side lengths by 2 to get a similar triangle with $s$ and thus $s-b$ an integer.
Other than that, the problem is reduced to finding all solutions to this equation, which is a well known problem with a well known solution.
