Premutations? or combinations?

  • Thread starter Thread starter BananaNeil
  • Start date Start date
  • Tags Tags
    Combinations
Click For Summary
SUMMARY

The discussion focuses on calculating the number of permutations and combinations of a string of numbers, specifically when N of those numbers are 1 and X-N are 0. The formula for combinations is established as X choose N = X! / (N! * (X - N)!), while permutations are clarified as X! / (X - N)!. An example with X=10 and N=3 illustrates the calculation process, emphasizing the distinction between combinations and permutations.

PREREQUISITES
  • Understanding of factorial notation (e.g., X!)
  • Familiarity with combinations and permutations concepts
  • Basic algebraic manipulation skills
  • Knowledge of mathematical notation (e.g., binomial coefficients)
NEXT STEPS
  • Study the concept of binomial coefficients in depth
  • Learn about the applications of permutations and combinations in probability theory
  • Explore advanced combinatorial techniques such as generating functions
  • Investigate the relationship between permutations, combinations, and graph theory
USEFUL FOR

Mathematicians, computer scientists, and anyone interested in combinatorial mathematics or algorithm design will benefit from this discussion.

BananaNeil
Messages
3
Reaction score
0
Hey every body... I have been trying to figure this out for quite a while now... and i feel like i am making progress, but it just doesn't seem to be working.

Imagine you have a string of numbers with a length of X

N of those numbers must be 1 and X-N of those numbers must be zero. how many different combinations can i make?




(if it matters the relationship between n and x is this... x=(n^2)-(2*n))


any help would be really appreciated.
 
Physics news on Phys.org
x choose n = x!/(n!*(x-n)!)
 
wowwww, thank you so much. =]

I was wondering if you could possibly explain why it works..

your answer was defiantly sufficient for my program, but i am really interested in why works.
 
Since you title this "Permutations? or combinations?", I feel I should point out that, strictly speaking, there is only one combination of X numbers, N of which are 1 and X- N of which are 0. There are
\begin{pmatrix}X \\ N\end{pmatrix}= \frac{X!}{N!(X- N)!}[/itex]<br /> <b>permutations</b>.<br /> <br /> For example, if X= 4 and N= 1, 1000, 0100, 0010, and 0001 are all the <b>same</b> combination. They are different <b>permutations</b>, differing in the order in which the digits are written. There is eactly 1 combination and 4!/(3!1!)= 4 permutations.<br /> <br /> By the way, please don&#039;t use &quot;X&quot; and &quot;x&quot;, &quot;N&quot; and &quot;n&quot; interchangably. They are different symbols and often mean different values in equations and formulas.
 
BananaNeil said:
I was wondering if you could possibly explain why it works..

your answer was defiantly sufficient for my program, but i am really interested in why works.

Consider a particular example, say X=10, N=3:

You want to pick 3 spots out of 10 spots. In how many ways can you do that?
Well, for the first one you have 10 possible choices for the second you have 9 possible choices and for the third you have 8 possible choices. So you can do this in 10·9·8 ways. This is equal to:

\frac{10 \cdot 9 \cdot 8 \cdot 7 \cdot 6 \cdot 5 \cdot 4 \cdot 3 \cdot 2 \cdot 1}{7 \cdot 6 \cdot 5 \cdot 4 \cdot 3 \cdot 2 \cdot 1}<br /> = \frac{10!}{(10-3)!}

These 10·9·8 possible ways to pick the spots include different ways of picking the same 3 spots (i.e. picking the same spots in different order). So we want to divide these 10·9·8 possible ways to pick the spots by the number of ways in which each set of 3 spots can be ordered. This is the number of ways in which you can pick 3 out of 3 spots: 3·2·1 = 3!

So the total number of different sets of 3 spots that can be drawn from a set of 10 spots is: \frac{10!}{(10-3)!\cdot 3!}
 
Actually, the number of permutations (not combinations) is x!/(x-n)!
 

Similar threads

Replies
6
Views
1K
Replies
17
Views
2K
  • · Replies 5 ·
Replies
5
Views
726
Replies
10
Views
3K
  • · Replies 6 ·
Replies
6
Views
772
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 29 ·
Replies
29
Views
6K
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 32 ·
2
Replies
32
Views
3K