Difference between revisions of "2016 AIME II Problems/Problem 12"
Mathgeek2006 (talk | contribs) |
Mathgeek2006 (talk | contribs) m (→Solution 3) |
||
Line 43: | Line 43: | ||
==Solution 3== | ==Solution 3== | ||
− | We use generating functions. Suppose that the colors are <math>0,1,2,3</math>. Then as we proceed around a valid coloring of the ring in the clockwise direction, we know that between two adjacent sections with colors <math>s_i</math> and <math>s_{i+1}</math>, there exists a number <math>d_i\in\{1,2,3\}</math> such that <math>s_{i+1}\equiv s_i+d_i\pmod{4}</math>. Therefore, we can represent each border between sections by the generating function <math>(x+x^2+x^3)</math> | + | We use generating functions. Suppose that the colors are <math>0,1,2,3</math>. Then as we proceed around a valid coloring of the ring in the clockwise direction, we know that between two adjacent sections with colors <math>s_i</math> and <math>s_{i+1}</math>, there exists a number <math>d_i\in\{1,2,3\}</math> such that <math>s_{i+1}\equiv s_i+d_i\pmod{4}</math>. Therefore, we can represent each border between sections by the generating function <math>(x+x^2+x^3)</math>, where <math>x,x^2,x^3</math> correspond to increasing the color number by <math>1,2,3\pmod4</math>, respectively. Thus the generating function that represents going through all six borders is <math>A(x)=(x+x^2+x^3)^6</math>, where the coefficient of <math>x^n</math> represents the total number of colorings where the color numbers are increased by a total of <math>n</math> 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 <math>x^n</math> in <math>A(x)</math> with <math>n\equiv 0\pmod4</math>. |
Now we note that if <math>P(x)=x^n</math>, then | Now we note that if <math>P(x)=x^n</math>, then |
Revision as of 10:09, 17 May 2016
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.
Solution 1
Choose a section to start coloring. Assume, WLOG, that this section is color . We proceed coloring clockwise around the ring. Let be the number of ways to color the first sections (proceeding clockwise) such that the last section has color . In general (except for when we complete the coloring), we see that i.e., is equal to the number of colorings of sections that end in any color other than . Using this, we can compute the values of in the following table.
Note that because then adjacent sections are both color . We multiply this by to account for the fact that the initial section can be any color. Thus the desired answer is .
Solution by Shaddoll
Solution 2
We use complementary counting. There are 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 . Let be the sets of colorings of the ring where the sections on both sides of are the same color. We wish to determine . Note that all of these cases are symmetric, and in general, . There are such sets . Also, , 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 such pairs . Similarly, , with 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, We wish to find the complement of this, or By the Binomial Theorem, this is .
Solution 3
We use generating functions. Suppose that the colors are . Then as we proceed around a valid coloring of the ring in the clockwise direction, we know that between two adjacent sections with colors and , there exists a number such that . Therefore, we can represent each border between sections by the generating function , where correspond to increasing the color number by , respectively. Thus the generating function that represents going through all six borders is , where the coefficient of represents the total number of colorings where the color numbers are increased by a total of 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 in with .
Now we note that if , then Therefore, the sum of the coefficients of with powers congruent to is We multiply this by to account for the initial choice of color, so the answer is .
See also
2016 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 11 |
Followed by Problem 13 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.