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

Calculating combinations from different sets and totals

Suppose I have Set A of 10 items, Set B of 8 items, and Set C of 40 items. How do I calculate the different combinations assuming at least one of Set A must be selected? None of the items can be duplicated. For example, one combination can be: Item…
ono
  • 121
0
votes
2 answers

Programming: How do I find all possibilities of a combination?

In a program, how would I write a function to calculate all of the possible outcomes of a combination (not just the number of possibilities)? For example, I have 6 values: A, B, C, D, E, and F. How would I write a program to give me the possible…
0
votes
1 answer

How many combinations can be made from a 10 digit number given these rules?

How many combinations can be made from a 10 digit number given these rules? Rules: you can only use the digits 0, 1 and 2 the difference between the digits can only be 0 or 1, so you can have 2222222222 or 0000000000 or 0112112100 but not…
0
votes
0 answers

Total Combinations on Grid

I have a game board with 64 square tiles, and each tile can be one of 5 colors (red, green, blue, black, and white). Each time the board is created, every tile will have its color randomized. However, two tiles will always be white, and two tiles…
Matt
  • 1
0
votes
1 answer

Dynamic Programming - Combination with constraint - generate all the solutions

I have a question based on the one posted here: Combination problem with constraints We have 4 containers and one pitcher of water that holds 100L. Each container has different capacities with maximums of, 70L, 45L, 33L and 11L levels…
Ouriel
  • 3
0
votes
3 answers

What is the total number of combinations with $15$ objects with duplicates?

The objects can be expressed as: Y Y G G R R BE BE BK BK P P O O O. I want to be able to select duplicates and any number of objects from $1$ to $15$ so $1$ combination would be O,O. Another would be Y,Y,G,G,R,R,BE,BE,BK,BK,P,P,O,O,O and so on.
0
votes
1 answer

Does there always exist a partition that can devide C_n^2 combinations into n-1 independent groups?

There are $n$ random oberservations. Suppose $n$ is even number. We are interested in the ratio of each two. So there are $C_n^2=n(n-1)/2$ kinds of ratios. To study the property of the ratios we need independent assumption. So we decide to partition…
0
votes
1 answer

EASY Permutation question

Assuming that everyone in a particular school has three initials, find out whatis the smallest number of students in a school for which there must be at leasttwo with the same initials.
0
votes
1 answer

Combination issues and nerdy screwdrivers.

I was at a local bookstore the other day, and noticed a small toy. It was a customizable Sonic Screwdriver from Doctor Who. It had 3 screwdrivers, each with 3 interchangeable components. On the box, it proclaimed in bolded text: "OVER 80…
0
votes
4 answers

A seemingly easy combination question that is difficult to explain

In a sport, assume a team can either score 3 points or 7 points. Find the smallest example of a team winning the game by 5 points. Yes, you can cheat and guess that the smallest example is the winning team scoring 12 points off of 4 three-pointers…
0
votes
1 answer

How many $(A,B,C,D)$ exist?

Given $|X|=n$, how many $(A,B,C,D)$ exist if $C \cap B=C \cap D= B\cap D =\varnothing$, $A \subset B$, $B \cup C \cup D =X$?
Mary Star
  • 13,956
0
votes
1 answer

Properties of combination

I need help understanding why $ \left( \frac{n}{m} \right) ^k {{m}\choose {k}} \leq {{n}\choose {k}} $. Here m divides n, and k is a fixed small constant. I have tried expanding both sides, but not getting anywhere. Thanks.
0
votes
2 answers

Chess Piece Combinations

I came across a question yesterday about combinations, and I wanted to know what the correct answer was. The question states as follows: There are 8 spaces that are alternately black and white. There is one king, one queen, two identical rooks, two…
0
votes
1 answer

With how may ways can the people get out of the elevator,if they are not distinguishable

There is an elevator with 8 people and 5 floors.With how may ways can these 8 people get out of the elevator,if we consider that they are not distinguishable?Which formula can I use to find it?
evinda
  • 7,823
0
votes
1 answer

Some arrangements problems

[1] The numbers of ways of selecting $3$ pairs from $8$ distinct objects. [2] The no. of $6$ Digit no. in which exactly $2$ digits are even, must be [3] The no. of $6$ Digit no. in which exactly $2$ digits are even, must be $\bf{My\; Try}$ for $(1)$…
juantheron
  • 53,015