Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Science, Math, and Philosophy
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-03-2007, 01:40 PM
FlawedChip FlawedChip is offline
Member
 
Join Date: Nov 2004
Posts: 58
Default Combinatorics / Permutation problem

I have a certain number of items, 26 (A-Z). I would like to find the number of possible combinations by splitting up 100% (1-100) among the 26 items.

Here are a couple of outcomes that would exist for example:

Item Percentage
A: 100
B-Z: 0

Item Percentage
A: 99
B: 1
C-Z: 0

Item Percentage
A: 98
B: 1
C: 1
D-Z: 0

Item Percentage
A: 0
B: 15
C: 30
D-L: 0
M: 20
N: 25
O-Y: 0
Z: 10

Is there a formula to use to count the number of outcomes? I think it might be possible using nCr or nPr?
Reply With Quote
  #2  
Old 09-03-2007, 01:46 PM
TimM TimM is offline
Senior Member
 
Join Date: Jan 2004
Location: The Gym
Posts: 4,564
Default Re: Combinatorics / Permutation problem

Looks simple to me. Consider each letter as a bin, and each percentage point as an identical marble to be placed in one of the bins.
Reply With Quote
  #3  
Old 09-03-2007, 02:09 PM
jay_shark jay_shark is offline
Senior Member
 
Join Date: Sep 2006
Posts: 2,277
Default Re: Combinatorics / Permutation problem

This is easy .

You're just looking for the number of nonnegative integer valued solutions to the following :

a1+a2+a3+...+a26 = 100

The number of solutions is : (100+ 26-1)C(26-1)=~1.30X10^26
Reply With Quote
  #4  
Old 09-03-2007, 02:48 PM
jay_shark jay_shark is offline
Senior Member
 
Join Date: Sep 2006
Posts: 2,277
Default Re: Combinatorics / Permutation problem

Here is the formula that I will derive .

There are (n+r-1)C (r-1) nonnegative integer valued solutions a1,a2,a3,...ar satisfying

a1+a2+a3+...ar = n

Take n+r O's : 000...000 and note that there are n+r-1 spaces between consecutive 0's .
Now divide the O's using dashes and choose r-1 dashes .

ie n=4 r=2 0|00000 implies a1=0 and a2=4.
00|0000 implies a1=1 and a2=3 .

n=5 r=3 00||000000 implies a1=1 a2=0 a3=4
Reply With Quote
  #5  
Old 09-03-2007, 04:15 PM
jay_shark jay_shark is offline
Senior Member
 
Join Date: Sep 2006
Posts: 2,277
Default Re: Combinatorics / Permutation problem

Here is a polished solution .

Take n 0's and r-1 dashes .

n=5 r=3 00000|| This tells us that a1=5 a2=0 a3=0

n=7 r=4 00000||0|0 This tells us that a1=5 ,a2=0 and a3=1 and a4=1 .
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.