wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> medium >> Ways to make a Burrito
(Message started by: Virgilijus on Aug 26th, 2015, 12:28am)

Title: Ways to make a Burrito
Post by Virgilijus on Aug 26th, 2015, 12:28am
After winning his court case due to a procedural error, Willy Wutang has decided to celebrate by having some delicious Mexican food.

Unknown to Willy, an old and justifiably vengeful ex is one of the lead chef's in the kitchen and she has plans for Willy's food; instead of layering all the ingredients in the middle of the burrito, she will place all the ingredients in a line. Devious and, most importantly, legal.

However, there's a stipulation; of the six ingredients, there are some that, by tradition, should never touch each other:

Avocados and Beans
Cheese and Diced Peppers
Extra Spicy Hot Sauce and Fried Rice

If this is the case, how many different types of burritos could the vengeful ex make for Willy? (Note: philosophically, burrito ACBEDF is considered the same as burrito FDEBCA)

Spurned Ex
https://i.imgur.com/ILfmnSZ.jpg

Example of a good burrito (from left to right, AEBDFC)
https://i.imgur.com/dwjsfar.jpg

Title: Re: Ways to make a Burrito
Post by rmsgrey on Aug 26th, 2015, 6:17am
Reasoning:

[hideb]If you just build the burrito from left to right, there are two possible patterns for the first three ingredients - either the third ingredient is the first's partner, or it's one of the remaining pair.

In the former case, the number of possible burritos is 6*4*1*2*1*1; in the latter case, it's 6*4*2*2*2*1.

Since you can reverse any burrito, and get one equally good, the final total is half that, or 120[/hideb]

Answer: [hide] 120 [/hide]

Title: Re: Ways to make a Burrito
Post by Virgilijus on Aug 26th, 2015, 9:30am
Correct!

I knew it would be solved quickly on here. When my friend and I solved it, we had to do it a little more visually and thought of it like this: if you put pairs of ingredients on opposite faces of a die, how many ways can you travel across the entire surface of the die if you can only go through each face one time?


Title: Re: Ways to make a Burrito
Post by rloginunix on Aug 26th, 2015, 10:05am
Interesting equivalence idea.

I'd stick with rmsgrey's clean academic approach - [hide]partition of a set into pairwise disjoint subsets - to use the Addition Counting Principle and then the independence of the number of choices in a series of consecutive decisions - to use the Multiplication Counting Principle[/hide].



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board