Magic Cube
A magic cube, is an early offspring from the magic square in which it now
has an n*n*n dimension (3rd) instead of an n*n dimension (2nd). A cube is
created through drawing two flat squares and drawing a line from one
squares’ corner to the other squares’ corner, for all four corners. In
magic cubes there are $$n^2$$ (with n being the order of the cube) number
of rows, columns and pillars (the height of the cube/z-axis). In addition
the number of space diagonals (e.g. diagonals going from the top right
(back plane) of a cube to the bottom left (front plane)) amounts to four
and the total number of normal diagonals, for example, in an order 3 magic
cube, has been increased from 2 to 18. In a magic cube generally the sum
of the rows, columns, pillars and diagonals all add up to the magic
constant for that cube with size n (n being 3,4,5...).