Skip to main content

2022 AMC 12B Problem 17

Problem 17 of 25IntermediateCounting & Probability

How many 4×44 \times 4 arrays whose entries are 00s and 11s are there such that the row sums (the sum of the entries in each row) are 1,1, 2,2, 3,3, and 4,4, in some order, and the column sums (the sum of the entries in each column) are also 1,1, 2,2, 3,3, and 4,4, in some order? For example, the array [1110011011110100]\begin{bmatrix} 1 & 1 & 1 & 0 \\ 0 & 1 & 1 & 0 \\ 1 & 1 & 1 & 1 \\ 0 & 1 & 0 & 0 \end{bmatrix} satisfies the condition.

Answer choices

Show solution

Solution

The row with sum 44 is all 11s and the column with sum 44 is all 11s. There are 4!4! ways to assign the row sums 1,2,3,41, 2, 3, 4 to the four rows, and 44 choices for which column has sum 4.4. Delete that column. The remaining 4×34 \times 3 array has row sums 0,1,2,30, 1, 2, 3 and must have column sums 1,2,3.1, 2, 3. The all-zero and all-one rows are forced; the rows of reduced sum 11 and 22 can be placed in 66 ways to produce column sums 1,2,31, 2, 3 in some order. The total is 2446=576.24 \cdot 4 \cdot 6 = 576. Thus, the correct answer is D.

More practice

Concepts: multiplication principle · casework

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.