The twelve letters A, B, C, D, E, F, G, H, I, J, K, and L are randomly grouped into six pairs of letters. The two letters in each pair are placed next to each other in alphabetical order to form six two-letter words, and then those six words are listed alphabetically. For example, a possible result is AB, CJ, DG, EK, FL, HI. The probability that the last word listed contains G is , where and are relatively prime positive integers. Find .
, 2025
Solution
There are equally likely ways for the letters to be paired. This can be seen by considering the successive choices of a partner for the unpaired letter that comes first alphabetically. The letter is the first letter in its pair, and its pair is listed last if is paired with , , , , or (5 choices), two of , , , , , and are paired with each other ( choices), and the 4 remaining early letters are paired with the 4 remaining late letters ( choices). The letter is the second letter in its pair, and its pair is listed last if is paired with and each of through is paired with one of through . This can happen in ways. Therefore
The requested sum is .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.