### 3.7.135. Magic square

A constraint that can be used for modelling some parts of the magic square problem. The magic square problem consists in filling an $n$ by $n$ square with ${n}^{2}$ distinct integers so that the sum of each row and column and of both main diagonals be the same.