A magic square is an nxn square with integer entries such that the sum of entries in each row and column is same. One can reinforce the definition by requiring the sum on the longest two diagonals to be same. 


One simple 3×3 magic square is:

8  |  1  |  6

3  |  5  |  7

4  |  9  |  2

For obvious reasons, the above is a magic cube.

Can you construct a n x n x … x n magic hypercube?

Advertisements