返回题库

AIME 2018 II · 第 10 题

AIME 2018 II — Problem 10

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

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 1

Just to visualize solution 1. If we list all possible (x,f(x))(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} in a specific order, we get 55=255 \cdot 5 = 25 different (x,f(x))(x,f(x)) 's. Namely:

(1,1)(1,2)(1,3)(1,4)(1,5)(1,1) (1,2) (1,3) (1,4) (1,5) (2,1)(2,2)(2,3)(2,4)(2,5)(2,1) (2,2) (2,3) (2,4) (2,5) (3,1)(3,2)(3,3)(3,4)(3,5)(3,1) (3,2) (3,3) (3,4) (3,5) (4,1)(4,2)(4,3)(4,4)(4,5)(4,1) (4,2) (4,3) (4,4) (4,5) (5,1)(5,2)(5,3)(5,4)(5,5)(5,1) (5,2) (5,3) (5,4) (5,5) To list them in this specific order makes it a lot easier to solve this problem. We notice, In order to solve this problem at least one pair of (x,x)(x,x) where x1,2,3,4,5x\in{1,2,3,4,5} must exist.In this case I rather "go backwards". First fixing 55 pairs (x,x)(x,x), (the diagonal of our table) and map them to the other fitting pairs (x,f(x))(x,f(x)). You can do this in 5!5!=1\frac{5!}{5!} = 1 way. Then fixing 44 pairs (x,x)(x,x) (The diagonal minus 11) and map them to the other fitting pairs (x,f(x))(x,f(x)). You can do this in 45!4!=204\cdot\frac{5!}{4!} = 20 ways. Then fixing 33 pairs (x,x)(x,x) (The diagonal minus 22) and map them to the other fitting pairs (x,f(x))(x,f(x)). You can do this in (54363)3!2!+(54361)3!=150\tfrac{(5\cdot4\cdot3\cdot6\cdot3)}{3!2!} + \tfrac{(5\cdot4\cdot3\cdot6\cdot1)}{3!} = 150 ways. Fixing 22 pairs (x,x)(x,x) (the diagonal minus 33) and map them to the other fitting pairs (x,f(x))(x,f(x)). You can do this in (54642)2!3!+(54642)2!2!+(54621)2!2!=380\frac{(5\cdot4\cdot6\cdot4\cdot2)}{2!3!} + \frac{(5\cdot4\cdot6\cdot4\cdot2)}{2!2!} + \frac{(5\cdot4\cdot6\cdot2\cdot1)}{2!2!} = 380 ways. Lastly, fixing 11 pair (x,x)(x,x) (the diagonal minus 44) and map them to the other fitting pairs (x,f(x))(x,f(x)). You can do this in 5!4!+45!3!+5!=205\tfrac{5!}{4!} + 4\cdot\tfrac{5!}{3!} + 5! = 205 ways.

So 1+20+150+380+205=7561 + 20 + 150 + 380 + 205 = \boxed{756}

Solution 2

We perform casework on the number of fixed points (the number of points where f(x)=xf(x) = x). There must be at least one fixed point, given f(f(x))f(f(x)) has some value and is a fixed point. To better visualize this, use the grid from Solution 1.

Case 1: 5 fixed points

- Obviously, there must be 11 way to do so.

Case 2: 4 fixed points

- (54)\binom 54 ways to choose the 44 fixed points. For the sake of conversation, let them be (1,1),(2,2),(3,3),(4,4)(1, 1), (2, 2), (3, 3), (4, 4).

- The last point must be (5,1),(5,2),(5,3),(5, 1), (5, 2), (5, 3), or (5,4)(5, 4).

- There are (54)4=20\binom 54 \cdot 4 = 20 solutions for this case.

Case 3: 3 fixed points

- (53)\binom 53 ways to choose the 33 fixed points. For the sake of conversation, let them be (1,1),(2,2),(3,3)(1, 1), (2, 2), (3, 3).

- Subcase 3.1: None of 44 or 55 map to each other

- The points must be (4,1),(4,2),(4,3)(4, 1), (4, 2), (4, 3) and (5,1),(5,2),(5,3)(5, 1), (5, 2), (5, 3), giving 33=93 \cdot 3 = 9 solutions.

- Subcase 3.2: 44 maps to 55 or 55 maps to 44

- The points must be (4,5)(4, 5) and (5,1),(5,2),(5,3)(5, 1), (5, 2), (5, 3) or (5,4)(5, 4) and (4,1),(4,2),(4,3)(4, 1), (4, 2), (4, 3), giving 3+3=63+3 = 6 solutions.

- There are (53)(9+6)=150\binom 53 \cdot (9+6) = 150 solutions for this case.

Case 4: 2 fixed points

- (52)\binom 52 ways to choose the 22 fixed points. For the sake of conversation, let them be (1,1),(2,2)(1, 1), (2, 2).

- Subcase 4.1: None of 33, 44, or 55 map to each other

- There are 222=82 \cdot 2 \cdot 2 = 8 solutions for this case, by similar logic to Subcase 3.1.

- Subcase 4.2: exactly one of 3,4,53, 4, 5 maps to another.

- Example: (3,4),(4,1),(5,2)(3, 4), (4, 1), (5, 2)

- (32)2!=6\binom 32 \cdot 2! = 6 ways to choose the 2 which map to each other, and 222\cdot 2 ways to choose which ones of 11 and 22 they map to, giving 2424 solutions for this case.

- Subcase 4.3: two of 3,4,53, 4, 5 map to the third

- Example: (3,5),(4,5),(5,2)(3, 5), (4, 5), (5, 2)

- (31)\binom 31 ways to choose which point is being mapped to, and 22 ways to choose which one of 11 and 22 it maps to, giving 66 solutions for this case.

- There are (52)(8+24+6)=380\binom 52 \cdot (8+24+6) = 380 solutions.

Case 5: 1 fixed point

- (51)\binom 51 ways to choose the fixed point. For the sake of conversation, let it be (1,1)(1, 1).

- Subcase 5.1: None of 2,3,4,52, 3, 4, 5 map to each other

- Obviously, there is 14=11^4 = 1 solution to this; all of them map to 11.

- Subcase 5.2: One maps to another, and the other two map to 11.

- Example: (2,3),(3,1),(4,1),(5,1)(2, 3), (3, 1), (4, 1), (5, 1)

- There are (42)2!\binom 42 \cdot 2! ways to choose which two map to each other, and since each must map to 11, this gives 1212.

- Subcase 5.3: One maps to another, and of the other two, one maps to the other as well.

- Example: (2,3),(3,1),(5,4),(4,1)(2, 3), (3, 1), (5, 4), (4, 1)

- There are (42)2!2!/2!\binom 42 \cdot 2! \cdot 2! / 2! ways to choose which ones map to another. This also gives 1212.

- Subcase 5.4: 2 map to a third, and the fourth maps to 11.

- Example: (4,2),(5,2),(2,1),(3,1)(4, 2), (5, 2), (2, 1), (3, 1)

- There are (42)(21)=12\binom 42 \cdot \binom 21 = 12 ways again.

- Subcase 5.5: 3 map to the fourth.

- Example: (2,4),(3,4),(5,4),(4,1)(2, 4), (3, 4), (5, 4), (4, 1)

- There are (41)\binom 41 ways to choose which one is being mapped to, giving 44 solutions.

- There are (51)(1+12+12+12+4)=205\binom 51 \cdot (1+12+12+12+4) = 205 solutions.

Therefore, the answer is 1+20+150+380+205=7561+20+150+380+205 = \boxed{756}

~First

Solution 3

We can do some caseworks about the special points of functions ff for x{1,2,3,4,5}x\in\{1,2,3,4,5\}. Let xx, yy and zz be three different elements in set {1,2,3,4,5}\{1,2,3,4,5\}. There must be elements such like kk in set {1,2,3,4,5}\{1,2,3,4,5\} satisfies f(k)=kf(k)=k, and we call the points such like (k,k)(k,k) on functions ff are "Good Points" (Actually its academic name is "fixed-points"). The only thing we need to consider is the "steps" to get "Good Points". Notice that the "steps" must less than 33 because the highest iterations of function ff is 33. Now we can classify 33 cases of “Good points” of ff.

Case 1:\textbf{Case 1:} One "step" to "Good Points": Assume that f(x)=xf(x)=x, then we get f(f(x))=f(x)=xf(f(x))=f(x)=x, and f(f(f(x)))=f(f(x))=f(x)=xf(f(f(x)))=f(f(x))=f(x)=x, so f(f(f(x)))=f(f(x))f(f(f(x)))=f(f(x)).

Case 2:\textbf{Case 2:} Two "steps" to "Good Points": Assume that f(x)=yf(x)=y and f(y)=yf(y)=y, then we get f(f(x))=f(y)=yf(f(x))=f(y)=y, and f(f(f(x)))=f(f(y))=f(y)=yf(f(f(x)))=f(f(y))=f(y)=y, so f(f(f(x)))=f(f(x))f(f(f(x)))=f(f(x)).

Case 3:\textbf{Case 3:} Three "steps" to "Good Points": Assume that f(x)=yf(x)=y, f(y)=zf(y)=z and f(z)=zf(z)=z, then we get f(f(x))=f(y)=zf(f(x))=f(y)=z, and f(f(f(x)))=f(f(y))=f(z)=zf(f(f(x)))=f(f(y))=f(z)=z, so f(f(f(x)))=f(f(x))f(f(f(x)))=f(f(x)).

Divide set {1,2,3,4,5}\{1,2,3,4,5\} into three parts which satisfy these three cases, respectively. Let the first part has aa elements, the second part has bb elements and the third part has cc elements, it is easy to see that a+b+c=5a+b+c=5. First, there are (5a)\binom{5}{a} ways to select xx for Case 1. Second, we have (5ab)\binom{5-a}{b} ways to select xx for Case 2. After that we map all elements that satisfy Case 2 to Case 1, and the total number of ways of this operation is aba^b. Finally, we map all the elements that satisfy Case 3 to Case 2, and the total number of ways of this operation is bcb^c. As a result, the number of such functions ff can be represented in an algebraic expression contains aa, bb and cc: (5a)(5ab)abbc\boxed{\binom{5}{a}\cdot \binom{5-a}{b}\cdot a^b\cdot b^c}

Now it's time to consider about the different values of aa, bb and cc and the total number of functions ff satisfy these values of aa, bb and cc:

For a=5a=5, b=0b=0 and c=0c=0, the number of ffs is (55)=1\binom{5}{5}=1

For a=4a=4, b=1b=1 and c=0c=0, the number of ffs is (54)(11)4110=20\binom{5}{4}\cdot \binom{1}{1}\cdot 4^1\cdot 1^0=20

For a=3a=3, b=1b=1 and c=1c=1, the number of ffs is (53)(21)3111=60\binom{5}{3}\cdot \binom{2}{1}\cdot 3^1\cdot 1^1=60

For a=3a=3, b=2b=2 and c=0c=0, the number of ffs is (53)(22)3220=90\binom{5}{3}\cdot \binom{2}{2}\cdot 3^2\cdot 2^0=90

For a=2a=2, b=1b=1 and c=2c=2, the number of ffs is (52)(31)2112=60\binom{5}{2}\cdot \binom{3}{1}\cdot 2^1\cdot 1^2=60

For a=2a=2, b=2b=2 and c=1c=1, the number of ffs is (52)(32)2221=240\binom{5}{2}\cdot \binom{3}{2}\cdot 2^2\cdot 2^1=240

For a=2a=2, b=3b=3 and c=0c=0, the number of ffs is (52)(33)2330=80\binom{5}{2}\cdot \binom{3}{3}\cdot 2^3\cdot 3^0=80

For a=1a=1, b=1b=1 and c=3c=3, the number of ffs is (51)(41)1113=20\binom{5}{1}\cdot \binom{4}{1}\cdot 1^1\cdot 1^3=20

For a=1a=1, b=2b=2 and c=2c=2, the number of ffs is (51)(42)1222=120\binom{5}{1}\cdot \binom{4}{2}\cdot 1^2\cdot 2^2=120

For a=1a=1, b=3b=3 and c=1c=1, the number of ffs is (51)(43)1331=60\binom{5}{1}\cdot \binom{4}{3}\cdot 1^3\cdot 3^1=60

For a=1a=1, b=4b=4 and c=0c=0, the number of ffs is (51)(44)1440=5\binom{5}{1}\cdot \binom{4}{4}\cdot 1^4\cdot 4^0=5

Finally, we get the total number of function ff, the number is 1+20+60+90+60+240+80+20+120+60+5=7561+20+60+90+60+240+80+20+120+60+5=\boxed{756}

~Solution by BladeRunnerAUGBladeRunnerAUG (Frank FYC)

Note (fun fact)

This exact problem showed up earlier on the 2011 Stanford Math Tournament, Advanced Topics Test. This problem also showed up on the 2010 Mock AIME 2 here: https://artofproblemsolving.com/wiki/index.php/Mock_AIME_2_2010_Problems