2018 AIME II Problem 10

Below is the professionally curated solution for Problem 10 of the 2018 AIME II, 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 of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:functioncombinationscasework

Difficulty rating: 3060

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

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.20 + 120 + 60 + 5 + 60 + 240 + 80 + 60 + 90 + 20 + 1 = 756.

← Problem 9Full ExamProblem 11

Problem 10 in Other Years