AMC 10 Step by Step

2024 AMC 10B Problem 20

P16-20~7 minPrint

Three different pairs of shoes are placed in a row so that no left shoe is next to a right shoe from a different pair. In how many ways can these six shoes be lined up?

Log in to save your progress.
Show solution without answering

Key insight

A left shoe next to a right shoe must be its own mate. First find the allowed left-right patterns, then see which pairs are forced into place.

Solution

Call the pairs AA, BB, CC, with shoes AL,ARA_L, A_R and so on. First decide which spots hold left shoes (L) and which hold right shoes (R). Then place the actual shoes.

Step 1: which L/R patterns are allowed?

1. Wherever an L sits next to an R, those two shoes must be a pair.
2. A shoe has only one mate. So a shoe cannot have an opposite-type shoe on both sides. The patterns LRLLRL and RLRRLR can never appear.
3. List the patterns of three L's and three R's that avoid LRLLRL and RLRRLR:
- Split once: LLLRRRLLLRRR, RRRLLLRRRLLL.
- Split twice: LLRRRLLLRRRL, LRRRLLLRRRLL, RRLLLRRRLLLR, RLLLRRRLLLRR.
- Split three times: LRRLLRLRRLLR, RLLRRLRLLRRL.

That is 88 patterns.

Step 2: place the shoes. Every place where L meets R must hold a matching pair.

  1. Split once, like LLLRRRLLLRRR. The pair at the meeting point (spots 33 and 44) can be any of 33 pairs. The other two left shoes fill spots 11 and 22 in 22 ways, and the other two right shoes fill spots 55 and 66 in 22 ways. That is 3⋅2⋅2=123 \cdot 2 \cdot 2 = 12 ways. With 22 such patterns: 2424.
  2. Split twice, like LLRRRLLLRRRL. The two meeting points (spots 22–33 and 55–66) need two different pairs: 3⋅2=63 \cdot 2 = 6 ways. The last pair must fill spots 11 and 44, which are an L spot and an R spot, in 11 way. That is 66 ways. With 44 such patterns: 2424.
  3. Split three times, like LRRLLRLRRLLR. The three meeting points (spots 11–22, 33–44, 55–66) each take a whole pair, in 3⋅2⋅1=63 \cdot 2 \cdot 1 = 6 ways. With 22 such patterns: 1212.
  4. Total: 24+24+12=6024 + 24 + 12 = 60.

The answer is (A) 60\boxed{\textbf{(A)}\ 60}.

Why this works

Break a lineup problem into two layers: first the rough pattern (left or right), then the exact shoes. The rule rules out many rough patterns right away, and in the ones that are left it forces certain pairs to sit together. Counting each layer separately is much easier than handling all six shoes at once.

Alternative approach

Build the row from the left. The first shoe can be any of 66, and by symmetry each choice leads to the same number of rows. Say it is ARA_R.

  • If the second shoe is ALA_L: the third must be another left shoe, BLB_L or CLC_L (22 ways). Say BLB_L. Then the row ends BR,CR,CLB_R, C_R, C_L or CL,CR,BRC_L, C_R, B_R: 22 ways. That gives 2⋅2=42 \cdot 2 = 4.
  • If the second shoe is another right shoe, BRB_R or CRC_R (22 ways), say BRB_R. Then either BL,AL,CL,CRB_L, A_L, C_L, C_R follows (11 way), or CR,CLC_R, C_L follows and then AL,BLA_L, B_L in either order (22 ways). That gives 2⋅3=62 \cdot 3 = 6.

So each first shoe leads to 4+6=104 + 6 = 10 rows, and the total is 6⋅10=606 \cdot 10 = 60.

Concise solution

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

Record each position as LL or RR. Whenever an LL and an RR are adjacent they must be mates. Since a shoe has only one mate, no shoe can be adjacent to two shoes of the opposite type: the patterns LRLLRL and RLRRLR cannot appear anywhere. Equivalently, every run of identical letters that is not at an end of the row has length at least 22.

With three LL's and three RR's, the allowed patterns are:
- one boundary: LLLRRRLLLRRR, RRRLLLRRRLLL;
- two boundaries: LLRRRLLLRRRL, LRRRLLLRRRLL, RRLLLRRRLLLR, RLLLRRRLLLRR;
- three boundaries: LRRLLRLRRLLR, RLLRRLRLLRRL.

Now assign actual shoes. Each LL–RR boundary forces the two shoes on either side to be a pair.

  • One boundary (2 patterns): pick the pair straddling the boundary (33 ways). The other two left shoes fill the remaining LL slots in 22 ways, the other two right shoes fill the remaining RR slots in 22 ways: 3⋅2⋅2=123 \cdot 2 \cdot 2 = 12 per pattern.
  • Two boundaries (4 patterns): the two boundaries use two different pairs (3⋅2=63 \cdot 2 = 6 ways to assign them), and the third pair's shoes fill the two remaining slots, one LL and one RR, in exactly 11 way: 66 per pattern.
  • Three boundaries (2 patterns): each boundary holds a whole pair, assigned in 3!=63! = 6 ways: 66 per pattern.

Total: 2⋅12+6⋅6=24+36=602 \cdot 12 + 6 \cdot 6 = 24 + 36 = 60.

The answer is (A) 60\boxed{\textbf{(A)}\ 60}.

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.