• edited by
1,249 views
0 0 votes

There are $6$ boxes numbered $1, 2, \dots,6.$ Each box is to be filled up with a red or green ball in such a way that at least one 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. $5$
  2. $21$
  3. $33$
  4. $60$

1 Answer

0 0 votes

The problem requires us to find the number of ways to fill 6 boxes with red or green balls, subject to two conditions:

  1. There is at least one green ball.
  2. All boxes with green balls are consecutively numbered.

This is equivalent to choosing a contiguous block of boxes to fill with green balls, with the rest being filled with red balls. We can solve this by considering the size of this block of green balls.

Let the number of green balls be $k$. Since there is at least one green ball, $k$ can range from 1 to 6.

Case 1: Number of green balls = 1
The single green ball can be placed in any of the 6 boxes.
Number of ways = 6.

Case 2: Number of green balls = 2
The two green balls must be in consecutive boxes. The possible consecutive pairs are (1,2), (2,3), (3,4), (4,5), (5,6).
Number of ways = 5.

Case 3: Number of green balls = 3
The three green balls must be in consecutive boxes. The possible starting positions for this block of 3 are 1, 2, 3, 4.
Number of ways = 4.

Case 4: Number of green balls = 4
The block of 4 green balls can start at position 1, 2, or 3.
Number of ways = 3.

Case 5: Number of green balls = 5
The block of 5 green balls can start at position 1 or 2.
Number of ways = 2.

Case 6: Number of green balls = 6
There is only one way: all 6 boxes contain green balls.
Number of ways = 1.

The total number of ways is the sum of the ways for each case.
Total ways = $6 + 5 + 4 + 3 + 2 + 1 = 21$.

ago
Position:
Show:
Answer:

Related questions

0 0 votes
1 1 answer
1.4k
1.4k views
go_editor asked Feb 8, 2016
1,429 views
How many three digit positive integers, with digits $x, y$ and $z$ in the hundred's, ten's and unit's place respectively, exist such that $x < y, z < y$ and $x \neq 0?$$2...
0 0 votes
1 1 answer
1.6k
1.6k views
go_editor asked Feb 7, 2016
1,610 views
$27$ persons attend a party. Which one of the following statements can never be true?There is a person in the party who is acquainted with all the $26$ members.Each perso...
0 0 votes
1 answers 1 answer
5.7k
5.7k views
go_editor asked May 3, 2016
5,683 views
Answer the question on the basis of the information given below:A certain perfume is available at a duty-free shop at the Bangkok international airport. It is priced in t...
0 0 votes
2 2 answers
1.8k
1.8k views
go_editor asked May 3, 2016
1,845 views
New Age Consultants have three consultants Gyani, Medha and Buddhi. The sum of the number of projects handled by Gyani and Buddhi individually is equal to the number of p...
0 0 votes
1 1 answer
1.8k
1.8k views
go_editor asked May 3, 2016
1,838 views
Answer the question on the basis of the information given below:A city has two perfectly circular and concentric ring roads, the outer ring road (OR) being twice as long ...

Add Synced Question

×