The symmetric magic squares of order two
ProvedMagicSquares.symmetric_magic_count_twocombinatoricsenumerative-combinatoricsmagic-squares
The order-two symmetric count. Writing for the number of arrays of nonnegative integers which are magic of line sum and equal to their own transpose, the theorem states
Proof. For order two the transpose condition is , which already holds for every semi-magic square: the first row and first column both read and . So symmetry adds no condition at order two, , and the order-two magic count applies. Symmetry only starts to bite at order three, where it cuts the two-parameter MacMahon family down to a one-parameter one.
Preamble
import Mathlib import Definitions.Def_MagicSquares import Definitions.Def_MagicSquaresPandiagonal open MagicSquares
Formal statement
namespace MagicSquares theorem symmetric_magic_count_two (t : ℕ) : symmetricMagicCount 2 t = if 2 ∣ t then 1 else 0 := by sorry end MagicSquares
Source
M. Beck, M. Cohen, J. Cuomo and P. Gribelyuk, The number of "magic" squares, cubes and hypercubes, Amer. Math. Monthly 110 (2003), 707--717 (arXiv:math/0201013).