Question #62186

A panel is conducting an interview on six candidates of different heights. If they are to put them in line, in how many ways can they arrange them in line such that no three consecutive candidates are in increasing order of height from front to back?

Expert's answer

Answer on Question #62186 – Programming & Computer Science - MatLAB |Mathematica | MathCAD | Maple

A panel is conducting an interview on six candidates of different heights. If they are to put them in line, in how many ways can they arrange them in line such that no three consecutive candidates are in increasing order of height from front to back?

Solution.

Let xnx_n - number of incorrect ranks of length nn. We seek recurrence for xnx_n.

Consider the length of the wrong rank n+1n+1 (n>1n>1). Let ZZ - the highest candidate in the line. It can stand on anywhere from 1 to n+1n+1 (enumerate candidates left to right).

Assume that ZZ stands for (k+1)(k+1)-th place (k=0,1,,nk = 0, 1, \ldots, n); ie, to the left of ZZ are kk candidates (which you can choose CnkC_n^k ways), and the right of ZZ are the remaining nkn-k candidates.

Note that the left of ZZ is the length of the kk rank wrong, but not arbitrary, as such, whose penultimate candidate XX above the last candidate YY (otherwise the candidates XX, YY and ZZ will increase on standing). It is clear that these ranks is half (because of penultimate candidate if higher than last; so we need to take not all xkx_k - only with this condition) the total number of irregular ranks of length kk; therefore, to the left of ZZ can build xk2\frac{x_k}{2} ranks. To this was true for k=0k = 0 and k=1k = 1 (one rank in both cases), we assume x0=x1=2x_0 = x_1 = 2.

Similarly, the right from the wrong ZZ is a row of length nkn - k, but not arbitrary, and this, in which the second candidate above the first. Such ranks will be xnk2\frac{x_{n-k}}{2}.

It remains to note that kk candidates left by ZZ can select CnkC_n^k means (and for each method is uniquely selected nkn - k to the right of candidates ZZ). Thus, if ZZ stands for kk-th position, the number is still incorrect ranks


Cnkxk2xnk2=14Cnkxkxnk.C_n^k \cdot \frac{x_k}{2} \cdot \frac{x_{n-k}}{2} = \frac{1}{4} C_n^k x_k x_{n-k}.


Summing over kk, we find the number of ranks of irregular length n+1n + 1:


xn+1=14k=0nCnkxkxnk(n=1,2,;x0=x1=2).x_{n+1} = \frac{1}{4} \sum_{k=0}^{n} C_n^k x_k x_{n-k} \quad (n = 1, 2, \ldots; x_0 = x_1 = 2).


So, for n=6n=6, there will be incorrect lines:


x6=14k=05C5kxkx5k=14(2x5+10x4+10x2x3+10x3x2+10x4+2x5)==14(4x5+20x4+20x2x3)=x5+5x4+5x2x3x2=14(4+4)=2x3=14(2x2+8+2x2)=14(4+8+4)=4\begin{aligned} x_6 &= \frac{1}{4} \sum_{k=0}^{5} C_5^k x_k x_{5-k} = \frac{1}{4} (2x_5 + 10x_4 + 10x_2 x_3 + 10x_3 x_2 + 10x_4 + 2x_5) = \\ &= \frac{1}{4} (4x_5 + 20x_4 + 20x_2 x_3) = x_5 + 5x_4 + 5x_2 x_3 \\ &\quad x_2 = \frac{1}{4} (4 + 4) = 2 \\ &\quad x_3 = \frac{1}{4} (2x_2 + 8 + 2x_2) = \frac{1}{4} (4 + 8 + 4) = 4 \end{aligned}x4=14(x0x3+3x1x2+3x2x1+x3x0)=14(2x0x3+6x1x2)==14(16+24)=404=10\begin{array}{l} x_{4} = \frac{1}{4} (x_{0} x_{3} + 3 x_{1} x_{2} + 3 x_{2} x_{1} + x_{3} x_{0}) = \frac{1}{4} (2 x_{0} x_{3} + 6 x_{1} x_{2}) = \\ = \frac{1}{4} (16 + 24) = \frac{40}{4} = 10 \\ \end{array}x5=14(x0x4+4x1x3+6x2x2+4x3x1+x4x0)==14(2x0x4+8x1x3+6x22)=14(40+64+24)=1284=32x6=x5+5x4+5x2x3=32+50+40=122\begin{array}{l} x_{5} = \frac{1}{4} (x_{0} x_{4} + 4 x_{1} x_{3} + 6 x_{2} x_{2} + 4 x_{3} x_{1} + x_{4} x_{0}) = \\ = \frac{1}{4} (2 x_{0} x_{4} + 8 x_{1} x_{3} + 6 x_{2}^{2}) = \frac{1}{4} (40 + 64 + 24) = \frac{128}{4} = 32 \\ x_{6} = x_{5} + 5 x_{4} + 5 x_{2} x_{3} = 32 + 50 + 40 = 122 \\ \end{array}


The lines, which are correct for us:


6!x6=720122=598.6! - x_{6} = 720 - 122 = 598.


Answer: 598.

http://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS