DR.WANG Mathematics中文

2025 AIME I · Question 7

Probability · basic probability · arrangements with restrictions · casework · counting · problem-solving

Problem outline

Uniformly match AA through LL in unordered pairs. Write each pair with the earlier letter first and sort the six pairs alphabetically. If the chance that the last pair includes GG is m/nm/n in lowest terms, find m+nm+n.

Show answer and methods 2 methods

Answer

821

Method 1 Count matchings at two alphabetic cutoffs

Let SS be the largest of the six first letters. These first letters are distinct, so SS cannot be earlier than FF. The sample space has 11⋅9⋅7⋅5⋅3=1039511\cdot9\cdot7\cdot5\cdot3=10395 matchings by repeatedly choosing a partner for the first unused letter.

For S≤GS\le G, each of HH through LL must take a distinct partner among the first seven letters. This gives 7⋅6⋅5⋅4⋅3=25207\cdot6\cdot5\cdot4\cdot3=2520 matchings; the remaining two letters pair automatically. For S=FS=F, the halves AA–FF and GG–LL must be matched across in 6!=7206!=720 ways.

If S=GS=G, the last pair certainly contains GG, giving 2520−720=18002520-720=1800 cases. For S=FS=F, the last pair must be FGFG; fixing it leaves 5!=1205!=120 cases. Larger SS excludes GG. Thus P=(1800+120)/10395=128/693P=(1800+120)/10395=128/693 and m+n=821m+n=821.

Method 2 Condition on the partner of G

Each of the other eleven letters is equally likely to partner GG. If the partner precedes FF, then the pair starts before FF, and six distinct starting letters cannot all be that early.

If GG is paired with FF, each of HH through LL must pick a partner in AA through EE. Exposing the five partners in order gives conditional probability (5/9)(4/7)(3/5)(2/3)(1/1)=8/63(5/9)(4/7)(3/5)(2/3)(1/1)=8/63.

If the partner follows GG (five possibilities), the four unpaired letters larger than GG must each choose one of the six earlier letters. The conditional probability is (6/9)(5/7)(4/5)(3/3)=8/21(6/9)(5/7)(4/5)(3/3)=8/21. Weighting the cases gives (1/11)(8/63)+(5/11)(8/21)=128/693(1/11)(8/63)+(5/11)(8/21)=128/693. The sum is 821821.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)