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
2
votes
2 answers

Does every integer occur finitely many times and in what positions in Pascal's triangle?

Given number n, does it occurs finitely many times in Pascal's triangle? In what positions?
jimjim
  • 9,675
2
votes
2 answers

In how many different ways can 3 children share 8 identical sweets so that each child gets at least one?

In how many different ways can $3$ children share $8$ identical sweets so that each child gets at least one? I have tried this problem by listing all the possibilities and I got an answer of $21$. I also tried to solve it by using a combination…
anonymous
  • 1,556
2
votes
1 answer

How many $5$ digit natural numbers have at least one $5$ or one $7$?

There are $9 \cdot 10^4=90,000$ possible $5$ digit numbers. Numbers with no $5$ is $8\cdot 9\cdot 9\cdot 9\cdot 9 = 52,488$. Numbers with no $7$ is $52,488$. Numbers with at least one $5$ is $90,000 - 52,488$ Similarly numbers with at least one $7$…
2
votes
1 answer

Creating teams with non repeated pairs

I have 24 students in my class (A, B, C, ..., X). They will work on five projects during the semester in teams of three. I want to create the teams so that students who have been in a team once will not work in another team. Is there an algorithm I…
2
votes
1 answer

8 people, 4 rounds, two groups of 4 people, can everyone play twice?

I have 8 people playing 4 rounds of golf. Playing each round in two groups of four people is it possible that all players play together twice? Trying to work out a draw for it.
MARK
  • 21
2
votes
0 answers

Calculate total number of combinations?

If $0 \leq a \leq A$, $0 \leq b \leq B$, $0 \leq c \leq C$, $0 \leq N$, $(a+b+c) \leq N$. What is the total number of combinations satisfying the inequality without using 3 nested loops?
Neeraj
  • 21
2
votes
1 answer

A type of combination without repetitions and multiple sets of variable length

I don't know what this is called (though I know it falls under combinations) but I have a problem where I start with multiple groups of variable size. Given: There are N groups Each group has at least one member Ex: Group 1: A, B, C Group 2: D, E,…
1
vote
3 answers

Combinations How many 4 digit numbers less than 4000 can be made using..

How many 4 digit numbers less than 4000 can be made using the digits 1, 2, 3, 5, 7 and 9 if repetition is not permitted?
1
vote
1 answer

Formula to calculate the appearance of characters 2 digits on n-digit numbers

The following formula to calculate the appearance of the character 1 (one digit) of the numbers 1 to 1000: P(1) + p(2) + P(3) + 1 (9.10^0 - 8.9^0) + (9.10^1 - 8.9^1) + (9.10^2 - 8.9^2) + 1 (9.1 - 8.1) + (9.10 - 8.9) + (9.100 - 8.81) + 1 (9-8) +…
aon
  • 89
1
vote
3 answers

procedure to pair all people with all others in a group

I am looking for an easy method to ensure that all people in a group get to meet all others. The "speed dating" method is to have two rows of people facing each other, and then rotate one of the rows. This works for half of the pairings. How do I…
1
vote
1 answer

How to solve this combination?

I have $8$ pieces and $8$ places to put them into. I want to know how to calculate the number of possible combinations. The places are like this : $[a,b],[c(d,e),f(g,h)]$ $[a,b]$ is the same as $[b,a]$ and $(d,e)$ is the same as…
1
vote
0 answers

Combinations of non-adjacent number sequences

I am trying to construct combinations of sequences. Given n integers (to choose from), say 1 <= n <= k and the requirements to construct sequences of length m. The number of sequences is simply C(n, r) and I even have a program to display them…
1
vote
1 answer

How to calculate number of different combinations along a line?

If I have a straight line consisting of n points, and I have to get from the first to the last point, using any combination of "hops" along points, how do I calculate how many possible combinations there are? Example: a line with points A, B, C. I…
Henri
  • 11
1
vote
1 answer

Combinatorical question

I tried to solve this formula. I was asked to use a recursive solution. I need to find a recursive formula to the number of possibilities to choose the color of k balls from n colors (every ball must have a color): This, in order to prove the next…
Guy
  • 21
  • 1
1
vote
2 answers

Fast way to order numbers

I have five numbers: 1,2,3,4,5 . I want to order these numbers with all the combination possibilities: 12345 12354 12435 12534... Is there an easy way to do it without listing all the combination possibilities one by one? Maybe I could make a…