AMC 10 Step by Step

2014 AMC 10A Problem 4

P1-10~2 minPrint

Walking down Jane Street, Ralph passed four houses in a row, each painted a different color. He passed the orange house before the red house, and he passed the blue house before the yellow house. The blue house was not next to the yellow house. How many orderings of the colored houses are possible?

Log in to save your progress.
Show solution without answering

Key insight

Place blue and yellow first, since they have the most rules. Only three spot pairs keep blue first with a gap; orange and red then fit in exactly one way.

Solution

Number the four spots 1,2,3,41, 2, 3, 4 in the order Ralph walks past them. Blue and yellow have the most rules (blue first, and not next to each other), so place them first.

  1. List every pair of spots for (blue, yellow) with blue earlier:
blue, yellownext to each other?allowed?
1,21, 2yesno
1,31, 3noyes
1,41, 4noyes
2,32, 3yesno
2,42, 4noyes
3,43, 4yesno

That leaves 33 choices.

2. For each choice, two spots are still empty. Orange and red go there, and orange must come first, so there is only one way to fill them.
3. The three orders are
B O Y R,B O R Y,O B R Y.B\,O\,Y\,R, \qquad B\,O\,R\,Y, \qquad O\,B\,R\,Y.

The answer is (B) 3\boxed{\textbf{(B)}\ 3}.

Why this works

Start with the items that have the most rules. Once they are placed, the rest often has no freedom left. A rule like "orange before red" means that of the two ways to put orange and red into two spots, only one counts.

Alternative approach

Count everything, then remove the bad cases.

  1. Four houses can be ordered in 4⋅3⋅2⋅1=244 \cdot 3 \cdot 2 \cdot 1 = 24 ways.
  2. In exactly half of them orange comes before red: 1212. In half of those, blue comes before yellow: 66.
  3. Now remove the orders where blue is right before yellow. Glue "BY" into one block; with orange before red, the orders are BY O RBY\,O\,R, O BY RO\,BY\,R, O R BYO\,R\,BY. That is 33 orders.
  4. So 6−3=36 - 3 = 3 orders are left.
Concise solution

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

Number the positions 11 to 44 in the order Ralph passes them. The blue and yellow houses carry the tightest restrictions, so place them first: blue comes before yellow and they are not adjacent. The position pairs (blue, yellow) that are not consecutive are
(1,3),(1,4),(2,4).(1,3),\quad (1,4),\quad (2,4).

For each of these, the two open positions must hold orange and red with orange first, which can be done in exactly one way. So each pair gives one ordering:
B O Y R,B O R Y,O B R Y.B\,O\,Y\,R,\qquad B\,O\,R\,Y,\qquad O\,B\,R\,Y.

The answer is (B) 3\boxed{\textbf{(B)}\ 3}.

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.