Jump to content
BrainDen.com - Brain Teasers
  • 0

Lining up my skittles


BMAD
 Share

Question

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

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

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.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...