The Wayback Machine - https://web.archive.org/web/20241002024331/https://www.geeksforgeeks.org/combinations/
Open In App

Combinations

Last Updated : 25 Sep, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Combination is a way of choosing items from a set, such as (unlike permutations) the order of selection doesn’t matter. In smaller cases, it’s possible to count the number of combinations. Combination refers to the mixture of n things taken k at a time without repetition.

Example of Combinations:

Set A = {a, b, c}

The possible combinations of choosing 2 elements from the set A are:

  • {a, b}, {a, c}, {b, c}.

Similarly The possible permutations of choosing 2 elements are:

  • (a,b), (b,a), (a,c), (c,a), (b,c), (c,b)

Note: In Combinations, order doesn’t matter, for example (a, b) and (b, a) are counted as same.

In this article, we will learn about combinations in detail, along with their formulas, how to calculate combinations, principles of counting, the difference between permutations and combinations, etc.

Combinations in Maths

Combination is the choice of selecting r things from a group of n things without replacement and where the order of selection is not important.

The number of combinations when ‘r’ elements are selected out of a complete set of ‘n’ elements is denoted by nCr

nCr = n! / [(r !) × (n – r)!]

Example: Let n = 4 (E, F, G, H) and r = 2 (consisting of all the combinations of size 2). 

nCr = 4C2

= 4!/((4-2)!×2!) 

= 4×3×2×1 / 2×1×2×1 = 6

The six combinations are EF, EG, EH, FG, FH, and GH.

Combinations Meaning

Combinations refer to a way of selecting items from a larger set such that the order of selection does not matter.

Basic Principles of Counting

Counting various things in a specific manner is a basic concern of mathematicians. To solve this problem two basic principles of counting are given which include:

  • Fundamental Principle of Counting: For any event X which occurs in n different ways and another event Y which occurs in m different ways. Then the total number of occurrences of two events is = m x n.
  • Addition Principle: For any event X which occurs in m different ways and event Y which occurs in n different ways where both events are implicit i.e. both the events cannot occur together, then the occurrence of events either X or Y is m + n.

Combinations Formula

Combination formula is used to pick r things out of n different things, where the order of picking is not important, and replacement is not allowed.

Combinations

Permutations and Combinations

Permutation and combination have a lot of similarities but they also have some striking differences. For n different objects, we have to make r unique selections from this group of n objects.

The number of permutations of size r from n object is nPr here the order, of selection is not important so each selection is counted r! times. So the number of unique selections is nPr / r! We know that a unique selection of r things from the total of n things is called a combination (nCr). Thus,

nCr = nPr / r!

Relatioship Between Permutation and Combination

The main relatioship between Permutation and Combination are added below:

  • Permutation: Permutation involves arranging items in a specific order, considering the arrangement’s significance. For example, arranging letters to form words or seating people in a row.
  • Combination: Combination, on the other hand, focuses on selecting items from a set without regard to their order. It emphasizes the group of items chosen rather than their arrangement. For example, selecting a committee from a pool of candidates or choosing lottery numbers.

Difference Between Permutation and Combination

The main difference between Permutation and Combination are added below:

PermutationsCombinations

Permutation means total number of ways in which we can arrange elements in The combination order combination.

Combination means a total number of ways in which we can select some elements from a given set of elements.

Order in which the elements are placed is very important.

Order in which the elements are selected is not important.

For example, on tossing three coins, HHT is a different permutation from HTH.

In combination HHT is the same as HTH. The order does not matter.

Permutation can be made using repetition or without repetition of elements.

Combination is not concerned with repetition or withou

How to Calculate Probability of Combinations?

Probability of Combinations can be easily understood with the help of the examples given below:

Example:

  1. How many ways are possible to distribute 7 different candies to 3 people where each gets only 1 candy?
  2. In how many ways can the letters of the word ‘POWER’ be arranged?
  3. How many six-digit numbers can be formed with digits 2,3,5, 6, 7, and 9 and with distinct digits?

Solution:

For 1:

For the first people, we can choose any of the candy among the 7 candies available. Similarly, for the 2nd person we are left with 6 choices and for the 3rd, we will be having 5 choices.

So, the number of ways of distributing candies = 7 × 6 × 5 = 210 ways

For 2:

Letters of the word ‘POWER’ can be arranged in 5! ways i.e.

5 × 4 × 3 × 2 × 1 ways  = 120 ways.

For 3:

Number of distinct ways of forming 6-digit numbers with different digits is

6! = 6 × 5 × 4 × 3 × 2 × 1 ways  

= 720 ways.

What is Handshaking Problem?

Handshaking problem is one of the most interesting problems in mathematics. It is used to find that in a room full of people how many handshakes are required for everybody to shake everybody else’s hand exactly once?

Example: The table given below tells us about the minimum number of handshakes required for various groups of people.

Basically when there are 2 people there will be two handshakes and if there are three people there will be 3 handshakes and so on.

This many people we can count but let’s suppose there are thousands of people in a hall then we can’t count each handshake here the need for the combination arises.

Number of PeoplePossible CombinationsMinimum Handshake required
Two PeopleA-B 1 handshake
Three People

A-B

A-C 

B-C

3 handshake
Four People

A-B

A-C

A-D

B-C

B-D

C-D

 6 handshake

Handshaking Combination

It means the total number of people in a room doing the handshake with each other. With the help of combination formulas, it can easily be calculated. The formula for calculating the handshakes when there are n people available is given by,

  • Total Number of Handshakes = n × (n – 1)/2
  • Total Number of Handshakes = nC2

Article Related to Combinations:

Examples on Combinations

Example 1: In how many ways 6 boys can be arranged in a queue such that

a) Two particular boys of them are always together

b) Two particular boys of them are never together

Solution:

a) If two boys are always together, then they will be treated as one entity. Hence we can be arranged 5 boys in 5! ways. Also, two boys can arrange themselves in 2 different ways.

Therefore required arrangement = 5! × 2 = 120 × 2 = 240 ways.

b) Total number of permutations among 6 numbers is given by = 6! = 720.

In 240 cases 2 boys are always together.

Thus, for two boys who are never together no of ways will be = 720 – 240 = 480 ways.

Example 2: In a room of n people, how many handshakes are possible?

Solution:

To see the people present, and consider one person at a time. The first person will shake hands with n – 1 other people. The next person will shake hands with n-2 other people, not counting the first person again. Following this, it will give us a total number of

(n – 1) + (n – 2) + … + 2 + 1  

= n(n – 1)/ 2 handshakes.

Example 3: Another popular handshake problem starts out similarly with n>1 people at a party. Not being possible to shake hands with yourself, and not counting several times handshakes with the same person, the problem is to show that there will always present two people at the party, who had shaken hands the same number of times in the party.

Solution:

Solution to this problem starts by using Dirichlet’s box principle. If there exists a person at the party, who has shaken hands zero times, then every person which is there at the party has shaken hands with at most n-2 other people at the party. 

There are n-1 possible handshakes (from 0 to n-2), among n people there must be two who have shaken hands the same number of times. If there are zero persons, who has shaken hands zero times this means that all of the party guests have shaken hands at least once.

This also amounts to n-1 possible handshakes (from 1 to n-1).

Example 4: In the function, if every person shakes hands with every other in the party and there exists a total of 28 handshakes at the party, find the number of persons who were present in the function.

Solution:  

Suppose there are n persons present at a party and every person shakes hands with every other person.

Then, total number of handshakes = nC2 = n(n – 1)/2

n(n – 1)/2 = 28

n(n – 1) = 28 × 2

n(n – 1) = 56

n = 8

Combinations Class 11

In Class 11 mathematics, combinations are typically introduced as a fundamental concept in the chapter on Permutations and Combinations.

Also Check:

Practice Questions on Combinations in Maths

Q1. A classroom has 20 students, and a committee of 4 students needs to be formed to organize an upcoming event. In how many ways can this committee be chosen?

Q2. You have 5 different books on mathematics and want to select 3 to place on your desk for quick reference. In how many ways can you choose which 3 books to place on the desk?

Q3. A fruit shop offers baskets that can contain any combination of 3 different fruits from their selection of 5 different fruits (apple, banana, cherry, date, and elderberry). How many different fruit baskets can be made?

Q4. A lottery game requires you to choose 6 numbers out of a possible 49. How many different combinations of numbers can you choose?

Q5. From a pool of 12 jurors, a jury of 6 needs to be selected for a trial. In how many different ways can the jury be formed?

Conclusion – Combinations

Combination, a fundamental concept in mathematics, involves selecting items from a set without considering their order. This selection method is crucial in various scenarios, such as probability and statistical analyses, where the outcome depends on the presence or absence of items rather than their sequence. The formula to calculate combinations, denoted as [Tex]\binom{r}{n} [/Tex], is derived from factorial notation and represents the number of ways to choose r items from a set of n items without replacement.

Combinations – FAQs

What is a Combination? 

Combination is a way of arranging r different things out of n things for which the order of selection is not important.

How to Solve Combinations?

Combinations help us to calculate the total outcomes of an event when the order of outcomes does not matter. Combinations can be calculated with the formula,

nCr = n! / r! × (n – r)!

What is the Value of nCn?

Value of  nCn is calculated as,

nCn = n! / (n-n)!×n!  (0! = 1)

= n! / n! = 1

When do we use Combination and Permutation?

Permutation formulas are used when the order of selection matters and Combination formulas are used when the order of the permutation doesn’t matter.

What is the Combination Formula?

Combination formula is given as,

 nCr = n!/r!(n-r)!

What do you mean by Derangement?

When we shuffle the elements of a set so that no element appears in its original position it is called derangement of data.

Can repetitions occur in combinations?

Combinations usually involve distinct choices, but variations like combinations with repetition cater to scenarios where duplicates are allowed, such as selecting toppings for a pizza.

When are combinations useful?

Combinations are handy for scenarios like team formation, menu selection, or jury assembly, where the order of selection isn’t significant but the choice of items is.

How do combinations differ from permutations?

Combinations disregard order, while permutations consider it, impacting scenarios like choosing committee members (combination) versus arranging a sequence (permutation).



Previous Article
Next Article

Similar Reads

Difference between Permutations and Combinations | Permutations vs Combinations
Difference between Permutations and Combinations: Probability is concerned with the chance or possibility that an event may occur or not occur if there are 'n' possibilities. Put simply, probability tells us the percentage of happening of an event. Probability can be expressed as a number from 0 to 1 or as a percentage.  In this article, we will di
7 min read
Problem on permutations and combinations | Set 2
Prerequisite : Permutation and Combination Given a polygon of m sides, count number of triangles that can be formed using vertices of polygon. Answer : [m (m - 1)(m - 2) / 6] Explanation : There are m vertices in a polygon with m sides. We need to count different combinations of three points chosen from m. So answer is mC3 = m * (m - 1) * (m - 2) /
4 min read
Print all combinations generated by characters of a numeric string which does not exceed N
Given a numeric string S of length M and an integer N, the task is to find all distinct combinations of S (repetitions allowed) that are at most N. Examples: Input: S = "124", N = 100Output: 1, 11, 12, 14, 2, 21, 22, 24, 4, 41, 42, 44Explanation: Combinations "111", "112", "122", "124", "412" are greater than 100. Therefore, these combinations are
7 min read
Class 11 NCERT Solutions- Chapter 7 Permutations And Combinations - Exercise 7.3
Theorem 1: The number of permutations of n different objects taken r at a time, where 0 < r â‰Ī n and the objects do not repeat is n(n-1)(n – 2). . .(n – r + 1), which is denoted by nPr = [Tex]\frac{n!}{(n-r)!}[/Tex] Theorem 2: The number of permutations of n different objects taken r at a time, where repetition is allowed, is nr. Theorem 3: The n
15 min read
Class 11 RD Sharma Solutions - Chapter 17 Combinations- Exercise 17.1 | Set 2
Question 11. If 28C2r : 24C2r-4=225:11, find r. Solution: (28!/(28-2r)!2r!)/(24!/(24-2r+4)!(2r-4)!)=225/11 28x27x26x25/2r(2r-1)(2r-2)(2r-3)=225/11 28x27x26x25x11=225x(2r)(2r-1)(2r-2)(2r-3) 28x3x26x11=2r(2r-1)(2r-2)(2r-3) 14x2x3x13x2x11=2r(2r-1)(2r-2)(2r-3) 14x13x12x11=2r(2r-1)(2r-2)(2r-3) 2r=14 r=7 Question 12. If nC4,nC5 and nC6 are in AP, then fi
2 min read
Class 11 RD Sharma Solutions - Chapter 17 Combinations- Exercise 17.3
Question 1: How many different words, each containing 2 vowels and 3 consonants can be formed with 5 vowels and 17 consonants. Solution: Given, word contains 2 vowels and 3 consonants. So, we need to choose 2 vowels out of 5 vowels and 3 consonants out of 17 consonants. This can be done in [Tex]^5C_3.^{17}C_3 [/Tex] ways. Also, we need number of di
11 min read
Class 11 RD Sharma Solutions - Chapter 17 Combinations- Exercise 17.2 | Set 1
Question 1. From a group of 15 cricket players, a team of 11 players is to be chosen. In how many ways can this be done? Solution: We are given, Total number of players = 15 Number of players to be chosen = 11 So, number of ways = 15C11 =[Tex]\frac{15!}{11!4!}[/Tex] =[Tex]\frac{15×14×13×12}{4×3×2×1}[/Tex] = 15 × 7 × 13 = 1365 Therefore, the total n
9 min read
Class 11 RD Sharma Solutions - Chapter 17 Combinations- Exercise 17.2 | Set 2
Question 12. In an examination, a student to answer 4 questions out of 5 questions; questions 1 and 2 are however compulsory. Determine the number of ways in which the student can make a choice. Solution: Total number of questions = 5 Total number of questions to be answered = 4 As 2 questions are compulsory to answer, student can choose only 2 que
8 min read
Class 11 RD Sharma Solutions - Chapter 17 Combinations- Exercise 17.2 | Set 3
Question 23. We wish to select 6 persons from 8, but if the person A is chosen, then B must be chosen. In how many ways can the selection be made? Solution: Total number of persons = 8 Number of persons to be selected = 6 It is given that if the person A is chosen, then B must be chosen. Therefore, A and B are chosen together. So, number of selecti
7 min read
How many different combinations of nickels, dimes and quarters can a piggy bank contain if it has 20 coins in it?
Given a definite number of elements, their different arrangements, either by choosing one after the other, or some of them, or all of them at a time are called permutations. They are regarded as the process of assigning a linear sequence to the members of a given sequence. It is also referred to as the process of re-ordering the elements of a given
5 min read
Resistors in Series and Parallel Combinations
Resistors are devices that obstruct the flow of electric current in the circuit. They provide the hindrance to the path of the current which flows in the circuit. Resistors consume the current in any circuit and convert them to other forms of energy as required. Various resistors can be added to the circuits as per our requirements. Two or more res
9 min read
Generate all possible combinations of K numbers that sums to N
Given two integers N and K, the task is to find all valid combinations of K numbers that adds up to N based on the following conditions: Only numbers from the range [1, 9] used.Each number can only be used at most once.Examples: Input: N = 7, K = 3Output: 1 2 4Explanation: The only possible combination is of the numbers {1, 2, 4}. Input: N = 9, K =
9 min read
NCERT Solutions Class 11 - Chapter 6 Permutations And Combinations - Miscellaneous Exercise
Question 1. How many words, with or without meaning, each of 2 vowels and 3 consonants can be formed from the letters of the word DAUGHTER?Solution: In the word "DAUGHTER", there are 3 vowels, namely, A, U, E, and 5 consonants, namely, D, G, H, T, R. Number of ways of selecting 2 vowels out of 3 = 3C2 = [Tex]\frac{3!}{2!1!}[/Tex] = 3. Number of way
9 min read
NCERT Solutions Class 11 - Chapter 6 Permutations And Combinations - Exercise 6.2
Question 1. Evaluate.i) 8! Solution: 8! = 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 = 56 × 30 × 12 × 2 = 1680 × 24 = 40320 ii) 4! – 3!Solution: 4! -3! = 4 × 3! - 3! = 3! × (4 - 1) = 3! × 3 = 6 × 3 = 18 Question 2. Is 3! + 4! = 7! ?Solution: L.H.S = 3! + 4! = 3! + 4 * 3! = 3! * (1 + 4) = 3! * 5 = 60 R.H.S = 7! = 7 × 6 × 5 × 4 × 3 × 2 × 1 = 42 × 20 × 6 = 42 × 12
2 min read
NCERT Solutions Class 11 - Chapter 6 Permutations And Combinations - Exercise 6.3
Theorem 1: The number of permutations of n different objects taken r at a time, where 0 < r â‰Ī n and the objects do not repeat is  n(n-1)(n – 2). . .(n – r + 1), which is denoted by nPr = [Tex]\frac{n!}{(n-r)!}[/Tex] Theorem 2: The number of permutations of n different objects taken r at a time, where repetition is allowed, is nr. Theorem 3: The
15 min read
NCERT Solutions Class 11 - Chapter 6 Permutations And Combinations - Exercise 6.1
Problem 1: How many 3-digit numbers can be formed from the digits 1, 2, 3, 4 and 5 assuming that - (i) repetition of the digits is allowed?Solution: Answer: 125. Method: Here, Total number of digits = 5 Let 3-digit number be XYZ. Now the number of digits available for X = 5, As repetition is allowed, So the number of digits available for Y and Z wi
4 min read
Combinations Formula with Examples
Combinations are way of selecting items from a collection of items in combinations we do not look at the order of selecting items, but our main attention is on the total number of selected items from a given set of items. Combinations formula is main concept for figuring out how many ways you can choose items from a larger group, where the order do
8 min read
Real-Life Applications of Permutations and Combinations
When we learn permutations and combinations as abstract mathematical concepts, we hardly think of their role in many real-life situations. From selecting an appropriate size while shopping to dealing with complex problems in different fields such as science, technology, business, and many more, various math tools offer practical solutions to situat
7 min read
Find the number of permutations and combinations if n = 12 and r = 2
Permutation is known as the process of organizing the group, body, or numbers in order, selecting the body or numbers from the set, is known as combinations in such a way that the order of the number does not matter. In mathematics, permutation is also known as the process of organizing a group in which all the members of a group are arranged into
3 min read
NCERT Solutions Class 11 - Chapter 6 Permutations And Combinations - Exercise 6.4
Question 1. If nC8=nC2, find nC2.Solution: We know that, nCr=nC(n-r) For the given question, r=8 and n-r=2 Hence, n=r+(n-r)=8+2=10 OR Using formula (1), nC8=nC(n-r) [Tex]\frac{n!}{8!(n-8)!}=\frac{n!}{2!(n-2)!} \\i.e. \frac{n}{8(n-8)}=\frac{n}{2(n-2)}[/Tex] 8(n-8)=2(n-2) 4(n-8)=n-2 4n-32=n-2 3n=30 n=10 As n=10, 10C2 = [Tex]\frac{10!}{2!8!}=\frac{10*
4 min read
Calculate Combinations and Permutations in R
Combinatorics is an important aspect of data analysis and statistics. It is used to solve many aptitude-based and real-life problems. While permutations do take into account the order, the combinations are independent of it. Therefore, permutation is considered to be an ordered combination. R language allows us the ability to invoke many packages t
6 min read
Linear Combinations: Definition & Equation
Linear combination involves combining a set of vectors by multiplying each vector by a scalar (a real number) and then adding the results together. For example, if you have vectors v1 and v2​, and scalars a and b, the expression a × v1 + b × v2 is a linear combination of those vectors. This concept isn't limited to just vectors. Linear combinations
7 min read
Permutations and Combinations
Permutation and Combination are the most fundamental concepts in mathematics and with these concepts, a new branch of mathematics is introduced to students i.e., combinatorics. Permutation and Combination are the ways to arrange a group of objects by selecting them in a specific order and forming their subsets. To arrange groups of data in a specif
15 min read
nCr| Combinations Formula
nCr represents the number of ways to choose r items from a set of n distinct items without regard to the order of selection. Combinations Formula is one of the countless formulas in the world of mathematics, which plays a pivotal role in solving problems. nCr is expressed as n!/r!(n-r)! They are widely used in probability and statistics to calculat
8 min read
How many different 3 letter combinations can be made from Alphabet?
Answer: 15600 combinations can be made when repetition is not allowed and 17576 combinations can be made when repetition of alphabets is allowed.In this article, we have learned more about the combination definition, its formula, and its uses in detail. CombinationsIt is defined as the process of choosing one, two, or a few elements from a given se
6 min read
Class 11 NCERT Solutions - Chapter 7 Permutations And Combinations - Exercise 7.1
Chapter 7 of the Class 11 NCERT Mathematics textbook, titled "Permutations and Combinations," introduces students to fundamental concepts in counting and arranging objects. This chapter focuses on the principles of permutations and combinations, which are essential for solving various problems in probability and combinatorial mathematics. Exercise
6 min read
Class 11 NCERT Solutions - Chapter 7 Permutations And Combinations - Exercise 7.2
Chapter 7 of the Class 11 NCERT Mathematics textbook, titled "Permutations and Combinations," delves into the principles of counting and arranging objects. This chapter covers the concepts of permutations and combinations, which are crucial for solving problems involving the arrangement and selection of objects. Exercise 7.2 presents problems that
4 min read
Class 11 NCERT Mathematics Solutions- Chapter 7 Permutations And Combinations - Exercise 7.4
Chapter 7 of the Class 11 NCERT Mathematics textbook, "Permutations and Combinations," explores fundamental concepts of counting and arrangement. Exercise 7.4 focuses on applying these concepts to solve problems related to permutations and combinations, enhancing students' ability to handle various counting scenarios. NCERT Solutions for Class 11 -
6 min read
Class 11 RD Sharma Solutions- Chapter 17 Combinations- Exercise 17.1 | Set 1
Chapter 17 of RD Sharma’s Class 11 Mathematics textbook focuses on Combinations a crucial topic in combinatorics. Combinations involve selecting items from the larger set where the order of the selection does not matter. This chapter aims to develop an understanding of how to calculate and analyze different ways of choosing items that have practica
3 min read
Class 11 NCERT Solutions- Chapter 7 Permutations And Combinations - Miscellaneous Exercise on Chapter 7
Chapter 7 of the Class 11 NCERT Mathematics textbook delves into the Permutations and Combinations essential topics in the probability and combinatorics. This chapter explores the fundamental principles of the counting and arrangement which are crucial for the solving various problems in the mathematics and real-world scenarios. Understanding these
11 min read