MBADream786
Seven boxes numbered 1 to 7 are arranged in a row.Each is to be filled by either a black or blue colored ball such that no two adjacent boxes contain blue colored balls.In how many ways can the boxes be filled with the balls?
A.23
B.33
C.34
D.32
E.24
As there is a restriction on the placement of Blue balls, let us concentrate on the ways to pick blue balls in different circumstances.
Let us denote blue by B and black by X.
Case I : 0 blue balls,
So 7 Xs and 0B
_X_X_X_X_X_X_X_
The 0 blue ball can be placed in any of the gaps shown by _, => 8C0=1
Case II : 1 blue ball
So 6 Xs and 1B
_X_X_X_X_X_X_
The 1 blue ball can be placed in any of the gaps shown by _, => 7C1=7
Case III : 2 blue ball
So 5 Xs and 2 Bs
_X_X_X_X_X_
The 2 blue ball can be placed in any of the gaps shown by _, => 6C2=15
Case IV : 3 blue ball
So 4 Xs and 3 Bs
_X_X_X_X_
The 3 blue ball can be placed in any of the gaps shown by _, => 5C3=10
Case V : 4 blue ball
So 3 Xs and 4 Bs
_X_X_X_
The 4 blue ball can be placed in any of the gaps shown by _, => 4C4=1
Beyong this, the number of blue balls will be more than the gaps available so 0 ways.
Total = \(1+7+15+10+1=34\)
C