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
1
vote
1 answer

Combination with quantity

We need to ship 100 kits, each containing three beads of different colors. There are four colors: purple, blue, green, silver. We have the following quantities for each respective color: 53, 53, 85, 53. What are the fewest beads we will need to…
1
vote
1 answer

You are in charge of creating a committee. The committee shall consist of one Umpire, three Statisticians, two Electricians, and one Lawyer.

You are in charge of creating a “USELESS” committee. The committee shall consist of one Umpire, three Statisticians, two Electricians, and one Lawyer. You personally know two Umpires, five Statisticians, three electricians, and four lawyers.…
1
vote
2 answers

Calculate the number of combinations available

I am writing a computer program which generate 5 digit alpha-numeric codes. Each character can contain a-z,A-Z and 0-9 (62 different possibility per character). So if there are 5 character how many possibility are there?
1
vote
4 answers

Calculate the possible combinations for an eight-character password

Can any when one help me in this question: Calculate the possible combinations for; An eight-character password consisting of upper- and lowercase letters and at least one numeric digit $(0–9)$? A ten-character password consisting of upper- and…
zahng
  • 11
1
vote
1 answer

Arrangement of dominoes

There are 15 dominoes arranged in 3 rows of 5 dominoes. Imagine each domino as representing a fraction, where the numerator is the number of dots on the top part of the domino, and the denominator is the number of dots on the bottow part of the…
Asd Ttt
  • 11
1
vote
1 answer

Same color go pieces that can be placed on the Gomoku chessboard

Question The rule of Gomoku(Five in a Row) is that on an $n × n$ square chessboard, when there are five or more go pieces of the same color in any direction horizontally, vertically and diagonally, you win. I want to know the maximum number of go…
Aster
  • 1,220
1
vote
1 answer

What is r in combination C(n, r)

I understood the formula as: Given there are 5 letters {A,B,C,D,E}, pick 3 letters randomly(putting them back) and the combination formula is C(5, 3). r=3 means how many I choose from the 5 to make the combinations. However, using the same logic and…
Chung
  • 155
1
vote
0 answers

Combinations equation

Solve the equation We can write it as…
1
vote
1 answer

Number of combinations leading to ties between the second and third places in the FIFA World Cup

I read on Wikipedia that the number of combinations leading to a tie between the second and third place in an initial group (of four teams) in the FIFA World Cup is $207$. How is this calculated? I understand that if we consider all possible…
1
vote
1 answer

Calculating best coverage of all combinations

In a supermarket I selected $30$ products on which we want to run an analysis. I want to see which $12$ of them give me the widest coverage of clients (on a specific date, no time involved). This means that I have…
lorenzo
  • 113
1
vote
0 answers

9-cell square painted blue and yellow. How many are green?

In a 9-cell square (3x3 with 9 cells) more than 7 are painted yellow and more than 5 are painted blue. If a cell is painted yellow and blue, then it is resulting in green. In the end, all the cells in the square painted. How many green cells are…
Zeta10
  • 787
1
vote
2 answers

Number of Combinations from 1 to 100

Without using a loop / recursive computational methodology, How many ways can I combine the numbers 1 to 100, with another set 1 to 100, so that the sum between set A and B equals 100. If there were 3 sets, ie A=1..100, B=1..100, C=1..100, how many…
ADP
  • 135
  • 1
  • 7
1
vote
0 answers

Formula to calculate the combination of two patterns

Is their a formula to calculate the combination of two patterns?: Lets say I have rows of lightbulbs, a pattern representes the space between two turned-on lightbulbs. Easier to explain with an example: Pattern 1: 4, 3 Pattern 2: 3 The meaning of…
1
vote
1 answer

A practical problem for Crew rotation set-up

I work managing crew rotation for ships and we were given a project to start a better crew rotation for "core crew" (people following a fixed rotation) and "rotating personnel" (people without a steady rotation). I understand some explanation will…
CubaRJ
  • 19
1
vote
0 answers

Combination for equation

You'll think it's a well-known expression already, but it's not, at least I couldn't find it. Please read the question. In how many ways can n identical objects be distributed in r boxes, provided that each box contains a different number of…
xyz
  • 59