返回题库

AIME 2010 II · 第 11 题

AIME 2010 II — Problem 11

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Define a T-grid to be a 3×33\times3 matrix which satisfies the following two properties:

  1. Exactly five of the entries are 11's, and the remaining four entries are 00's.
  2. Among the eight rows, columns, and long diagonals (the long diagonals are {a13,a22,a31}\{a_{13},a_{22},a_{31}\} and {a11,a22,a33}\{a_{11},a_{22},a_{33}\}, no more than one of the eight has all three entries equal.

Find the number of distinct T-grids.

解析

Solution

Solution 1

The T-grid can be considered as a tic-tac-toe board: five 11's (or X's) and four 00's (or O's).

There are only (95)=126\dbinom{9}{5} = 126 ways to fill the board with five 11's and four 00's. Now we just need to subtract the number of bad grids. Bad grids are ones with more than one person winning, or where someone has won twice.

Let three-in-a-row/column/diagonal be a "win" and let player 00 be the one that fills in 00 and player 11 fills in 11.

Case 11: Each player wins once.

If player X takes a diagonal, player Y cannot win. If either takes a row, all the columns are blocked, and visa versa. Therefore, they either both take a row or they both take a column.

  1. Both take a row:

    • There are 33 ways for player 11 to pick a row,
    • 22 ways for player 00 to pick a row and,
    • 33 ways for player 00 to take a single box in the remaining row.

    Therefore, there are 323=183 \cdot 2 \cdot 3=18 cases.

  2. Both take a column: Using similar reasoning, there are 1818 cases.

Case 11: 3636 cases

Case 22: Player 11 wins twice. (Player 00 cannot win twice because he only has 4 moves.)

  1. Player 11 picks a row and a column.

    • There are 33 ways to pick the row
    • and 33 ways to pick the column. So there are 99 cases.
  2. Player 11 picks a row/column and a diagonal.

    • There are 66 ways to pick the row/column
    • and 22 to pick the diagonal,

    so there are 1212 cases

  3. 2 diagonals

    • It is clear that there is only 11 case. (Make a X).

Case 22 total: 2222

Thus, the answer is 1262236=68126-22-36=\boxed{68}

Solution 2

We can use generating functions to compute the case that no row or column is completely filled with 11's. Given a row, let aa, bb, cc be the events that the first, second, third respective squares are 11's. Then the generating function representing the possible events that exclude a row of 1,1,11,1,1 or 0,0,00,0,0 from occuring is

ab+bc+ca+a+b+c.ab+bc+ca+a+b+c. Therefore, the generating function representing the possible grids where no row is filled with 00's and 11's is

P(a,b,c)=((ab+bc+ca)+(a+b+c))3.P(a,b,c)=((ab+bc+ca)+(a+b+c))^3. We expand this by the Binomial Theorem to find

P(a,b,c)=(ab+bc+ca)3+3(ab+bc+ca)2(a+b+c)+3(ab+bc+ca)(a+b+c)2+(a+b+c)3.P(a,b,c)=(ab+bc+ca)^3+3(ab+bc+ca)^2(a+b+c)+3(ab+bc+ca)(a+b+c)^2+(a+b+c)^3. Recall that our grid has five 11's, hence we only want terms where the sum of the exponents is 55. This is given by

3(ab+bc+ca)2(a+b+c).3(ab+bc+ca)^2(a+b+c). When we expand this, we find

3(2abc(a+b+c)+a2b2+b2c2+c2a2)(a+b+c).3(2abc(a+b+c)+a^2b^2+b^2c^2+c^2a^2)(a+b+c). We also want to make sure that each of aa, bb, cc appears at least once (so there is no column filled with 00's) and the power of each of aa, bb, cc is not greater than or equal to 33 (so there is no column filled with 11's). The sum of the coefficients of the above polynomial is clearly 8181 (using a,b,c=1a,b,c=1), and the sum of the coefficients of the terms a3bca^3bc, ab3cab^3c, and abc3abc^3 is 6+6+6+3+3+3+3+3+3=366+6+6+3+3+3+3+3+3=36, hence the sum of the coefficients of the desired terms is 8136=4581-36=45. This counts the number of grids where no column or row is filled with 00's or 11's. However, we could potentially have both diagonals filled with 11's, but this is the only exception to our 4545 possibilities, hence the number of TT-grids with no row or column filled with the same digit is 4444.

On the other hand, if a row (column) is filled with 00's, then by the Pigeonhole Principle, another row (column) must be filled with 11's. Hence this is impossible, so all other possible TT-grids have a row (column) filled with 11's. If the top row is filled with 11's, then we have two 11's left to place. Clearly they cannot go in the same row, because then the other row is filled with 00's. They also cannot appear in the same column. This leaves 323\cdot 2 arrangements--3 choices for the location of the 11 in the second row, and 2 choices for the location of the 11 in the last row. However, two of these arrangements will fill a diagonal with 11's. Hence there are only 44 TT-grids where the top row is filled with 11's. The same argument applies if any other row or column is filled with 11's. Hence there are 46=244\cdot 6=24 such TT-grids.

Thus the answer is 44+24=6844+24=\boxed{68}.

Solution 3

We proceed by complimentary counting.

There are (95)=126\binom{9}{5} = 126 ways to fill the board with five 11's and four 00's. We subtract the cases where at least two of the eight rows, columns, and long diagonals have all three entries equal. For the sake of simplicity, let a line denote a row/column/diagonal.

Firstly, observe that there can be at most one line of 00's and at most two lines of 11's. Also, if there is one line of 00's, there can at most be one line of 11's. Therefore, there are only two "bad" cases we must consider:

Case 11: There is one line of 00's and one line of 11's.

In this case, note that both lines must be horizontal or vertical. If both are horizontal, there are 32=63 \cdot 2 = 6 ways to select the columns, and (31)=3\binom{3}{1} = 3 ways to place the remaining 00 in the remaining 33 grids, yielding a total of 63=186 \cdot 3 = 18 bad cases. Similarly, there are 1818 bad cases where both lines are vertical, so 18+18=3618 + 18 = 36 cases.

Case 22: There are two lines of 11's.

In this case, note that all five 11's are used, and the two lines can be horizontal/vertical, horizontal/diagonal, vertical/diagonal, or diagonal/diagonal, yielding 33=93 \cdot 3 = 9, 32=63 \cdot 2 = 6, 32=63 \cdot 2 = 6, and 11 case, respectively. 9+6+6+1=229 + 6 + 6 + 1 = 22 cases.

Hence, the answer is 1263622=068126 - 36 - 22 = \boxed{068}.

--OZ30