Skip to main content

2014 AIME I Problem 12

Problem 12 of 15HarderAlgebraProbability & StatisticsProblem-Solving Techniques

Let A={1,2,3,4},A = \{1, 2, 3, 4\}, and let ff and gg be randomly chosen (not necessarily distinct) functions from AA to A.A. The probability that the range of ff and the range of gg are disjoint is mn,\frac{m}{n}, where mm and nn are relatively prime positive integers. Find m.m.

Your answer

Integer from 0 to 999
Show solution

Solution

Condition on the range of f.f. If it has kk elements, then the range of gg is disjoint from it exactly when gg maps AA into the remaining 4−k4 - k elements, which happens for (4−k)4(4-k)^4 of the 44=2564^4 = 256 functions g.g. Count functions ff by range size: 44 constant functions; (42)(24−2)=84\binom{4}{2}(2^4 - 2) = 84 with range size 2;2; (43)⋅36=144\binom{4}{3} \cdot 36 = 144 with range size 33 (there are 3636 surjections from four elements onto three); and 4!=244! = 24 bijections. The number of favorable pairs is 4⋅34+84⋅24+144⋅14+24⋅04=324+1344+144=1812. \begin{aligned} &4 \cdot 3^4 + 84 \cdot 2^4 \\ &\quad {}+ 144 \cdot 1^4 + 24 \cdot 0^4 \\ &= 324 + 1344 + 144 = 1812. \end{aligned} The probability is 181248=181265536=45316384,\frac{1812}{4^8} = \frac{1812}{65536} = \frac{453}{16384}, and since 1638416384 is a power of 22 while 453=3⋅151453 = 3 \cdot 151 is odd, this is in lowest terms. Thus m=453.m = 453.
AoPS wiki

Tagged: function · basic probability · casework

More practice