Magic Cube

A magic cube is an n×n×n version of a magic square in which the n^2 rows, n^2 columns, n^2 pillars, and four space diagonals each sum to a single number M_3(n) known as the cube's magic constant. Magic cubes are most commonly assumed to be "normal," i.e., to have elements that are the consecutive integers 1, 2, ..., n^3. However, this requirement is dropped (as it must be) in the consideration of so-called multimagic cubes.

If it exists, a normal magic cube has magic constant

 M(n)=1/2n(n^3+1).

For n=1, 2, ..., the magic constants are given by 1, 9, 42, 130, 315, 651, ... (OEIS A027441).

If only rows, columns, pillars, and space diagonals sum to M_3(n), a magic cube is called a semiperfect magic cube, or sometimes an Andrews cube (Gardner 1988, p. 219). If, in addition, the diagonals of each n×n orthogonal slice sum to M_3(n), then the magic cube is called a perfect magic cube. If a perfect or semiperfect magic cube is magic not only along the main space diagonals, but also on the broken space diagonals, it is known as a pandiagonal magic cube.

There is a trivial perfect magic cube of order one, but no perfect cubes exist for orders 2-4. While normal perfect magic cubes of orders 7 and 9 have been known since the late 1800s, it was long not known if perfect magic cubes of orders 5 or 6 could exist. A 5×5×5 perfect magic cube was subsequently discovered by C. Boyer and W. Trump on Nov. 14 2003.

A perfect or semiperfect magic cube that yields another magic cube of the same type when its elements are squared is known as a bimagic cube. Similarly, a magic cube that remains magic when its elements are both squared and cubed is known as a trimagic cube.

The smallest known multiplication magic cube is 4×4×4 with largest term 416 and magic product 8648640, or 13!/6! (Boyer 2006).

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.