Skip to main content

2018 AIME II Problem 10

Problem 10 of 15IntermediateAlgebraCombinatoricsProblem-Solving Techniques

Find the number of functions f(x)f(x) from {1,2,3,4,5}\{1, 2, 3, 4, 5\} to {1,2,3,4,5}\{1, 2, 3, 4, 5\} that satisfy f(f(x))=f(f(f(x)))f(f(x)) = f(f(f(x))) for all xx in {1,2,3,4,5}.\{1, 2, 3, 4, 5\}.

Your answer

Integer from 0 to 999
Show solution

Solution

Applying ff to f(f(x))=f(f(f(x)))f(f(x)) = f(f(f(x))) repeatedly shows the condition means that f(f(x))f(f(x)) is a fixed point of ff for every x.x. So the elements organize into levels: a nonempty set of ii fixed points, then jj elements whose image is a fixed point (but which are not fixed), and the remaining 5−i−j5 - i - j elements, each of which must map to one of the jj middle elements. For given ii and jj there are (5i)\binom{5}{i} choices of fixed points, (5−ij)\binom{5-i}{j} choices of the middle level, iji^j maps from the middle level to the fixed points, and j 5−i−jj^{\,5-i-j} maps for the rest. Summing (5i)(5−ij) ij j 5−i−j\binom{5}{i}\binom{5-i}{j}\, i^j \, j^{\,5-i-j} over the valid pairs (all i≥1,i \ge 1, j≥1,j \ge 1, plus the identity case i=5i = 5) gives 20+120+60+5+60+240+80+60+90+20+1=756. \begin{aligned} &20 + 120 + 60 + 5 \\ &\quad {}+ 60 + 240 + 80 \\ &\quad {}+ 60 + 90 + 20 + 1 = 756. \end{aligned}
AoPS wiki

Tagged: function · combinations · casework

More practice