Questions tagged [combinations]

Combinations are subsets of a given size of a given finite set. All questions for this tag have to directly involve combinations; if instead the question is about binomial coefficients, use that tag.

A combination is a way of choosing elements from a set in which order does not matter.

A wide variety of counting problems can be cast in terms of the simple concept of combinations, therefore, this topic serves as a building block in solving a wide range of problems.

The number of combinations is the number of ways in which we can select a group of objects from a set.

The difference between combinations and permutations is ordering. With permutations we care about the order of the elements, whereas with combinations we don’t.

Notation: Suppose we want to choose $~r~$ objects from $~n~$ objects, then the number of combinations of $~k~$ objects chosen from $~n~$ objects is denoted by $~n \choose r~$ or, $~_nC_r~$ or, $~^nC_r~$ or, $~C(n,~r)~$.

$~n \choose r~$$=\frac{1}{r!}~^nP_r=\frac{n!}{r!~(n-r)!}$

Example: Picking a team of $~3~$ people from a group of $$~10\cdot C(10,3) = \frac{10!}{7! \cdot 3!} = \frac{10 \cdot 9 \cdot 8}{3 \cdot 2 \cdot 1} = 120.~$$

7786 questions
0
votes
2 answers

Average number of order flips in an array of random numbers

I'm looking for something I can cite. Published work. Computationally, it seems that the average number of times the order changes in an array of random numbers of size $n$ is $$2\cdot\frac{n-2}{3}.$$ At least this works for…
0
votes
0 answers

If there are 6 teams in a group and they all play each other once, how many unique group standings can there be? Is there a formula?

So for instance, if there are 2 teams in a group then there are 2 different possible outcomes but only 1 unique way the standings can look: 1-0 0-1 For 3 teams, there are 2 options: 2-0 1-1 0-2 and: 1-1 1-1 1-1 Now how I can keep listing out the…
0
votes
2 answers

Finding All Combinations

Question Consider the following prices on balls: \begin{alignat}{2} &\text{Red (R):} & 15&\\ &\text{Green (B):} & 6&\\ &\text{Blue (G):} &\qquad 8& \end{alignat} Question Is there an "elegant" way of finding all the possible…
0
votes
1 answer

Why is the generating function of this combinatorial problem $\prod \frac {1}{1-set(i)*set(j)}$?

Divide the 14 elements {A, B, C, C, C, C, D, D, D, D, E, E, E, E} into 7 groups (one group all have two elements), and I want to find out how many kinds of methods there are without repetition. I already know a mathematical way to solve the…
0
votes
1 answer

Alternatives to Cantor's pairing that produces numbers between 0 and the number of combinations?

I have many pairs of numbers (A,B), with both numbers in the pair falling between 0 and N. As an example, let's say N=100. I need a way to uniquely map these pairs to another number. We assume pairs of (A,A) or (B,B), etc are not valid pairs. Since…
0
votes
0 answers

Combination Question - 3 buckets 1 bucket that draws from 1st 2 buckets

New to the community. Excited to dive into this world this weekend. I have a problem that I am having trouble thinking through: Group A has 4 members with 2 slots to fill Group B has 6 members with 2 slots to fill If I were to stop here I understand…
0
votes
1 answer

For a 2n-bit binary number, how many possible values are there such that half the bits are set to 1 (including leading zeros)??

So for n = 1 you'd have 01 and 10. (2 possibilities) For n = 2 you'd have 0011, 0101, 0110, 1001, 1010, 1100. (6 possibilities) How do I find the general formula for any positive integer value of n?
O.S.
  • 592
0
votes
1 answer

Given a string of length $n$, how many substrings of length $k$ of consecutive items exist?

You have a string of characters {ABCDE}. You want to know how many substrings of consecutive characters that are three digits long exist. So you have: {ABC},{BCD},{CDE} So my question is: how do I expand this to any arbitrary arguments for the…
O.S.
  • 592
0
votes
3 answers

Concept not clear: Permutations and Combinations

Q: There are $5$ shirts all of different colors, $4$ pairs of pants all of different colors, and $2$ pairs of shoes with different colors. In how many ways can Amy and Bunny be dressed up with a shirt, a pair of pants, and a pair of shoes each ? (…
Akash
  • 3
0
votes
0 answers

Time it will take to crack a password file?

I'm trying to answer a multiple-choice question which is the following: Consider the security of a password file, which includes a 10 bit salt and all passwords are hashed, but known to consist of exactly 8 characters from the following alphabet: …
0
votes
1 answer

How many combinations are possible in this question?

I was curious how many combinations are possible in this scenario: The characters allowed to make up the combination are so: Letters a-z (lowercase only) Numbers 0-9 Underscores _ Periods . The combination is 4 digits The combination cannot end…
0
votes
1 answer

Combinations without repeats with n = k

I'd like to generate all possible unique combinations of a set of characters. For example, with the set [a,b], we'd get [[a,a],[a,b],[b,b]]. I've been looking to find even a formula giving me the number of possibilities, without success... Is it…
ouai
  • 1
0
votes
0 answers

how to count unordered pairs of two different sets

I have two sets with different elements For example let A = {1,2,3,...n} let B = {a,b,c, ... m} How can I calculate how many different unordered pairs I can create? e.g. {1,a} and {a,1} is the same in my case Any help is appreciated. I'm not sure…
gabtzi
  • 101
0
votes
2 answers

partial derivatives of order $n$

Be $f : \Bbb R^m \rightarrow R$ a function with continuous partial derivatives up to order $n$. How many derivatives of order $n$ does the function have? I proved it for $n=1$ and I got that the number of derivatives was $m$ then I proved it for…
0
votes
2 answers

Probability of Couples

With probability In how many ways can 5 married couples sit in a row if no 2 women sit next to each-other?