DR.WANG Mathematics中文

2025 AIME I · Question 3

Counting & combinatorics · multiset permutations · casework · problem-solving

Problem outline

Assign nine distinct people to three labelled nonempty groups in such a way that their sizes are strictly decreasing in label order. Find the assignment count modulo 10001000.

Show answer and methods 2 methods

Answer

016

Method 1 Classify by the smallest group

If the smallest size is 11, the other sizes are two unequal integers greater than 11 summing to 88: the possible pairs are (6,2)(6,2) and (5,3)(5,3). If it is 22, only (4,3)(4,3) works. A smallest size of at least 33 would require at least 3+4+5=123+4+5=12 people.

Choose the members of the two smaller groups in order. The three contributions are (91)(82)=252\binom91\binom82=252, (91)(83)=504\binom91\binom83=504, and (92)(73)=1260\binom92\binom73=1260. Their sum is 20162016, whose remainder is 1616.

Method 2 Discard ties before ordering the labels

Ignoring the ordering but keeping all groups nonempty leaves 39−3⋅29+3=181503^9-3\cdot2^9+3=18150 assignments, by inclusion–exclusion on the missing labels.

For a specified pair of equal groups of size kk, the count is 9!/(k!2(9−2k)!)9!/(k!^2(9-2k)!). If exactly two groups tie, kk is 1,2,1,2, or 44; the three counts are 72,756,63072,756,630. Any of the three pairs of groups can tie. When all sizes are 33 there are 9!/(3!)3=16809!/(3!)^3=1680 additional assignments.

The number with three different sizes is 18150−3(72+756+630)−1680=1209618150-3(72+756+630)-1680=12096. Relabelling the three groups realizes all six strict orderings equally often. The required count is 12096/6=201612096/6=2016, with remainder 1616.

Source and attribution

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

Original question (external)