返回题库

AIME 2013 II · 第 9 题

AIME 2013 II — Problem 9

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem 9

A 7×17\times 1 board is completely covered by m×1m\times 1 tiles without overlap; each tile may cover any number of consecutive squares, and each tile lies completely on the board. Each tile is either red, blue, or green. Let NN be the number of tilings of the 7×17\times 1 board in which all three colors are used at least once. For example, a 1×11\times 1 red tile followed by a 2×12\times 1 green tile, a 1×11\times 1 green tile, a 2×12\times 1 blue tile, and a 1×11\times 1 green tile is a valid tiling. Note that if the 2×12\times 1 blue tile is replaced by two 1×11\times 1 blue tiles, this results in a different tiling. Find the remainder when NN is divided by 10001000.

解析

Solution 1

Firstly, we consider how many different ways possible to divide the 7×17\times 1 board. We ignore the cases of 1 or 2 pieces since we need at least one tile of each color.

  • Three pieces: 5+1+15+1+1, 4+2+14+2+1, 4+1+24+1+2, etc, (62)=15\dbinom{6}{2}=15 ways in total (just apply stars and bars here)
  • Four pieces: (63)=20\dbinom{6}{3}=20
  • Five pieces: (64)=15\dbinom{6}{4}=15
  • Six pieces: (65)=6\dbinom{6}{5}=6
  • Seven pieces: (66)=1\dbinom{6}{6}=1

Secondly, we use Principle of Inclusion-Exclusion to consider how many ways to color them:

  • Three pieces: 333×23+3=63^3-3\times 2^3+3=6
  • Four pieces: 343×24+3=363^4-3\times 2^4+3=36
  • Five pieces: 353×25+3=1503^5-3\times 2^5+3=150
  • Six pieces: 363×26+3=5403^6-3\times 2^6+3=540
  • Seven pieces: 373×27+3=18063^7-3\times 2^7+3=1806

Finally, we combine them together: 15×6+20×36+15×150+6×540+1×1806=810615\times 6+20\times 36+15\times 150+6\times 540+1\times 1806= 8106.

So the answer is 106\boxed{106}.

Explanation

In the 717*1 tiling, when counting the ways to split this into kk pieces what you do is set the leftmost of the first tile and the rightmost of the last tile as borders.

Then if we select say 11 vertical line from the remaining 66 vertical lines, we would have split into 22 pieces. Similarly if we select kk vertical lines from them 66, we would have k+1k+1 pieces.

Furthermore, to count the number of countings of kk pieces you apply the Principle of Inclusion and Exclusion.

Done so by noticing that we have 3k3^k ways to color without any restricitons. Then, let's count the number of ways that we use atleast only 22 colors and subtract off.

If we use atleast only 22 colors, we have 33 ways to pick these colors, and then 32k3*2^k ways to color the squares in. However, this overcounts the case where we used only one color, two times each.

Thus number of ways we use atleast only 22 colors is 32k33*2^k-3.

Subtracting from total arrangements, we obtain 3k32k+33^k-3*2^k+3.

~Bigbrain_2009

Solution 1.1 (Faster/Streamlined 1)

This solution is basically solution 1 with more things done at once. The game plan:

i=07(\sum_{i=0}^{7} (the amount of ways to divide the board into ii pieces)() \cdot (the amount of ways to color the respective divisions)

The amount of ways to divide the board is determined using stars and bars. The colorings are found using PIE giving 3i32i+33^i-3\cdot2^i+3. Plus, we don't have to worry about the cases where i=1i=1 or i=2i=2 since they both give no solutions. So our equation becomes:

i=37((6i))(3i32i+3)\sum_{i=3}^{7} \left(\dbinom{6}{i}\right)\cdot\left(3^i-3\cdot2^i+3\right)

Writing it all out and keeping the numbers small with mod 1000, we will eventually arrive at the answer of 106\boxed{106}.

~Rowechen Zhong

-NOTE: you can evaluate the above sum by binomial theorem: (3+1)6(3+1)^6 ,etc

Solution 2 (Recursive)

3 colors is a lot. How many ways can we tile an n×1n \times 1 board with one color? It's going to be 2n12^{n-1} because if you draw out the nn spaces, you can decide whether each of the borders between the tiles are either there or not there. There are n1n-1 borders so there are 2n12^{n-1} tilings. Define a one-tiling of an mx1 as f1(m)f_1(m)

Now let's look at two colors. Let's see if we can get a two-tiling of an (n+1)×1(n+1) \times 1 based off a n×1n \times 1. There are 2 cases we should consider:

  1. The n×1n \times 1 was a one-coloring and the block we are going to add consists of the second color. The number of ways we can do this is 2f1(n)2f_1(n)

  2. The n×1n \times 1 was a two-color tiling so now we've got 3 cases to form the (n+1)×1(n+1) \times 1: We can either add a block of the first color, the second color, or we can adjoin a block to the last block in the n×1n \times 1.

This gives us f2(n+1)=2f1(n)+3f2(n)f_2(n+1)=2f_1(n)+3f_2(n)

Time to tackle the 3-color tiling. Again, we split into 2 cases:

  1. The n×1n \times 1 was a two-color tiling, and the block we are adding is of the 3rd color. This gives f2(n)f_2(n) ways but we have to multiply by 3C2=33C2 = 3 because we have to pick 2 different colors for the two-color tiling.

  2. The n×1n \times 1 was a 3-color tiling, and we have to consider what we can do with the block that we are adding. It can be any of the 3 colors, or we can adjoin it to whatever was the last block in the n×1n \times 1. This gives 4f3(n)4f_3(n)

So in total we have f3(n+1)=3f2(n)+4f3(n)f_3(n+1)=3f_2(n)+4f_3(n).

Finally, we just sorta bash through the computation to get f3(7)=8106f_3(7)=8\boxed{106}

Solution 3

Let nn be the length of the board and xx be the number of colors. We will find the number of ways to tile the n×1n \times 1 board with no color restrictions (some colors may be unused) and then use PIE.

By stars and bars, the number of ways to divide the board into kk pieces is (n1k1){n-1 \choose k-1}. There are xkx^k ways to color each of these divisions. Therefore, the total number of ways to divide and color the board is

χ(n,x):=k=1n(n1k1)xk=xk=0n1(n1k)xk=x(x+1)n1.\begin{aligned} \chi(n, x) &:= \sum_{k=1}^n {n-1 \choose k-1} x^k \\ &= x\sum_{k=0}^{n-1} {n-1 \choose k} x^k \\ &= x(x+1)^{n-1}. \end{aligned} In the given problem, we have n=7n=7. By PIE, we have

(33)χ(7,3)(32)χ(7,2)+(31)χ(7,1)=3463(236)+3(126)=8106106.\begin{aligned} &\quad {3 \choose 3} \chi(7, 3) - {3 \choose 2} \, \chi(7, 2) + {3 \choose 1} \, \chi(7, 1) \\ &= 3 \cdot 4^6 - 3(2 \cdot 3^6) + 3(1 \cdot 2^6) \\ &= 8106 \rightarrow \boxed{106}. \end{aligned} The above formula for χ(n,x)\chi(n, x) can also be derived directly as follows:

  • The first square can be colored in one of xx ways.
  • Proceeding left to right, at each of the remaining n1n-1 squares, we have x+1x+1 options:
    • xx ways to begin a new tile, selecting an arbitrary color. Note that this includes the case where we begin a new tile of the same color.
    • 11 way to expand the current tile by attaching a square of the current color.

This results in x(x+1)n1x(x+1)^{n-1} overall ways to divide and color the board (without the color use restriction).