3 numbers from the first 2 0 positive integers such that no 2 of the selected numbers are consecutive?
How many ways are there to select
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.
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
The number of ways to select 3 numbers is ( 2 0 3 ) = 1 1 4 0
CASE 1 - The 3 numbers that have been selected are all consecutive.
Thus we would get _ 1 8 _ sets of 3 consecutive numbers - ( 1 , 2 , 3 ) , ( 2 , 3 , 4 ) , ( 3 , 4 , 5 ) . . . . . . ( 1 8 , 1 9 , 2 0 )
CASE 2 - Any 2 of the 3 numbers are consecutive.
Here
PART 1 - We have the sets ( 1 , 2 , x ) and ( y , 1 9 , 2 0 ) x and y each can have 17 values (since x cannot be 3 and y cannot be 1 8 ) Thus we get 1 7 x 2 = _ 3 4 _
PART 2 - We have sets ( x , 2 , 3 , y ) . . . . . . . . . . . . ( a , 1 8 , 1 9 , b )
( Two variables because either one can make the set a set of 3
Here x and y cannot have the values 1 and 2 , so we get 1 6 values for the set . Similarly we have 16 values for all the remaining sets up to ( a , 1 8 , 1 9 , b ) . Thus we get 1 6 x 1 8 = _ 2 8 8 _
But, here we have OVER COUNTED #Principle of inclusion and exclusion and need to reduce a _ 1 6 _
Thus we finally get 1 1 4 0 − 1 8 − 3 4 − 2 8 8 + 1 6 = 8 1 6
Nice way @Vaibhav Prasad
Just did same here.Basic problem on restriction.
There are only 17 sets in the part 2 of second case. You've not overcounted rather made mistake in counting. Please correct!
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 = 8 1 6 .
Problem Loading...
Note Loading...
Set Loading...
The number of ways to select three numbers from twenty without regard for order is ( 3 2 0 ) = 1 1 4 0
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:
. . .
1 7 ∗ 2 + 1 6 ∗ 1 7 = 3 0 6
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 )
( 2 , 3 , 4 )
( 3 , 4 , 5 )
. . .
( 1 8 , 1 9 , 2 0 )
= 1 8
1 1 4 0 − 3 0 6 − 1 8 = 8 1 6