Skip to content

The number of "magic" squares and hypercubes

Matthias Beck, Moshe Cohen, Jessica Cuomo, Paul Gribelyuk

math.COarXiv:math/0201013

Abstract

We define a magic square to be a square matrix whose entries are nonnegative integers and whose rows, columns, and main diagonals sum up to the same number. We prove structural results for the number of such squares as a function of the size of the matrix and the line sum. We give examples for small sizes and show similar results for symmetric, pandiagonal magic squares, and magic hypercubes.

Create a lesson