Solution
Understanding the set :-
- It says, there are 25 beads to be arranged in a grid comprising of five rows and five columns.
- Each bead is coloured either Red, Blue or Green.
- we need to arrange the beads according to the rules given :
a) Two adjacent beads are always of different colour
b) There is at least one Green bead between any two Blue beads
c) There is at least one Blue and at least one Green bead between any two Red beads
This set gives information about 25 beads, which we need to arrange in a grid of 5 rows and 5 columns,
so there will be n different configurations we can make of these 25 beads arrangement.
Therefore, this is a question based set,
which we need to solve according to the question's demand.
Question says,
minimum number of Blue beads in any configuration.
Procedure to solve this question will be exactly like the previous one.
We need to include a minimum number of Bs in the grid,
meaning, ideally we should include only 1 B per row. Let's attempt to do that.
Before we begin, what seems to be clear from the grid so far is that,
if we are trying to maximize any colour, it is possible only if we move through the main diagonal.
Clearly since that is not what we are trying to achieve for Blues, we should make sure that in the initial arrangement, Blue is not present in the middle cell / along the main diagonal
But while filling only 1 colour, we always move through the diagonal of the starting point. An initial arrangement might look like this:
| Blue | ||||
| Blue | ||||
| Blue | Blue | |||
| Blue | ||||
| Blue |
Now let's try to fill in colours and see what is feasible.
While doing so, we need to keep in mind that since we are minimizing Blue, it automatically means we are trying to maximize Red and Green.
Which means that along the main diagonal should be beads with either Red or Green.
So the only feasible solution is:
| RED | GREEN | BLUE | RED | GREEN |
| GREEN | RED | GREEN | BLUE | RED |
| BLUE | GREEN | RED | GREEN | BLUE |
| RED | BLUE | GREEN | RED | GREEN |
| GREEN | RED | BLUE | GREEN | RED |
So we can see that there are 6 Blue colored beads in the above arrangement.