# Magic cube

In mathematics, a magic cube is the 3-dimensional equivalent of a magic square, that is, a number of integers arranged in a n x n x n pattern such that the sum of the numbers on each row, each column, each pillar and the four main space diagonals is equal to a single number, the so-called magic constant of the cube, denoted M3(n). It can be shown that if a magic cube consists of the numbers 1, 2, ..., n3, then it has magic constant (sequence A027441 in OEIS)

An example of a 3 × 3 × 3 magic cube. In this example, no slice is a magic square. In this case, the cube is classed as a simple magic cube.
$M_3(n) = \frac{n(n^3+1)}{2}.$

If, in addition, the numbers on every cross section diagonal also sum up to the cube's magic number, the cube is called a perfect magic cube; otherwise, it is called a semiperfect magic cube. The number n is called the order of the magic cube. If the sums of numbers on a magic cube's broken space diagonals also equal the cube's magic number, the cube is called a pandiagonal cube.

## Alternate definition

In recent years, an alternate definition for the perfect magic cube has gradually come into use. It is based on the fact that a pandiagonal magic square has traditionally been called perfect, because all possible lines sum correctly. This is not the case with the above definition for the cube.

## Multimagic cubes

As in the case of magic squares, a bimagic cube has the additional property of remaining a magic cube when all of the entries are squared, a trimagic cube remains a magic cube under both the operations of squaring the entries and of cubing the entries. (Only two of these are known, as of 2005.) A tetramagic cube remains a magic cube when the entries are squared, cubed, or raised to the fourth power.

## Magic cubes based on Dürer's and Gaudi Magic squares

A magic cube can be built with the constraint of a given magic square appearing on one of its faces Magic cube with the magic square of Dürer, and Magic cube with the magic square of Gaudi

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• Magic cube — Rubik s Cube Rubik’s Cube avec une face en cours de rotation …   Wikipédia en Français

• magic cube — noun see magic circle 2 * * * magic square, magic circle, magic cube, magic cylinder or magic sphere noun A figure filled with rows of numbers so arranged that the sums of all the rows will be the same, perpendicularly, horizontally or diagonally …   Useful english dictionary

• Magic Cube — noun Rubiks Cube …   Wiktionary

• magic cube — noun a) Common: By analogy with magic square, an n by n by n arrangement of n sup3; numbers such that the numbers in each row, in all columns (horizontal and vertical) and in all main diagonals (of which there are 6,n+4) each have the same sum.… …   Wiktionary

• Magic Cube (video game) — Magic Cube is an unlicensed Nintendo Entertainment System game released by Sachen.Gameplay Magic Cube s gameplay makes it very similar to Tetris or, more specifically, Columns . The player must align cubes with random pictures on every of the… …   Wikipedia

• Magic cube classes — Every magic cube may be assigned to one of six magic cube classes, based on the cube characteristics. This new system is more precise in defining magic cubes. But possibly of more importance, it is consistent for all orders and all dimensions of… …   Wikipedia

• Perfect magic cube — In mathematics, a perfect magic cube is a magic cube in which not only the columns, rows, pillars and main space diagonals, but also the cross section diagonals sum up to the cube s magic constant. Perfect magic cubes of order one are trivial;… …   Wikipedia

• Pantriagonal magic cube — A pantriagonal magic cube is a magic cube where all 4 m 2 pantriagonals sum correctly. There are 4 one segment, 12( m − 1) two segment, and 4( m − 2)( m − 1) three segment pantriagonals. This class of magic cubes may contain some simple magic… …   Wikipedia

• Diagonal magic cube — A Diagonal Magic Cube is an improvement over the simple magic cube. It is the second of six magic cube classes when ranked by the number of lines summing correctly. In a diagonal magic cube of order m, all 6m of the diagonals in the m planes… …   Wikipedia

• Pandiagonal magic cube — In a Pandiagonal magic cube, all 3m planar arrays must be panmagic squares. The 6 oblique squares are always magic. Several of them may be panmagic squares.Gardner called Langman’s pandiagonal magic cube a ‘perfect’ cube, presumably not realizing …   Wikipedia