1
   

Combinations on a salad bar

 
 
Reply Wed 22 Sep, 2004 06:06 pm
A local salad bar has a 30 item line up. The owner advertises over a billion combinations.

How many combinations are there on this salad bar?

A patron can take a salad of 1 to 30 items, the order that items are added does not matter, so consider tomatoes and lettuce the same as lettuce and tomatoes, which would only count as one combination.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 998 • Replies: 7
No top replies

 
Adrian
 
  1  
Reply Wed 22 Sep, 2004 06:32 pm
It's the 30th item that puts it over a billion. Adding the last item doubles the number of combinations.

I think the answer would be 2^30 - 1 = 1,073,741,823.

You have to subtract 1 because otherwise you are counting the null set which would be an empty plate.
0 Replies
 
Adrian
 
  1  
Reply Wed 22 Sep, 2004 06:44 pm
Actually on second thought I'm wrong.

Hmmm.

I'm counting lettuce and tomatoes as seperate from tomatoes and lettuce.
0 Replies
 
markr
 
  1  
Reply Wed 22 Sep, 2004 06:57 pm
No you're not. You got it right. For every combination, each item is either included (1) or not (0). So there are 2^N combinations. In this case, one of them is invalid: no ingredients.
0 Replies
 
Justthefax
 
  1  
Reply Wed 22 Sep, 2004 07:16 pm
That was the same count I had.
0 Replies
 
Adrian
 
  1  
Reply Wed 22 Sep, 2004 08:20 pm
Actually on third thought I agree with you guys.
0 Replies
 
Justthefax
 
  1  
Reply Wed 29 Sep, 2004 04:49 pm
I was thinking,

and the combinations may be even more

if you consider various weights of each item could be a diferant combination.


Item not there
1/4 pound
1/2 pound
3/4 pound
1 pound
0 Replies
 
markr
 
  1  
Reply Wed 29 Sep, 2004 06:14 pm
Just a few more.
5^30 - 1 (931,322,574,615,478,515,624)
vs.
2^30 - 1 (1,073,741,823).
0 Replies
 
 

Related Topics

Alternative Einstein's riddle answer - Discussion by cedor
Urgent !!! Puzzle / Riddle...Plz helpp - Question by zuzusheryl
Bottle - Question by Megha
"The World's Hardest Riddle" - Discussion by maxlovesmarie
Hard Riddle - Question by retsgned
Riddle Time - Question by Teddy Isaiah
riddle me this (easy) - Question by gree012
Riddle - Question by georgio7
Trick Question I think! - Question by sophocles
Answer my riddle - Question by DanDMan52
 
  1. Forums
  2. » Combinations on a salad bar
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 05/19/2024 at 12:58:00