Olympiad Maths Prep

Track / Stage 5 / 178 of 400 #778 of 2000

Problem 778

AIME late
Combinatorics Difficulty 5.4 Find the answer

Example 4.23 Make all permutations of 5 distinct elements a1,a2,a3,a4,a5a_{1}, a_{2}, a_{3}, a_{4}, a_{5}, where a1a_{1} is not in the 1st or 2nd position, a2a_{2} is not in the 2nd or 3rd position, a3a_{3} is not in the 5th position, a4a_{4} is not in the 4th or 5th position, and a5a_{5} is not in the 3rd or 4th position. How many different permutations can be made?

Official solution

Solution: This is a permutation problem with restrictions, and the corresponding 5×55 \times 5 chessboard R5R_{5} with forbidden cells is shown in Figure 4.5. The rook polynomial of the forbidden cell chessboard CC of R5R_{5} is
=t(××)(××××)+(×××)(×××××)=t(1+2t)(1+4t+3t2)+(1+3t+t2)(1+5t+6t2+t3)=(t+6t2+11t3+6t4)+(1+8t+22t2+24t3+9t4+t5)=1+9t+28t2+35t3+15t4+t5 \begin{array}{l} =t \cdot(\times \times) \cdot\left(\begin{array}{cc} & \times \\ \times & \times \\ \times & \end{array}\right)+\left(\begin{array}{ll} \times & \times \\ & \times \end{array}\right) \cdot\left(\begin{array}{ll} \times \\ \times & \times \\ \times & \times \end{array}\right) \\ =t(1+2 t)\left(1+4 t+3 t^{2}\right)+ \\ \left(1+3 t+t^{2}\right)\left(1+5 t+6 t^{2}+t^{3}\right) \\ =\left(t+6 t^{2}+11 t^{3}+6 t^{4}\right)+ \\ \left(1+8 t+22 t^{2}+24 t^{3}+9 t^{4}+t^{5}\right) \\ =1+9 t+28 t^{2}+35 t^{3}+15 t^{4}+t^{5} \text {, } \\ \end{array}

Therefore, the hit polynomial of R5R_{5} is
E(t)=5!+94!(t1)+283!(t1)2+352!(t1)3+15(t1)4+(t1)5, \begin{aligned} E(t)= & 5!+9 \cdot 4!(t-1)+28 \cdot 3!(t-1)^{2}+ \\ & 35 \cdot 2!(t-1)^{3}+15(t-1)^{4}+(t-1)^{5}, \end{aligned}

Thus, the number of all permutations is
N=E(0)=5!94!+283!352!+151=120216+16870+151=16. \begin{aligned} N & =E(0) \\ & =5!-9 \cdot 4!+28 \cdot 3!-35 \cdot 2!+15-1 \\ & =120-216+168-70+15-1 \\ & =16 . \end{aligned}

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.