Have you tried this question? If not then do not see the answer, instead, first, try this beautiful problem and understand why 20×(20−3)×(20−3−3) can't be the correct answer? This is not the correct answer as choosing the third person will depend on the sitting position of the second person. This indicates that we have to divide our answer into two parts depending on the seating position of the second person.
Let us assume P1 , P2, and P3 are chosen tree person. Note that for the first person P1 we can choose any one of them and so for P1 we have total 20 choices. Now there are two way we can choose our second person P2.
- P2 sits just 1 seat away from P1. In this case we will have only 2 options.
- P2 sits more than 1 seat way from P1. In this case we can choose P2 in 20−5=15 ways.
Now depending on the seating position of P2 we can choose our third-person P3:
- If P2 sits just 1 seat away from P1 then P1 and P2 has a common neighbours. Therefore, P3 can't be P1, P2 and their neighbours. So for P3 we have 20−2−3=15 choices.
- If P2 sits more than 1 seat way from P1. In this case P3 can' be P1 or P2 or their immediate neighbours. So we can choose P3 in 20−2−2×2=14 ways.
By applying the rule of sum and product, we get the total number of choices athat re
(20×2×15)+(20×15×14)
Is the above answer is correct? No. because we are overcounting as our counts depend choice on people three-person on the order of choosing of the three person. That is we are counting the permutation without repetition. Therefore, a number of choices are (20×2×15)+(20×15×14)3=800.