Author Topic: Obama says combinatorics is awesome  (Read 3249 times)

0 Members and 1 Guest are viewing this topic.

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Obama says combinatorics is awesome
Check this out.

You have three types of fruit (peach, watermelon, apple.) You need to pick four fruits. The order is irrelevant, and you can have more than one of each kind of fruit. You don't need to use all the fruits. What are all the possible combinations?

The formula is (6!) / (4! * 2!) = 15. There are fifteen combinations. Now, you might wonder, where the heck does that formula come from? After all, you're only picking four elements. Why is the numerator six factorial?

Well, you can think of it this way.

You're picking out four fruits. Picture the four empty slots as Xs:

X X X X

Now, there are three categories of fruit available, right? You can break the four slots into three categories by placing two (2) dividers.

x | x x | x

With me? All make sense? We could say 'left slot is peach, middle slot is watermelon, right slot is apple', like so:

peach | watermelon, watermelon | apple

So, in fact you can define any configuration of fruits in the four slots by moving the two dividers. A four-peach configuration would be:

x x x x ||

See? Four peaches in the left slot, nothing in the watermelon or apple slots.

So we're actually manipulating the positions of six elements: the four fruit slots and the two dividers.

Thus, 6! as the numerator.

The denominator is the factorial of the number of slots (4!) multiplied by the factorial of the number of dividers.

Thus, (6!)/(4!*2!)

You can generalize this problem to any combination problem where you're fitting N types of things into X slots (with repetition allowed) as

(X + n-1)!/(X! * (n-1)!)

Isn't that sweet?
« Last Edit: October 15, 2009, 05:00:21 pm by General Battuta »

 

Offline Topgun

  • 210
Re: Combinatorics is awesome
so that's how that works...

 

Offline MR_T3D

  • 29
  • Personal Text
Re: Combinatorics is awesome
I'm now hungary.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Combinatorics is awesome

 

Offline Axem

  • 211
Re: Obama says combinatorics is awesome
Such typical liberal attitude! Why should I ate what YOU chose for me? I've got 70 problems with that! This is a slippery slope down to some sort of hyperbolic insineity that should stay in your imaginary system!

 

Offline Nuclear1

  • 211
Re: Obama says combinatorics is awesome
The food police! It's a sine of the end times! 
Spoon - I stand in awe by your flawless fredding. Truely, never before have I witnessed such magnificant display of beamz.
Axem -  I don't know what I'll do with my life now. Maybe I'll become a Nun, or take up Macrame. But where ever I go... I will remember you!
Axem - Sorry to post again when I said I was leaving for good, but something was nagging me. I don't want to say it in a way that shames the campaign but I think we can all agree it is actually.. incomplete. It is missing... Voice Acting.
Quanto - I for one would love to lend my beautiful singing voice into this wholesome project.
Nuclear1 - I want a duet.
AndrewofDoom - Make it a trio!

 

Offline MR_T3D

  • 29
  • Personal Text
Re: Obama says combinatorics is awesome
where does obama fit into this?

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Obama says combinatorics is awesome
he creates gendisc aggro

 

Offline NGTM-1R

  • I reject your reality and substitute my own
  • 213
  • Syndral Active. 0410.
Re: Obama says combinatorics is awesome
However, it DPS's very, very slowly.

If at all.
"Load sabot. Target Zaku, direct front!"

A Feddie Story

 

Offline Scotty

  • 1.21 gigawatts!
  • 211
  • Guns, guns, guns.
Re: Obama says combinatorics is awesome
Effective tank though.  Every one concentrates on it first.

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
Re: Obama says combinatorics is awesome
You know, I was just doing something like this last week. Given n distinct objects, I wanted the number of ways to partition them into subsets of given sizes (e.g. for 4 objects, there are 3 ways to divide them into sets of 2 each), as well as the total number of such partitions over all subsets. I found a formula for the whole thing but couldn't simplify it enough to make it useful for what I wanted to do.

What does Obama think? :p

 

Offline StarSlayer

  • 211
  • Men Kaeshi Do
    • Steam
Re: Obama says combinatorics is awesome
From the title I was expecting Battuta's fruit combinatorics to be an analogy how public healthcare should work :P
“Think lightly of yourself and deeply of the world”

 

Offline Janos

  • A *really* weird sheep
  • 28
Re: Obama says combinatorics is awesome
you talk about watermelons

as a black man, i find this stereotype offensive

f u g b (qtiyd)
lol wtf

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Obama says combinatorics is awesome
How many different combinations of FRIED CHICKEN

 

Offline Topgun

  • 210
Re: Obama says combinatorics is awesome
I am latino and this entire forum offends me.

 

Offline Janos

  • A *really* weird sheep
  • 28
Re: Obama says combinatorics is awesome
well, as a black man I
lol wtf

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: Obama says combinatorics is awesome

 

Offline Nuclear1

  • 211
Re: Obama says combinatorics is awesome
As a Canadian steweotypes offend me. 

Now stoop it, buddy!
Spoon - I stand in awe by your flawless fredding. Truely, never before have I witnessed such magnificant display of beamz.
Axem -  I don't know what I'll do with my life now. Maybe I'll become a Nun, or take up Macrame. But where ever I go... I will remember you!
Axem - Sorry to post again when I said I was leaving for good, but something was nagging me. I don't want to say it in a way that shames the campaign but I think we can all agree it is actually.. incomplete. It is missing... Voice Acting.
Quanto - I for one would love to lend my beautiful singing voice into this wholesome project.
Nuclear1 - I want a duet.
AndrewofDoom - Make it a trio!

 

Offline MR_T3D

  • 29
  • Personal Text
Re: Obama says combinatorics is awesome
As a Canadian steweotypes offend me. 

Now stoop it, buddy!
eh?

  

Offline NGTM-1R

  • I reject your reality and substitute my own
  • 213
  • Syndral Active. 0410.
Re: Obama says combinatorics is awesome
As a stereotype, you all offend me.
"Load sabot. Target Zaku, direct front!"

A Feddie Story