Magic cube information

In mathematics, a magic cube is equivalent to a 3-dimensional magic square is a series of integers anxnxn arranged such that the sum of the numbers in each row, each column, each column and the four diagonal space is equal to a single number, the magic constant is called the cube, denoted m3 (n). It can be shown that if a magic cube consists of the numbers 1, 2, ..., N3, then the magic constant (OEIS A027441 sequence)











If, moreover, the numbers of each cross section diagonal also adds to the magic figure of the cube, the cube is called a perfect magic cube, otherwise called semiperfect magic cube. The number n is called the order of the magic cube. If the figures are of a space diagonal magic cube magic number as broken as the cube, the cube is called a cube pandiagonal.