Solved

How many different combinations can be made from 5 varieties of flowers?

Posted on 2010-09-16
7
1,060 Views
Last Modified: 2012-05-10
If I have 5 different varieties of flowers:
carnations, roses, mums, marigolds and lilies.
And I put 3 different varieties of flowers in a vase
For example, a vase might contain roses, carnations and lilies
How many different combinations can be made from the 5 varieties of flowers?

0
Comment
Question by:zimmer9
  • 4
  • 2
7 Comments
 
LVL 11

Accepted Solution

by:
dougaug earned 500 total points
ID: 33697859
You can use combinatory analysis

Cx,y =   x!
          _________
          y! * (x - y)!

I

0
 
LVL 11

Expert Comment

by:dougaug
ID: 33697864
You can use combinatory analysis

Cx,y =   x!
          _________
          y! * (x - y)!


In you example:

C5,3 =        5!              =   120      =   120    = 120   = 10
            __________      _______     _____    ____
            3! * (5 - 3)!          6 * 2!        6 * 2       12
0
 
LVL 32

Expert Comment

by:phoffric
ID: 33697866
You want to pick 3 kinds of flowers out of 5. So that is:
5 things taken 3 at a time = 5 C 3 = 5!/[(5-3)!(3!)] = 5*4/2! = 20/2 = 10 combinations.
    http://www.mathwords.com/c/combination_formula.htm
    http://www.wolframalpha.com/input/?i=5+C+3
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:zimmer9
ID: 33697890
Does this equate to:

    5!                                     120
    --                                      ---        =  10
    3! * (5 - 3)!          =            6 * 2
0
 
LVL 32

Expert Comment

by:phoffric
ID: 33697912
Yes, same calculations as above.

Note that 5! = 5*4*3!
so that the 3! in the denominator cancels out with the 3! in the numerator, and then you have

5!
------------  = 5*4/2! = 20/2 = 10
3! * (5 - 3)!  
0
 
LVL 32

Expert Comment

by:phoffric
ID: 33697923
So, in general, taking R things out of N leads to this number of combinations:


     N!             N(N-1)...(N-R+1)(N-R)!
----------- = ------------------------------- = N(N-1)...(N-R+1)/R!
R!( N-R )!                          R!( N-R )!

Here the (N-R)! factor in the numerator cancels with the same factor in the denominator.
0
 
LVL 32

Expert Comment

by:phoffric
ID: 33697937
Here is the general form that I used with the concrete numbers:


     N!             N(N-1)...(R+1)(R)!
----------- = -------------------------- = N(N-1)...(R+1)/( N-R )!
R!( N-R )!                     R!( N-R )!

Here the R! factor in the numerator cancels with the same factor in the denominator.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

A Guide to the PMT, FV, IPMT and PPMT Functions In MS Excel we have the PMT, FV, IPMT and PPMT functions, which do a fantastic job for interest rate calculations.  But what if you don't have Excel ? This article is for programmers looking to re…
Introduction On a scale of 1 to 10, how would you rate our Product? Many of us have answered that question time and time again. But only a few of us have had the pleasure of receiving a stack of the filled out surveys and being asked to do somethi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now