The MAGICSQUARE.xls Model

The Magic Square Problem

View the model
Download the model

Given an NxN grid, place the numbers from 1 to N^2 on it so that

Each row has a total sum of [N^2*(N^2+1)/2N],

Each column has a total sum of [N^2*(N^2+1)/2N],

Each diagonal has a total sum of [N^2*(N^2+1)/2N],

Each cell has a uniqe value.

Based on a version by Eren Ocakverdi

Keywords:

Integer Programming | Magic Square | Puzzle |