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 divides only blue 5 and red 4 only blue 4, so those reds sit at the ends; the rest of the stack is forced card by card.
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 .
Why this works
Arrangement puzzles with divisibility rules are solved by attacking the tightest constraints: cards with only one legal neighbor are pinned to the ends, and each placement removes options for the next. Listing the allowed neighbors for every card up front makes the forced chain visible.
The trap
Starting from red 1 (which fits anywhere) rather than from the most restricted cards, and getting lost in possibilities.
Common mistakes
- Starting from red 1 (which fits anywhere) rather than from the most restricted cards, and getting lost in possibilities.
- Forgetting that the alternating pattern forces red cards at both ends, and trying to put a blue card at an end.
Techniques
Organized listing / direct enumeration · Consider the largest/smallest element or boundary case