Solveeit Logo

Question

Question: No. Of ways to select 5 people out of 12 people such that no two are consecutive...

No. Of ways to select 5 people out of 12 people such that no two are consecutive

Answer

56

Explanation

Solution

To select 5 people out of 12 such that no two are consecutive, we can use a standard combinatorial technique.

Let the 12 people be arranged in a row. Let n=12n=12 be the total number of people and k=5k=5 be the number of people to be selected.

Method 1: Using the transformation technique

Let the positions of the 5 selected people be x1,x2,x3,x4,x5x_1, x_2, x_3, x_4, x_5, such that 1x1<x2<x3<x4<x5121 \le x_1 < x_2 < x_3 < x_4 < x_5 \le 12. The condition that no two people are consecutive means that the difference between the positions of any two selected people must be at least 2. So, xi+1xi2x_{i+1} - x_i \ge 2 for i=1,2,3,4i=1, 2, 3, 4.

Let's define a new set of variables yiy_i:

y1=x1y_1 = x_1

y2=x21y_2 = x_2 - 1

y3=x32y_3 = x_3 - 2

y4=x43y_4 = x_4 - 3

y5=x54y_5 = x_5 - 4

Now, let's check the conditions for yiy_i:

  1. y11y_1 \ge 1 (since x11x_1 \ge 1)
  2. y2=x21(x1+2)1=x1+1=y1+1y_2 = x_2 - 1 \ge (x_1 + 2) - 1 = x_1 + 1 = y_1 + 1. So, y2>y1y_2 > y_1.
  3. Similarly, y3>y2y_3 > y_2, y4>y3y_4 > y_3, and y5>y4y_5 > y_4.

So, we have 1y1<y2<y3<y4<y51 \le y_1 < y_2 < y_3 < y_4 < y_5.

What is the upper bound for y5y_5?

y5=x54124=8y_5 = x_5 - 4 \le 12 - 4 = 8.

Thus, we need to choose 5 distinct numbers (y1,y2,y3,y4,y5y_1, y_2, y_3, y_4, y_5) from the set {1,2,3,4,5,6,7,8}\{1, 2, 3, 4, 5, 6, 7, 8\}. The number of ways to do this is given by the combination formula (mk)\binom{m}{k}, where mm is the total number of available choices (8 in this case) and kk is the number of items to choose (5 in this case).

Number of ways = (85)\binom{8}{5}

Method 2: Using the gaps method

Imagine the nkn-k unselected people are placed first. Number of unselected people = 125=712 - 5 = 7. Let's represent the unselected people by 'U':

U U U U U U U

These 7 unselected people create 7+1=87+1=8 possible positions (gaps) where the 5 selected people can be placed.

_ U _ U _ U _ U _ U _ U _ U _

To ensure no two selected people are consecutive, each selected person must be placed in a different gap. We need to choose 5 of these 8 available gaps for the 5 selected people.

The number of ways to choose 5 gaps out of 8 is (85)\binom{8}{5}.

Calculation:

(85)=(885)=(83)\binom{8}{5} = \binom{8}{8-5} = \binom{8}{3}

(83)=8×7×63×2×1=3366=56\binom{8}{3} = \frac{8 \times 7 \times 6}{3 \times 2 \times 1} = \frac{336}{6} = 56

So, there are 56 ways to select 5 people out of 12 such that no two are consecutive.

General Formula:

For selecting kk items from nn items arranged in a row such that no two are consecutive, the number of ways is (nk+1k)\binom{n-k+1}{k}.

In this problem, n=12n=12 and k=5k=5.

Number of ways = (125+15)=(85)=56\binom{12-5+1}{5} = \binom{8}{5} = 56.

Explanation of the solution:

To select kk people from nn arranged in a row such that no two are consecutive, imagine placing the nkn-k unselected people first. These nkn-k people create nk+1n-k+1 possible slots where the kk selected people can be placed. Since no two selected people can be consecutive, each selected person must occupy a unique slot. Thus, the problem reduces to choosing kk slots out of nk+1n-k+1 available slots. For n=12n=12 and k=5k=5, this is (125+15)=(85)=56\binom{12-5+1}{5} = \binom{8}{5} = 56.