Magic triangle (mathematics)

A magic triangle is a magic arrangement of the integers from 1 to $n$ to triangular figure.

Perimeter magic triangle
A magic triangle or perimeter magic triangle is an arrangement of the integers from 1 to $n$ 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 $x$ in the triangle with $1 + n − x$.

Examples
Order-3 magic triangles are the simplest (except for trivial magic triangles of order 1).

Other magic triangles
Other magic triangles use Triangular number or square number of vertices to form magic figure. Matthew Wright and his students in St. Olaf College developed magic triangles with square numbers. In their magic triangles, the sum of the k-th row and the (n-k+1)-th row is same for all k. Its one modification uses triangular numbers instead of square numbers. Another magic tringle form is magic triangles with triangluar numbers with different summation. In this magic triangles, the sum of the k-th row and the (n-k)-th row is same for all k.

Magic Triangles have also been discovered, such that when its elements are squared, we obtain another magic triangle.