Okie. Here goes...(adsbygoogle = window.adsbygoogle || []).push({});

Let's say you have B bags of marbles B1, B2,...Bb (all marbles are unique);

The number of marbles in each bag varies. B1 has n1 marbles, B2 has n2 marbles, etc.

You want to to create a sequences of B marbles

{marble1, marble2,....marbleb}, where marble1 came from B1, marble2 from B2, etc.

The total number of permutations is n1*n2*....nb.

But...suppose you now only allow m marbles in each permutation to be duplicated.

//////////////////Questionow many permutations are there now?//////////////////////

Ex: You have 3 bags of marbles.

B1 {red,green,blue}, n1 = 3;

B2 {white,black}, n2 = 2;

B3 {silver,gold}, n3 = 2;

I will only allow 1 marble to be duplicated, so

{red,white,silver}

{red,black,gold}

{green,white,gold}

{green,black,silver}

Can't use blue now because the options would be...

{blue,white,gold}// { x, white, gold} was used in {green,white,gold} so would have 2 duplicated marbles

{blue,white,silver}// { x, white, silver} was used in {red,white,silver} so would have 2 duplicated marbles

{blue,black,gold}// { x, black,gold} was used in {red,black,gold} so would have 2 duplicated marbles

{blue,black,silver}// { x, black, silver} was used in {green,black,silver} so would have 2 duplicated marbles

Any help would be appreciated.

Thx! :)

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Bags of marbles combination/permutation problem

Loading...

Similar Threads - Bags marbles combination | Date |
---|---|

B Sweets in a bag probability problem | May 28, 2017 |

Probability question involving picking balls from a bag | Nov 30, 2014 |

5 count bag of balloons, 6 color possibilities | Sep 5, 2014 |

Marbles in a Bag Probability Question | Aug 23, 2014 |

Detecting whether a bag contains fair coins | Jun 28, 2012 |

**Physics Forums - The Fusion of Science and Community**