2018 AIME II Problem 10

Attempt Problem 10 of the 2018 AIME II below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2018 AIME II solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

10.

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\}.

Answer: 756
Concepts:functioncombinationscasework
Difficulty rating: 3060
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 5ij5 - 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, (5ij)\binom{5-i}{j} choices of the middle level, iji^j maps from the middle level to the fixed points, and j5ijj^{\,5-i-j} maps for the rest. Summing (5i)(5ij)ijj5ij\binom{5}{i}\binom{5-i}{j}\, i^j \, j^{\,5-i-j} over the valid pairs (all i1,i \ge 1, j1,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}

← Problem 9#9
Full Exam

Problem 10 in Other Years