Lining up my skittles

10 posts in this topic

Posted · Report post

My pack of skittles comes in five flavors, grape, lemon, green apple, orange, and strawberry (odd that they don't have the cherry blue flavor found in the UK but alas).

Assume that my pack had the following proportion of flavors 2.5 lemon, 2 orange, 1.5 grape, 1.5 green, 1 strawberry. If i were to pour my skittles on the table and line them up in an offset two row pattern (so that at most, a single skittle touches four skittles [see image]. What are the chances that two skittles of the same color won't touch?

post-53485-0-92526200-1383650579_thumb.p

0

Share this post


Link to post
Share on other sites

Posted · Report post

Is the number of skittles in the image correct? You don't otherwise provide how many are being poured. Or do you want a general solution for arbitrary N?

0

Share this post


Link to post
Share on other sites

Posted · Report post

Is the number of skittles in the image correct? You don't otherwise provide how many are being poured. Or do you want a general solution for arbitrary N?

The image was just to show what I meant by how to line them up. Calculate for any N.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Yes, the total number of candies makes a difference [if very large, the answer approaches 0]

0

Share this post


Link to post
Share on other sites

Posted · Report post

hmmm... okay assume there are 20 skittles.

0

Share this post


Link to post
Share on other sites

Posted · Report post

hmmm... okay assume there are 20 skittles.

In order for a pack to contain flavors with those exact proportions, the pack must contain a multiple of 17 Skittles. So, a pack of 20 wouldn't satisfy the hypotheses of the problem!

0

Share this post


Link to post
Share on other sites

Posted · Report post

Sheesh people. 17 then

0

Share this post


Link to post
Share on other sites

Posted · Report post

Sheesh people. 17 then

The probability that no two touching Skittles have the same color is precisely 6163/8576568 which is approximately 0.00071858580.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Can you describe how you got that answer please?

0

Share this post


Link to post
Share on other sites

Posted · Report post

Can you describe how you got that answer please?

I worked on it for a while until I decided it was just to complex for me to do without writing a program.

So, I generated all possible pairs of 9 & 8 long strings which together had 5 lemon, 4 orange, 3 grape,

3 green, and 2 strawberry colors. There are 17!/(5!*4!*3!*3!*2!) = 1,715,313,600 of these. Then, I

checked each one of them and counted those which had no same-color skittles touching. There were

1,232,600 like that. That gave me the probability I posted. The program was pretty sloppy but it

ran in 69 seconds on one core of my desktop machine.

1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.