{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
How many different $4\times 4$ arrays whose entries are all 0's, 1's and 2's have the property that the sum of the entries in each row is 2 and the sum of the entries in each column is 2?
A $2$ fills its whole row and column, so the $2$'s are in different rows and columns.
If there are $k$ of them, the remaining $(4-k)\times(4-k)$ subarray is a $0$–$1$ array with all row and column sums $2$: there are $90,6,1,0,1$ such arrays for sizes $4,3,2,1,0$.
The $k$ twos can be placed in $\binom4k^2k!$ ways.