edited by
1,346 views
3 votes
3 votes

 

There are $6$ boxes numbered $1, 2, \dots\dots,6$. Each box is to be filled up either with a red or a green ball in such a way that at least $1$ box contains a green ball and the boxes containing green balls are consecutively numbered. The total number of ways in which this can be done is :

  1. $18$
  2. $19$
  3. $20$
  4. $21$
edited by

4 Answers

1 votes
1 votes

At least one box has green ball 

so green ball in 1, or 12 , 123 or 1234 or 12345 , 123456  total =6 cases 

                  or in  2 , 23 or    234 or 2345 , 23456               total =5 cases   

                  or in  3 , 34 or    345 or 3456                            total =4 cases

                  or in  4 , 45 or    456                                         total =3 cases

                  or in 5, 56   total 2 cases                          or  in 6 only   total 1 case 

so total no of ways = 6+5+4+3+2+1=21 option D

1 votes
1 votes
  • If one green bail in a box, then the number of ways $= 6\:(1$ box has the green ball can be any of the $6$ boxes.$)$
  • If two green balls in a box, then the number of ways $= 5 \:(2$ boxes have green balls The boxes may be numbered as $12, 23, 34, 45, 56)$
  • If three green balls in a box, then the number of ways $= 4\:(3$ boxes $123, 234, 345, 456)$
  • If four green balls in a box, then the number of ways $= 3\:(4$ boxes $1234,2345,3456)$
  • lf five green balls in a box, then the number of ways $= 2\:(5$ boxes $12345,23456 )$
  • If six green balls in a box, then the number of ways $= 1\:(6$ boxes $123456)$


$\therefore$ Total number of ways $= 6 + 5 + 4 + 3 + 2 + 1 = 21.$

So, the correct answer is $(D).$

1 votes
1 votes
One can see how beautiful recursion is

G  -----(1)

G GG ---(2)

G GG GGG --- (3)

AND SO ON TILL

G GG … GGGGGG

F(G) = F(G-1) + 1

HERE F(1) = 1 AND WE ARE ASKED WHAT IS F(6)

SOLUTION TO THIS IS SUM OF FIRST N NATURAL NUMBERS

WHICH IS N(N+1)/2
edited by
0 votes
0 votes

correct ans :D  6+5+4+3+2+1=21 

Answer:

Related questions

2 votes
2 votes
2 answers
1
gatecse asked Dec 9, 2020
694 views
Number of letter repeated in the given word $’MEASUREMENTS’$ are indicated in front of each alternative. Identify the correct alternative.$M_2E_2A_2S_2U_1R_1N_1T_1$$M...
2 votes
2 votes
1 answer
2
gatecse asked Dec 9, 2020
699 views
If $09/12/2001(DD/MM/YYYY)$ happens to be Sunday, then $09/12/1971$ would have been a:WednesdayTuesdaySaturdayThursday
2 votes
2 votes
2 answers
3
gatecse asked Dec 9, 2020
751 views
If a cube with length, height and width equal to $10\; cm$, is reduced to a smaller cube of height, length and width of $9\; cm$ then reduction in volume is :$172\;cm^3$$...