The semi-magic squares of order two
ProvedMagicSquares.semi_magic_count_twocombinatoricsenumerative-combinatoricsmagic-squares
The order-two semi-magic count. Writing for the number of arrays of nonnegative integers whose rows and columns all sum to , the theorem states
Proof. A semi-magic square of line sum reads , so it is determined by its top-left corner , and may be any of . This is the first value in the structural statement that is a polynomial of degree — for that is degree one, matching .
Preamble
import Mathlib import Definitions.Def_MagicSquares import Definitions.Def_MagicSquaresPandiagonal open MagicSquares
Formal statement
namespace MagicSquares theorem semi_magic_count_two (t : ℕ) : semiMagicCount 2 t = t + 1 := 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).
Human review
Confirmed by the mission captain (proposal self-audit).