Closed-Form Enumeration of Binary Matrices with Bounded Row and Column Sums and Proof of Both OEIS A401159 Conjectures
Let A(n, m, k) denote the number of n x m binary matrices with at most k ones in every row and every column, and let s(n, k) = sum_{i=0}^k C(n, i). By identifying each matrix with its tuple of column supports and applying inclusion-exclusion on the Boolean lattice, we prove that A(n, m, k) = s(n, k)^m for all 0 <= m <= k and A(n, k+1, k) = sum_{j=0}^k (-1)^j C(n, j) s(n-j, k-j)^(k+1) for all n, k >= 0. Specializing to k = 2 settles both conjectures stated by R. J. Mathar in OEIS A401159: T(n, 2) = A086601(n) = A000124(n)^2 and T(n, 3) = 1 + n + (11/4)n^2 + (13/8)n^3 + (1/8)n^4 + (3/8)n^5 + (1/8)n^6 for every integer n >= 0. The general theorem and both corollaries are formally verified in Lean 4.
Authors
- Salem Levinstein
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24559958
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint