Magic triangle (mathematics)


A magic triangle is an arrangement of the integers from 1 to on the sides of a triangle with the same number of integers on each side, called the order of the triangle, so that the sum of integers on each side is a constant, the magic sum of the triangle. Unlike magic squares, there are different magic sums for magic triangles of the same order. Any magic triangle has a complementary triangle obtained by replacing each integer in the triangle with. This means that only half of the triangles for any order need to be checked for the magic property.

Examples

Order-3 magic triangles are the simplest.