A probability problem by Kislay Raj

How many ways are there to select 3 3 numbers from the first 20 20 positive integers such that no 2 of the selected numbers are consecutive?

136 560 816 1140

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

The number of ways to select three numbers from twenty without regard for order is ( 20 3 ) = 1140 {20 \choose 3} = 1140

The number of ways to choose three numbers from the first positive twenty integers which have exactly two consecutive integers (i.e. explicitly avoiding the case with three consecutive integers to avoid double counting) without regard for order is:

Two Selected Consecutive Integers Third Selection Number of Options
( 1 , 2 ) (1,2) ( 4 , 5 , 6 , . . . 20 ) (4,5,6,...20) 17 17
( 2 , 3 ) (2,3) ( 5 , 6 , 7 , . . . 20 ) (5,6,7,...20) 16 16
( 3 , 4 ) (3,4) ( 1 , 6 , 7 , . . . 20 ) (1,6,7,...20) 16 16

. . . ...

Two Selected Consecutive Integers Third Selection Number of Options
( 18 , 19 ) (18,19) ( 1 , 2 , 3 , . . . 16 ) (1,2,3,...16) 16 16
( 19 , 20 ) (19,20) ( 1 , 2 , 3 , . . . 17 ) (1,2,3,...17) 17 17

17 2 + 16 17 = 306 17*2+16*17=306

The number of ways to choose three numbers from the first positive twenty integers which have exactly three consecutive integers without regard for order is:

( 1 , 2 , 3 ) (1,2,3)

( 2 , 3 , 4 ) (2,3,4)

( 3 , 4 , 5 ) (3,4,5)

. . . ...

( 18 , 19 , 20 ) (18,19,20)

= 18 =18

1140 306 18 = 816 1140-306-18=816

To choose 3 not neighbours of twenty positive integers is the same as dividing the 3 chosen numbers between the 17 other numbers, to prevent them being placed next to each other. Or dividing 3 numbers over 18 places. 18 because left of each number or right from the last one is 17+1. So the answer is 18C3

Marit Grootswagers - 1 year ago
Vaibhav Prasad
Feb 25, 2015

The number of ways to select 3 numbers is ( 20 3 ) = 1140 \left( \begin{matrix} 20 \\ 3 \end{matrix} \right) = 1140

CASE 1 - The 3 3 numbers that have been selected are all consecutive.

Thus we would get _ 18 _ \_18\_ sets of 3 3 consecutive numbers - ( 1 , 2 , 3 ) , ( 2 , 3 , 4 ) , ( 3 , 4 , 5 ) . . . . . . ( 18 , 19 , 20 ) \left( 1,2,3 \right) ,\left( 2,3,4 \right) ,\left( 3,4,5 \right) ......\left( 18,19,20 \right)

CASE 2 - Any 2 2 of the 3 3 numbers are consecutive.

Here

PART 1 - We have the sets ( 1 , 2 , x ) \left( 1,2,x \right) and ( y , 19 , 20 ) \left( y,19,20 \right) x x and y y each can have 17 values (since x x cannot be 3 3 and y y cannot be 18 18 ) Thus we get 17 x 2 = _ 34 _ 17 x 2=\_34\_

PART 2 - We have sets ( x , 2 , 3 , y ) . . . . . . . . . . . . ( a , 18 , 19 , b ) \left( x,2,3,y \right) ............\left( a,18,19,b \right)

( Two variables because either one can make the set a set of 3 3

Here x x and y y cannot have the values 1 1 and 2 2 , so we get 16 16 values for the set . Similarly we have 16 values for all the remaining sets up to ( a , 18 , 19 , b ) \left( a,18,19,b \right) . Thus we get 16 x 18 = _ 288 _ 16 x 18=\_288\_

But, here we have OVER COUNTED #Principle of inclusion and exclusion and need to reduce a _ 16 _ \_16\_

Thus we finally get 1140 18 34 288 + 16 = 816 1140-18-34-288+16=816

Nice way @Vaibhav Prasad

Harsh Shrivastava - 6 years, 3 months ago

Log in to reply

Thanks @Harsh Shrivastava

Vaibhav Prasad - 6 years, 3 months ago

Just did same here.Basic problem on restriction.

D K - 2 years, 10 months ago

There are only 17 sets in the part 2 of second case. You've not overcounted rather made mistake in counting. Please correct!

Shashank Choudhary - 1 year, 1 month ago
Noel Lo
Jun 3, 2015

Let a=1. The smallest possible value for b=3. If b=3, c ranges from 5 to 20 so 16 values. If b=4 then c ranges from 6 to 20 so 15 values and so on and so forth........ The largest value of b=18 and even then c=20 so 1 case.

For a=1, we have 16+15 + ...+1 =16C1 + 15C1 + ...+ 1C1 = 17C2 by Hockey Stick Identity

For a=2, we have 15+14+....+1 = 15C1 + 14C1 + ...+ 1C1 = 16C2. Note that we start with 15 instead of 16 here as since a=2, b must be at least 4 so one less value for c.

For a=3, you can roughly guess we have 14C1+13C1 + ....+1C1 = 15C2.

Do you see a pattern? For subsequent values of a we have nC2 where n decreases by 1 each time.

Total number of cases = 17C2 + 16C2 + 15C2 + 14C2 + ...+3C2 + 2C2 = 18C3 = 816 \boxed{816} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...