AMC 10 Step by Step

2019 AMC 10A Problem 20

P16-20~5 minPrint

The numbers 1,2,…,91,2,\dots,9 are randomly placed into the 99 squares of a 3×33 \times 3 grid. Each square gets one number, and each of the numbers is used once. What is the probability that the sum of the numbers in each row and each column is odd?

Log in to save your progress.
Show solution without answering

Key insight

Only odd or even matters. The five odd numbers must fill one whole row and one whole column, a cross shape. There are 9 crosses out of 126 odd-even patterns.

Solution

Whether a sum is odd depends only on how many odd numbers are in it. So forget the actual numbers and just mark each square O (odd) or E (even).

  1. How many patterns? There are five odd numbers (1,3,5,7,91, 3, 5, 7, 9) and four even ones. A pattern is a choice of which 55 squares get the odds. There are (95)=126\binom95 = 126 such choices, and every one is equally likely.
  2. What makes a row sum odd? A row of three numbers has an odd sum when it has 11 or 33 odd numbers (an odd count of odds).
  3. Rows. The three rows each have 11 or 33 odds, and together they hold all 55 odds. The only way: 3+1+13 + 1 + 1. So one row is all odd, and each other row has exactly one odd.
  4. Columns. The all-odd row already puts one odd in every column. The other two odds (one in each remaining row) must not make any column's count even. If they were in different columns, those two columns would have 22 odds each, an even sum. So they must be in the same column, which then has 33 odds.
  5. The shape. The good patterns are exactly a full row plus a full column of odds, like a plus sign or cross:
OOO
EOE
EOE

It uses 3+3−1=53 + 3 - 1 = 5 squares, as it should. Check: every row and column has 11 or 33 odds.
6. Count the crosses. Choose the row (33 ways) and the column (33 ways): 3⋅3=93 \cdot 3 = 9 crosses.
7. Probability. 9126=114\dfrac{9}{126} = \dfrac{1}{14}.

The answer is (B) 114\boxed{\textbf{(B)}\ \frac{1}{14}}.

Why this works

When a question is only about sums being odd or even, the only thing that matters is where the odd numbers go. Swapping the 9!9! full arrangements for the 126126 odd-even patterns, which are all equally likely, makes the count small enough to reason about. Then counting odds row by row forces the cross shape.

Alternative approach

Count full arrangements instead. There are 99 crosses; the 55 odd numbers can be placed on a cross in 5!=1205! = 120 ways and the 44 even numbers in the other squares in 4!=244! = 24 ways. Out of 9!=3628809! = 362880 arrangements, the probability is
9⋅120⋅24362880=25920362880=114.\frac{9 \cdot 120 \cdot 24}{362880} = \frac{25920}{362880} = \frac{1}{14}.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Only the parity of each entry matters. There are five odd numbers (1,3,5,7,91, 3, 5, 7, 9) and four even ones, and every choice of which 55 cells hold the odd numbers is equally likely: (95)=126\binom95 = 126 patterns.

A row sum is odd exactly when the row contains 11 or 33 odd numbers. The three row counts are odd and add to 55, so they must be 3,1,13, 1, 1 in some order: one row is entirely odd and each other row has exactly one odd entry. The all-odd row gives every column one odd number; the two remaining odd entries must keep each column count odd, so they cannot land in different columns (that would make two columns even). They therefore sit in the same column, making that column all odd.

So a good pattern is a full row plus a full column of odds, a "cross," and any cross uses exactly 3+3−1=53 + 3 - 1 = 5 cells. There are 3⋅3=93 \cdot 3 = 9 crosses, and each does work (the full row and column have sums of three odds; the other rows and columns have exactly one odd).

Probability: 9126=114\frac{9}{126} = \frac{1}{14}.

The answer is (B) 114\boxed{\textbf{(B)}\ \frac{1}{14}}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.