2006 AMC 10A Problem 25
A bug starts at one vertex of a cube and moves along the edges of the cube according to the following rule. At each vertex the bug will choose to travel along one of the three edges emanating from that vertex. Each edge has equal probability of being chosen, and all choices are independent. What is the probability that after seven moves the bug will have visited every vertex exactly once?
Show solution without answering
Key insight
By symmetry fix the first two moves (3 × 2 ways). Only 3 ways to finish visit every corner: 18 good paths out of 3^7 = 2187.
Solution
Seven moves visit corners (counting the start), and a cube has exactly corners. So the bug must never return to a corner it has already visited.
1. All sequences. At each move the bug has equal choices, so there are equally likely sequences. We count the good ones.
2. Label the cube. Top face going around; bottom face with under , under , under , under . The bug starts at .
3. First two moves. The first move has choices and the second has (it cannot go back). All starts look the same after turning the cube, so count the good paths for one start, , and multiply by .
4. From , the unvisited neighbors are and .
- Go to . From the only new neighbor is . From , walk around the bottom face either way: or . That is good paths.
- Go to , then . From the only new neighbor is ( is used). Then . That is good path.
- Go to , then . Left unvisited: , , . Going to is a dead end (its neighbors , , are used). Going to then leaves unreachable. That is good paths.
5. Total. good paths for this start, so in all. The probability is
The answer is .
Why this works
When every step is an equal random choice, probability is (good sequences) divided by (all sequences), so the job is counting. Symmetry lets you fix the first few moves and multiply at the end, and after that the cube is small enough to list the cases, stopping each branch as soon as some corner can no longer be reached.
Alternative approach
Check the choices. The first two moves can always be anything ( ways), and each start has the same number of good endings, so the number of good paths is a multiple of . The choices, written over , are , , , and . Only is a multiple of , so the answer is (C).
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
Seven moves reach eight vertices, so the walk must never repeat a vertex. All move sequences are equally likely, so we count the non-repeating ones.
Label the top face in order and the bottom face with below , below , below , below . Start at . The first move has options and the second has (no going back); by symmetry every such start is equivalent, so assume the path begins and multiply by later.
From the unvisited neighbors are and .
Case 1: . From the only unvisited neighbor is . From the rest of the bottom face is traversed either way: or . That is paths.
Case 2: . From , go to or .
- : then (since is used), , . path.
- : the unvisited vertices are . Going to strands and ; going to then strands . paths.
So completions follow , and there are good sequences in all. The probability is
The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 7: Introduction to Probability
- Introduction to Counting & Probability, Chapter 5: More With Combinations (§5.2)
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques (§2.2)
- Introduction to Algebra, Chapter 22: Special Manipulations (§22.3)
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. Also appeared as 2006 12A #20.