Question

In: Computer Science

Suppose there are unlimited number of Red, Green, and Blue balls, You want to select n...

Suppose there are unlimited number of Red, Green, and Blue balls, You want to select

n balls and the orders matter. The selected balls must meet the following rule: Two adjacent balls must not be both Red or both Blue. How many options do you have when n is 4?

Solutions

Expert Solution

For simple understanding let's divide question into two conditions.condition 1: selecting n balls out of unlimited number of Red,Green,Blue balls

Condition 2:order should be no two reds or two blue balls are adjacent.

Formula (n+r−1)C(r-1​);This means you have to distribute n things among r people where anyone can get any number of things.

This formula is also used to solve algebraic permutation

X+Y+Z=n ; n≥0

Then number of solution of this equation is also given by the same formula.

So here we have 3 types of ball Red(R) ,Blue(B) and Green(G).

From this we have to select 4 balls. i.e total which we are going to pick should be equal to 4.

R+B+G=4

Number of ways of doing this is (4+3−1)C(3−1​)=6C2
=15

4,5,6,7,8,9,12,13,14 are 9 types of selecting balls .Now we need to check each type with arranging ways

Example

Choosing 2R and 2B

RBRB ,BRBR -2 ways

Like this if we check four balls with 2G2B ,2G2R ....,4G we get 25 ways of arranging four balls of 3different colors such that no two red or two blue balls were adjacent

Therefore arranging four balls such that no two red and two blue balls adjacent is 25 ways


Related Solutions

An urn contains colored balls;5 red balls, 8 green balls, and 10 blue balls. Suppose ...
An urn contains colored balls;5 red balls, 8 green balls, and 10 blue balls. Suppose  If the 3 balls are drawn one after another without replacement, what is the probability that the colors observed will be Red, Green, Blue in this order?  If the three balls are drawn simultaneously from the urn (without replacement), what is the probability that the selected balls will be all different?
An urn contains 4 green balls, five blue balls, and seven red balls. You remove five...
An urn contains 4 green balls, five blue balls, and seven red balls. You remove five balls at random without replacement. Let X be the random variable that counts the number of green balls in your sample. a) Find the probability mass function p(x) describing the distribution of X. b) Find the mean and variance of X
A box contains 8 red balls, 4 green balls, and 3 blue balls. You pull 2...
A box contains 8 red balls, 4 green balls, and 3 blue balls. You pull 2 balls from the box (one at a time) WITHOUT replacement. **LEAVE ALL ANSWERS AS FRACTIONS** Find the probability of the following: a.) P(Red on 1st ball AND Red on 2nd ball) = b.) P(Green on 1st ball AND Red on 2nd ball) = c.) P(Blue on 1st ball AND Green on 2nd ball) = d.) What is the probability of drawing 2 green balls...
3 red balls, 4 blue balls, and 3 green balls are randomly placed in a line....
3 red balls, 4 blue balls, and 3 green balls are randomly placed in a line. What is the probability that there is at least one red and at least one blue between each pair of green balls?
We have a bag that contains n red balls and n blue balls. At each of...
We have a bag that contains n red balls and n blue balls. At each of 2n rounds we remove one of the balls from the bag randomly, and place it in one of available n bins. At each round, each one of the balls that remain in the bag is equally likely to be picked, as is each of the bins, independent of the results of previous rounds. Let Nk be the number of balls in the k-th bin...
There are 10 identical red balls, 10 identical blue balls, 10 identical green balls and 2...
There are 10 identical red balls, 10 identical blue balls, 10 identical green balls and 2 distinct boxes. How many ways to place all the 30 balls in the two boxes such that each box contains 15 balls?
For an urn containing 4 red balls and 6 green balls, let the number of balls...
For an urn containing 4 red balls and 6 green balls, let the number of balls randomly drawn be the number of heads turning up when 5 fair coins have been previously flipped. What is the probability of drawing 3 green balls?
Question 10 :A jar contains 2 red balls, 2 blue balls, 2 green balls, and 3orange...
Question 10 :A jar contains 2 red balls, 2 blue balls, 2 green balls, and 3orange balls. Balls are randomly selected, without replacement,until 2 of the same colour are obtained. Calculate the probability thatmore than 3 balls must be selected
There are three types of balls in a box: 5 red, 3 blue and 2 green....
There are three types of balls in a box: 5 red, 3 blue and 2 green. You draw 3 balls at once (without replacement) from this box and record: Y1=the # of red balls, Y2=the # of blue balls that you drew. Find the joint probability distribution of Y1, Y2, by first writing the possible values for y1, y2 in rows and columns and then filling in the probabilities within this table. Then check that the sum of the entries...
Assume that a bag initially contains 6 balls: 2 red, 2 green and 2 blue balls....
Assume that a bag initially contains 6 balls: 2 red, 2 green and 2 blue balls. At each step, you choose a ball from the bag at random, note its color, but do not put it back into the bag. Instead, you add to the bag two balls, which are of of two different colors, and different in color from the color of the removed ball. (For example, if you choose a red ball in the first step, then after...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT