Skip to main content

1993 AIME Problem 7

Problem 7 of 15IntermediateCombinatoricsProbability & Statistics

Three numbers, a1,a_1, a2,a_2, a3,a_3, are drawn randomly and without replacement from the set {1,2,3,…,1000}.\{1,2,3,\ldots,1000\}. Three other numbers, b1,b_1, b2,b_2, b3,b_3, are then drawn randomly and without replacement from the remaining set of 997997 numbers. Let pp be the probability that, after a suitable rotation, a brick of dimensions a1×a2×a3a_1\times a_2\times a_3 can be enclosed in a box of dimensions b1×b2×b3,b_1\times b_2\times b_3, with the sides of the brick parallel to the sides of the box. If pp is written as a fraction in lowest terms, what is the sum of the numerator and denominator?

Your answer

Integer from 0 to 999
Show solution

Solution

After the six distinct values are fixed and sorted, each of the (63)=20\binom63=20 assignments of three values to the brick is equally likely. The sorted brick dimensions fit the sorted box dimensions exactly when, in every prefix of the resulting word of three aa’s and three bb’s, the number of aa’s is at least the number of bb’s. There are C3=5C_3=5 such words. Thus p=520=14,p=\frac{5}{20}=\frac{1}{4}, and the requested sum is 1+4=5.1+4=5.
AoPS wiki

Tagged: basic probability · Catalan Number · sampling without replacement

More practice