How many different three-ingredient sandwiches can be made if 8 ingredients are available?
8*7*5
Thank you (:
did you understand what did i do??
Yeah, pretty much. You did the permutations. But does the 6 reduce down to a 2? and then cancel? that's the only thing that got me.
I meant reduce down to a 3 lol now I think I'm just confusing myself.
experiment I'd love to know what you just did.
How many different three-ingredient sandwiches can be made if 8 ingredients are available?
Now, we are using nCr because order does not matter.
cheese, tomato, lettuce, is the same as tomato, cheese, lettuce, right?
nCr=(nPr)/r! nPr=(n!)/(n-r)! nCr=(n!)/[r!(n-r)!]
n=8 r=3
8!/[3!(8-3)!] =8!/(3!5!) =(8*7*6)/3! =8*7
I honestly just don't understand how to use combinations or permutations. I'm a bit better at permuatations than combinations, but both confuse me. But I'm trying to follow through with what you are saying, so thank you lol.
Alright, let me explain just exactly what combinations and permutations are
Well, you understand permutations, right?
yeah, I'm pretty sure I do.
ok. Now, there is only a small difference between combinations and permutations.
in permutations, "order" matters.
Say, the winning number of a lottery ticket.
right
1119 is different from 9111
in combinations, however "order" does not matter.
if we were to take 2 random people from a group of 10 people, selecting Bob then Joe is the same as selecting Joe then Bob
Now, there are formulas for permuations and combinations, and unfortunately, these require memorization.
(they don't if you understand them intuitively, however)
alright, so I just have to memorize the permutations and combinations formula and try and learn how to do them?
Well, you can try to understand why they are what they are, and then try to memorize; that helps.
I'll try to explain...
Yeah I can do that. That's a good idea, thank you. But you don't have to explain it to me if you don't want to. haha but I'd appreciate if you did. :)
Ok, let's say we have a 8 digit password (0-9), and the numbers cannot be repeated.
In other words, that would be 10 choices for the first, 9 for the second (because one is taken up by the first), 8 for the third, 7 for the fourth, 6 for the fifth, 5 for the sixth, 4 for the seventh, and 3 for the eighth.
Now we multiply those all out.
10*9*8*7*6*5*4*3 I mean, multiply those by each other.
yes, so that would be 1,814,400 right?
Not sure. But, what's important is to notice it's striking resemblance to the factorial function. The two must be related.
in fact, we didn't select the last two digits for the password, right?
right
those last two digits happen to be 2!
(*2*1)
So, we literally just divided 10! by 2 factorial, right?
I think so. Like do you meant we divided them before we found out what to multiply?
Well, we multiplied down to 3 (starting from 10)
We didn't multiply by 2 and by 1, because those were the ninth and tenth digits, and we wer eonly looking for the first eight.
Oh I see, that helps me understand it a bit more. So does this "rule" follow for both permutations and combinations?
We can represent this mathematically.
In general, if you have n cases to choose from, and choose r different cases
nPr is shorthand for writing the permuation
It's shorthand, but we actually express nPr as n!/(n-r)!
the n! in my example would be 10, and the (n-r)! would be (10-8)!, or 2!
Combinations are slightly harder to explain.
Oh, I see. I'd imagine Combinations would be harder to explain. Because I'm not good at combinations at all haha. But I understand permutations a bit more now.
That's good. My head is feeling a little funny, and I'm sort of sleepy, so I'll just tell you the formulas,and how I remember them, as well as when to use which.
Alright, thank you so much.
nPr=n!/(n-r)! nCr=nPr/r! Permutation: order matters - common examples -> lottery ticket, password, combination lock (yes, order matters on these, despite the confusing name) Combination: order does not matter - common exmaples -> selecting a group of people out of a larger group, putting stuff in a sandwich (lettuce and tomatos is the same as tomatoes and lettuce)
If you need more help, just ask more questions on Open study.
This was awesome Ink, seriously.
Thank you!
You're welcome :)
The only difference formula wise of combinations and permuations is that nCr=nPr/r!
Alright, I understand them a bit better thanks to you :) thank you for taking your time to help me with something I should have already got down. haha
Sorry for wrong answer, Lost connection right after that. 9*8*7/3!
it's alright :)
Join our real-time social learning platform and learn together with your friends!