MathLabs

Problem 6

Five students, A,B,C,D,EA,B,C,D,E, took part in a contest. One prediction was the order ABCDEABCDE. No contestant finished in the predicted position, and no two contestants predicted consecutively actually did so. A second prediction was DAECBDAECB. Exactly two contestants finished in their predicted positions, and two disjoint pairs predicted consecutively actually did so. Determine the actual order.
Step 2 of 4: Use the first prediction
CAEBD, DCAEB, DCEBA, EDACBCAEBD,\ DCAEB,\ DCEBA,\ EDACB
Detailed analysis

Impose that no student is in the position predicted by ABCDEABCDE and that no predicted consecutive pair from ABCDEABCDE is consecutive in the actual order. Combining these restrictions with exactly two correct positions in DAECBDAECB leaves precisely the four displayed orders, as in the source enumeration.