Sally has five red cards numbered through and four blue cards numbered through . She stacks the cards so that the colors alternate and so that the number on each red card divides evenly into the number on each neighboring blue card. What is the sum of the numbers on the middle three cards?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
Red 5 fits beside only blue 5, and red 4 beside only blue 4. So those reds go at the two ends, and every other card is forced.
Solution
With red and blue cards alternating, the stack must be red, blue, red, blue, red, blue, red, blue, red. So both ends are red, and every blue card has a red card on each side.
The cards with the fewest choices control everything, so find those first. Write for red card , for blue card , and so on.
- List which blues each red can touch (the red number must divide the blue number):
| red card | blue neighbors allowed |
|---|---|
| only | |
| only |
2. Place . It can touch only one blue card, but a red card in the middle has two blue neighbors. So is at an end, with next to it.
3. Place . Same reason: it is at the other end, with next to it.
4. Fill in next to . Its other neighbor is a red card that divides . is used, so it is .
5. Fill in next to . Its other neighbor is a red card that divides . and are used, so it is .
6. So far:
The cards left are , , , and the middle three spots are blue, red, blue.
7. The blue card next to must be a multiple of , so it is . Then goes next to , and goes in the center. Check: divides both and . It works.
8. The full stack is . The middle three cards are , and .
The answer is .
Why this works
In arrangement puzzles, start with the pieces that have the fewest options. A card with only one allowed neighbor has to be at an end, and each card you place removes choices for the next one, so the whole stack falls into place. Making a table of allowed neighbors first shows you where to start.
The trap
Starting with red 1, which fits next to anything, instead of the pickiest cards, and getting lost among too many possibilities.
Concise solution
Nine cards alternate in color with five red and four blue, so the pattern is : red cards at both ends, and every blue card has two red neighbors that must divide it.
Write and for the red and blue cards numbered . Which blues can each red touch?
- : only . : only . : or .
- : or . : any blue.
has a single possible neighbor, so it must be at an end with beside it; likewise is at the other end with beside it. Reading inward: 's other neighbor must divide , so it is . 's other neighbor must divide and is used, so it is .
The stack so far is with to place. The blue next to must be a multiple of , so it is ; then goes beside , and sits in the middle (it divides both and ).
Full stack: . The middle three cards are , with sum .
The answer is .
Review in the AoPS books
- Intermediate Counting & Probability, Chapter 2: Sets and Logic (§2.4)
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.2)
- Introduction to Number Theory, Chapter 5: Divisor Problems (§5.2, §5.3)
Techniques
Organized listing / direct enumeration · Consider the largest/smallest element or boundary case