A227436 Triangle T(n, k) of the number of n X n binary matrices with k = 0..n^2 1's and no more than three 1's in the corners of any square sub-block.
1, 1, 1, 4, 6, 4, 0, 1, 9, 36, 84, 121, 101, 38, 4, 0, 0, 1, 16, 120, 560, 1806, 4200, 7096, 8532, 6929, 3444, 876, 84, 2, 0, 0, 0, 0, 1, 25, 300, 2300, 12620, 52500, 170830, 441554, 910568, 1490996, 1912700, 1879432, 1368707
Offset: 1
Examples
T(n, k) written as a triangle 1,1; 1,4,6,4,0; 1,9,36,84,121,101,38,4,0,0; 1,16,120,560,1806,4200,7096,8532,6929,3444,876,84,2,0,0,0,0; ... For n = 4 there are 2 matrices with exactly k = 12 1's so that no more than three 1's are in the corners of any square sub-block. [0 1 1 1] [1 1 1 0] [1 1 0 1] [1 0 1 1] [1 0 1 1] [1 1 0 1] [1 1 1 0] [0 1 1 1]
Links
- Heinrich Ludwig, Table of n, a(n) for n = 1..147
- Heinrich Ludwig, CSV file for spreadsheets
Comments