返回题库

AIME 2016 II · 第 12 题

AIME 2016 II — Problem 12

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

The figure below shows a ring made of six small sections which you are to paint on a wall. You have four paint colors available and you will paint each of the six sections a solid color. Find the number of ways you can choose to paint the sections if no two adjacent sections can be painted with the same color.

AIME diagram

Video Solution by grogg007 (Under 5 Mins ⏩)

https://www.youtube.com/watch?v=lTP-jNtpwoI

解析

Solution 1

Choose a section to start coloring. Assume, WLOG, that this section is color 11. We proceed coloring clockwise around the ring. Let f(n,C)f(n,C) be the number of ways to color the first nn sections (proceeding clockwise) such that the last section has color CC. In general (except for when we complete the coloring), we see that

f(n,Ci)=jif(n1,Cj),f(n,C_i)=\sum_{j\ne i} f(n-1,C_j), i.e., f(n,Ci)f(n,C_i) is equal to the number of colorings of n1n-1 sections that end in any color other than CiC_i. Using this, we can compute the values of f(n,C)f(n,C) in the following table.

\multicolumn1c\multicolumn4cAOPSPROTECTED8TOKENAOPSPROTECTED9TOKEN12341100020111332224677752120202060616161\begin{array}{c|c|c|c|c } \multicolumn{1}{c}{}&\multicolumn{4}{c}{AOPSPROTECTED8TOKEN}\\ AOPSPROTECTED9TOKEN&1 & 2 & 3& 4 \\ \hline 1& 1 & 0 & 0 & 0\\ 2 & 0 & 1 & 1 & 1 \\ 3& 3 & 2 & 2 & 2 \\ 4 & 6 & 7 & 7 & 7 \\ 5 & 21 & 20 & 20 & 20\\ 6& 0& 61 & 61 & 61\\ \end{array}

Note that f(6,1)=0f(6, 1)=0 because then 22 adjacent sections are both color 11. We multiply this by 44 to account for the fact that the initial section can be any color. Thus the desired answer is (61+61+61)4=732(61+61+61) \cdot 4 = \boxed{732}.

Solution by Shaddoll

Solution 2

We use complementary counting. There are 464^6 total colorings of the ring without restriction. To count the complement, we wish to count the number of colorings in which at least one set of adjacent sections are the same color. There are six possible sets of adjacent sections that could be the same color (think of these as borders). Call these B1,B2,,B6B_1,B_2,\dots,B_6. Let A1,A2,,A6\mathcal{A}_1, \mathcal{A}_2,\dots,\mathcal{A}_6 be the sets of colorings of the ring where the sections on both sides of B1,B2,,B6B_1,B_2,\dots,B_6 are the same color. We wish to determine A1A2A6|\mathcal{A}_1\cup\mathcal{A}_2\cup\cdots\cup\mathcal{A}_6|. Note that all of these cases are symmetric, and in general, Ai=45|\mathcal{A}_i|=4^5. There are 66 such sets Ai\mathcal{A}_i. Also, AiAj=44|\mathcal{A}_i\cup\mathcal{A}_j|=4^4, because we can only change colors at borders, so if we have two borders along which we cannot change colors, then there are four borders along which we have a choice of color. There are (62)\binom{6}{2} such pairs AiAj\mathcal{A}_i\cup\mathcal{A}_j. Similarly, AiAjAk=43|\mathcal{A}_i\cup \mathcal{A}_j\cup \mathcal{A}_k|=4^3, with (63)\binom{6}{3} such triples, and we see that the pattern will continue for 4-tuples and 5-tuples. For 6-tuples, however, these cases occur when there are no changes of color along the borders, i.e., each section has the same color. Clearly, there are four such possibilities.

Therefore, by PIE,

A1A2A6=(61)45(62)44+(63)43(64)42+(65)414.|\mathcal{A}_1\cup\mathcal{A}_2\cup\cdots\cup\mathcal{A}_6|=\binom{6}{1}\cdot 4^5-\binom{6}{2}\cdot 4^4+\binom{6}{3}\cdot 4^3-\binom{6}{4}\cdot 4^2+\binom{6}{5}\cdot 4^1-4. We wish to find the complement of this, or

46((61)45(62)44+(63)43(64)42+(65)414).4^6-\left(\binom{6}{1}\cdot 4^5-\binom{6}{2}\cdot 4^4+\binom{6}{3}\cdot 4^3-\binom{6}{4}\cdot 4^2+\binom{6}{5}\cdot 4^1-4\right). By the Binomial Theorem, this is (41)6+3=732(4-1)^6+3=\boxed{732}.

Solution 3

We use generating functions. Suppose that the colors are 0,1,2,30,1,2,3. Then as we proceed around a valid coloring of the ring in the clockwise direction, we know that between two adjacent sections with colors sis_i and si+1s_{i+1}, there exists a number di{1,2,3}d_i\in\{1,2,3\} such that si+1si+di(mod4)s_{i+1}\equiv s_i+d_i\pmod{4}. Therefore, we can represent each border between sections by the generating function (x+x2+x3)(x+x^2+x^3), where x,x2,x3x,x^2,x^3 correspond to increasing the color number by 1,2,3(mod4)1,2,3\pmod4, respectively. Thus the generating function that represents going through all six borders is A(x)=(x+x2+x3)6A(x)=(x+x^2+x^3)^6, where the coefficient of xnx^n represents the total number of colorings where the color numbers are increased by a total of nn as we proceed around the ring. But if we go through all six borders, we must return to the original section, which is already colored. Therefore, we wish to find the sum of the coefficients of xnx^n in A(x)A(x) with n0(mod4)n\equiv 0\pmod4.

Now we note that if P(x)=xnP(x)=x^n, then

P(x)+P(ix)+P(x)+P(ix)={4xnif n0(mod4)0otherwise.P(x)+P(ix)+P(-x)+P(-ix)=\begin{cases}4x^n&\text{if } n\equiv0\pmod{4}\\0&\text{otherwise}.\end{cases} Therefore, the sum of the coefficients of A(x)A(x) with powers congruent to 0(mod4)0\pmod 4 is

A(1)+A(i)+A(1)+A(i)4=36+(1)6+(1)6+(1)64=7324.\frac{A(1)+A(i)+A(-1)+A(-i)}{4}=\frac{3^6+(-1)^6+(-1)^6+(-1)^6}{4}=\frac{732}{4}. We multiply this by 44 to account for the initial choice of color, so our answer is 732\boxed{732}.

Solution 4

Let f(n)f(n) be the number of valid ways to color a ring with nn sections (which we call an nn-ring), so the answer is given by f(6)f(6). For n=2n=2, we compute f(n)=43=12f(n)=4\cdot3=12. For n3n \ge 3, we can count the number of valid colorings as follows: choose one of the sections arbitrarily, which we may color in 44 ways. Moving clockwise around the ring, there are 33 ways to color each of the n1n-1 other sections. Therefore, we have 43n14 \cdot 3^{n-1} colorings of an nn-ring.

However, note that the first and last sections could be the same color under this method. To count these invalid colorings, we see that by "merging" the first and last sections into one, we get a valid coloring of an (n1)(n-1)-ring. That is, there are f(n1)f(n-1) colorings of an nn-ring in which the first and last sections have the same color. Thus, f(n)=43n1f(n1)f(n) = 4 \cdot 3^{n-1} - f(n-1) for all n3n \ge 3.

To compute the requested value f(6)f(6), we repeatedly apply this formula:

f(6)=435f(5)=435434+f(4)=435434+433f(3)=435434+433432+f(2)=4(3534+3332+3)=4335+13+1=732.\begin{aligned} f(6)&=4\cdot3^5-f(5)\\&=4\cdot3^5-4\cdot3^4+f(4)\\&=4\cdot3^5-4\cdot3^4+4\cdot3^3-f(3)\\&=4\cdot3^5-4\cdot3^4+4\cdot3^3-4\cdot3^2+f(2)\\&=4(3^5-3^4+3^3-3^2+3)\\&=4\cdot3\cdot\frac{3^5+1}{3+1}\\&=\boxed{732}.\end{aligned} (Solution by Vedantu .)

Solution 4b (solution for all values of n)

Do the same as solution 4 to get f(n)=43n1f(n1)f(n) = 4 \cdot 3^{n-1} - f(n-1). Then, multiply both sides by (1)n(-1)^{n} to get (1)nf(n)=(1)n1f(n1)4(3)n1(-1)^{n}f(n) = (-1)^{n-1}f(n-1) - 4 \cdot (-3)^{n-1}. Let g(n)=(1)nf(n)g(n) = (-1)^{n}f(n), g(n)=g(n1)4(3)n1g(n) = g(n-1) - 4 \cdot (-3)^{n-1}. g(n)=g(2)4((3)2+(3)3++(3)n1)=g(2)9(1(3)n2)g(n) = g(2) - 4((-3)^{2}+(-3)^{3}+ \cdots + (-3)^{n-1}) = g(2) - 9(1-(-3)^{n-2}). f(n)=(1)ng(n)=(1)ng(2)9(1)n+3n=3(1)n+3nf(n) = (-1)^{n}g(n) = (-1)^{n}g(2)-9(-1)^{n}+3^{n} = \boxed{3(-1)^{n}+3^{n}}.

Solution 5

Label the sections 1, 2, 3, 4, 5, 6 clockwise. We do casework on the colors of sections 1, 3, 5.

Case 1: the colors of the three sections are the same. In this case, each of sections 2, 4, 6 can be one of 3 colors, so this case yields 4×33=1084 \times 3^3 = 108 ways.

Case 2: two of sections 1, 3, 5 are the same color. Note that there are 3 ways for which two of the three sections have the same color, and 4×3=124 \times 3 = 12 ways to determine their colors. After this, the section between the two with the same color can be one of 3 colors and the other two can be one of 2 colors. This case yields 3×(4×3)×(3×2×2)=4323 \times (4 \times 3) \times (3 \times 2 \times 2) = 432 ways.

Case 3: all three sections of 1, 3, 5 are of different colors. Clearly, there are 4×3×2=244 \times 3 \times 2 = 24 choices for which three colors to use, and there are 2 ways to choose the colors of each of sections 2, 4, 6. Thus, this case gives 4×3×2×23=1924 \times 3 \times 2 \times 2^3 = 192 ways.

In total, there are 108+432+192=732108 + 432 + 192 = \boxed{732} valid colorings.

Solution by ADMathNoob

Solution 6

We will take a recursive approach to this problem. We can start by writing out the number of colorings for a circle with 1,2,1, 2, and 33 compartments, which are 4,12,4, 12, and 24.24. Now we will try to find a recursive formula, C(n)C(n), for a circle with an arbitrary number of compartments n.n. We will do this by focusing on the n1n-1 section in the circle. This section can either be the same color as the first compartment, or it can be a different color as the first compartment. We will focus on each case separately.

Case 1:

If they are the same color, we can say there are C(n2)C(n-2) to fill the first n1n-1 compartments. The nthnth compartment must be different from the first and second to last compartments, which are the same color. Hence this case adds 3C(n2)3*C(n-2) to our recursive formula.

Case 2:

If they are different colors, we can say that there are C(n1)C(n-1) to fill the first n1n-1 compartments, and for the the nthnth compartment, there are 22 ways to color it because the n1n-1 and 11 compartments are different colors. Hence this case adds 2C(n1).2*C(n-1).

So our recursive formula, C(n)C(n), is 3C(n2)+2C(n1).3*C(n-2) + 2*C(n-1). Using the initial values we calculated, we can evaluate this recursive formula up to n=6.n=6. When n=6,n=6, we get 732\boxed{732} valid colorings.

Solution by NeeNeeMath

Solution 7

WLOG, color the top left section 11 and the top right section 22. Then the left section can be colored 22, 33, or 44, and the right section can be colored 11, 33, or 44. There are 33=93 \cdot 3 = 9 ways to color the left and right sections. We split this up into two cases.

Case 1: The left and right sections are of the same color. There are 22 ways this can happen: either they both are 33 or they both are 44. We have 33 colors to choose for the bottom left, and 22 remaining colors to choose for the bottom right, for a total of 2322 \cdot 3 \cdot 2 cases.

Case 2: The left and right sections are of different colors. There are 92=79 - 2 = 7 ways this can happen. Assume the left is 33 and the right is 44. Then the bottom left can be 11, 22, or 44, and the bottom right can be 11, 22, or 33. However the bottom sections cannot both be 11 or both be 22, so there are 332=73 \cdot 3 - 2 = 7 ways to color the bottom sections, for a total for 77=497 \cdot 7 = 49 colorings.

Since there were 43=124 \cdot 3 = 12 ways to color the top sections, the answer is 12(12+49)=73212 \cdot (12 + 49) = \boxed{732}.

Solution 8

Label the four colors 1,2,3,1, 2, 3, and 44, respectively. Now let's imagine a circle with the four numbers 1,2,3,1, 2, 3, and 44 written clockwise. We'll say that a bug is standing on number aa. It is easy to see that for the bug to move to a different number, it must walk 1,2,1, 2, or 33 steps clockwise. (This is since adjacent numbers can't be the same, as stated in the problem). Note that the sixth number in the bug's walking sequence must not equal the first number. Thus, our total number of ways, NN, given the bug's starting number kk, is simply the number of ordered quintuplets of positive integers (a1,a2,a3,a4,a5)(a_1, a_2, a_3, a_4, a_5) that satisfy ai{1,2,3}a_i \in \{1, 2, 3\} for all 1i51 \leq i \leq 5 and

i=15ai8,12,\sum_{i=1}^{5} a_i \neq 8, 12, since the bug cannot land on kk again on his fifth and last step. We know that the number of ordered quintuplets of positive integers (a1,a2,a3,a4,a5)(a_1, a_2, a_3, a_4, a_5) that satisfy ai{1,2,3}a_i \in \{1, 2, 3\} without the other restriction is just 353^5, so we aim to find the number of quintuplets such that

a1+a2+a3+a4+a5=8,12.a_1 + a_2 + a_3 + a_4 + a_5 = 8, 12. Note that the number of ordered quintuplets satisfying i=15ai=8\sum_{i=1}^{5} a_i = 8 is the same as the number of them satisfying i=15ai=12\sum_{i=1}^{5} a_i = 12 due to symmetry. By stars and bars, there are (74)=35\dbinom{7}{4} = 35 ways to distribute the three "extra" units to the five variables a1,a2,a3,a4,a5a_1, a_2, a_3, a_4, a_5 (since ai1a_i \geq 1), but ways of distribution such that one variable is equal to 44 are illegal, so the actual number of ways is 355=3035 - 5 = 30. Since there are four possible values of kk (or the starting position for the bug), we obtain

N=4×(352×30)=732.N = 4 \times (3^5 - 2 \times 30) = \boxed{732}. -fidgetboss_4000

Solution 9

Let's number the regions 1,2,61,2,\dots 6. Suppose we color regions 1,2,31,2,3. Then, how many ways are there to color 4,5,64,5,6?

Note: the numbers are numbered as shown:

AIME diagram

Case 1:\textbf{Case 1:} The colors of 1,2,31,2,3 are BABBAB, in that order.

Then the colors of 6,5,46,5,4 can be AXAAXA, AXCAXC, CXACXA, CXCCXC, or CXDCXD in that order, where XX is any color not equal to its surroundings. Then there are 44 choices for AA, 33 choices for BB (it cannot be AA), 22 choices for CC, and 11 for DD, the last color. So, summing up, we have

43(13+22+22+23+212)=1221=2524*3(1*3+2*2+2*2+2*3+2*1*2)=12*21=252 colorings.

Case 2:\textbf{Case 2:} The colors of 1,2,31,2,3 are BACBAC, in that order.

Again, we list out the possible arrangements of 6,5,46,5,4: AXAAXA, AXBAXB, CXACXA, AXDAXD, DXADXA, CXBCXB, CXDCXD, DXBDXB, or DXDDXD. (Easily simplified; listed here for clarity.) Then there are 44 choices for AA as usual, 33 choices for BB, and so on. Hence we have

432(13+12+12+12+12+12+12+12+13)=2420=4804*3*2(1*3+1*2+1*2+1*2+1*2+1*2+1*2+1*2+1*3)=24*20=480 colorings in this case.

Adding up, we have 252+480=732252+480=\boxed{732} as our answer.

This solution was brought to you by LEONARD_MY_DUDE

Solution 10 (chromatic polynomial-VERY HELPFUL)

We quickly notice that this is just the cycle graph with 6 vertices. The chromatic polynomial for a cycle is (k1)n+(1)n(k1)(k-1)^n+(-1)^n (k-1) where we use kk colors on a cycle of nn vertices. Plugging in k=4k=4 and n=6n=6 we arrive at 732\boxed{732}. ~chrisdiamond10

Solution 11 (step-by-step case analysis)

Let's label the regions as 1,2,3,4,5,61,2,3,4,5,6 in that order. We start with region 11. There are no restrictions on the color of region 11 so it can be any of the four colors. We know move on the region 22. It can be any color but color used for region 11, giving us 33 choices. Section 33 is where it gets a bit complicated; we will have to do casework based on whether the color of region 33 is that of region 11 or not.

If we have the color of region 33 being different from that of region 11 (in which we color do so in 22 ways), then we have need for another casework at region 44. If the color of region 44 is different from that of region 11 (which can be achieved in 22 ways), then we have yet another casework split.

If the color of region 55 is different from that of region 11 (which can be done in 22 ways, then we would have a total of 22 possible colorings for region 66 (for it cannot be the color of regions 11 nor 55). Moving on to the case where the color of section 55 is the same as that of section 11 (which can be done in 11 way), we will have 33 ways (region 66 cannot be that color of both region 11 and 55). Thus, if the color of region 44 is different of that of region 11, then we have 22+3=72\cdot 2 + 3 = 7 ways.

If the color of region 44 is the same as that of region 11 (which can be done in one way), then the color of region 55 have to be different from that of sector 11 (33 ways). That means there will be 22 choices for the color of region 66. So if the color of region 44 is the same as region 11, then we will have 32=63\cdot 2 = 6. That means if the color of section 33 is different from that of region 11, then there are 27+6=202\cdot 7 + 6 = 20.

Now, moving on to the case where section 33 has the same color of region 11. That means section 44 will have to be a different color of that of region 11 (33 ways). So, that means we have region 55 to be either the same color or different color as region 11. If it is different (which can be done in 22 ways), then there will be 22 possibilities on the color of sector 66. If it is same (which can be done in 11 way), then there are 33 ways to color region 66. So, if section 33 has the same color as section 11, then we have 3(22+3)=3(7)=213(2\cdot 2 + 3) = 3(7) = 21.

Now, in overall we will have 43(2(20)+21)=12(61)=7324\cdot 3 (2(20)+21) = 12(61) = \boxed{732}.

The full expansion without the explanation is right here:

43(2(27+32)+3(22+3))=7324\cdot 3(2(2\cdot 7 + 3\cdot 2) + 3(2\cdot 2 + 3)) = 732 ~sml1809

Solution 12 (Probability & Expected Value)

Let the top-right segment be segment 1,1, and remaining segments are numbered 2,3,4,5,62,3,4,5,6 in clockwise order. We have 44 choices for segment 1,1, and 33 choices for segments 2,3,4,5.2,3,4,5. For segment 6,6, we wish to find the expected value of the number of choices for segment 66's color, which depends on whether segment 55 is red. If we let P(n)P(n) denote the probability of segment PP being the same color as segment 11 (for simplicity, denote segment 11's color as red), we get the following recurrence relation:

P(n)=1P(n1)3.P(n)=\dfrac{1-P(n-1)}{3}. This is because that you cannot have two reds in a row (hence the 1P(n1)1-P(n-1)) and if segment n1n-1 is not red, there are three possible colors, one of which is red (hence the divide by 33). Using the obvious fact that P(1)=1P(1)=1 by the definition of P(n),P(n), we find that

P(5)=727.P(5)=\dfrac{7}{27}. If segment 55 is red, then there are three possible colors for segment 6.6. If it is not, there are 22 possible choices for segment 6.6. This means the expected number of color choices for segment 66 is

7273+20272,\dfrac{7}{27}\cdot3+\dfrac{20}{27}\cdot2, and the total number of colorings of the ring is

43333(7273+20272)=732.4\cdot3\cdot3\cdot3\cdot3\cdot\left(\dfrac{7}{27}\cdot3+\dfrac{20}{27}\cdot2\right)=\boxed{732}. ~BS2012

Video Solution

Video Solution: https://www.youtube.com/watch?v=Yndl8HqVkJk