Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1500
  • Last Modified:

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

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
zimmer9
Asked:
zimmer9
  • 4
  • 2
1 Solution
 
dougaugCommented:
You can use combinatory analysis

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

I

0
 
dougaugCommented:
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
 
phoffricCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
zimmer9Author Commented:
Does this equate to:

    5!                                     120
    --                                      ---        =  10
    3! * (5 - 3)!          =            6 * 2
0
 
phoffricCommented:
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
 
phoffricCommented:
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
 
phoffricCommented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now