Eisenstein triple

Similar to a Pythagorean triple, an Eisenstein triple (named after Gotthold Eisenstein) is a set of integers which are the lengths of the sides of a triangle where one of the angles is 60 or 120 degrees. The relation of such triangles to the Eisenstein integers is analogous to the relation of Pythagorean triples to the Gaussian integers.

Triangles with an angle of 60°
Triangles with an angle of 60° are a special case of the Law of Cosines:


 * $$c^2 = a^2 - ab + b^2.$$

When the lengths of the sides are integers, the values form a set known as an Eisenstein triple.

Examples of Eisenstein triples include:

Triangles with an angle of 120°
A similar special case of the Law of Cosines relates the sides of a triangle with an angle of 120 degrees:


 * $$c^2 = a^2 + ab + b^2.$$

Examples of such triangles include: