Permutations and combinations have uses in math classes and in daily life. Thankfully, they are easy to calculate once you know how. Unlike permutations , where group order matters, in combinations, the order doesn't matter. [1] X Research source Combinations tell you how many ways there are to combine a given number of items in a group. To calculate combinations, you just need to know the number of items you're choosing from, the number of items to choose, and whether or not repetition is allowed (in the most common form of this problem, repetition is not allowed).
Steps
-
Consider an example problem where order does not matter and repetition is not allowed. In this kind of problem, you won't use the same item more than once.
- For instance, you may have 10 books, and you'd like to find the number of ways to combine 6 of those books on your shelf. In this case, you don't care about order - you just want to know which groupings of books you could display, assuming you only use any given book once.
- This kind of problem is often labeled as , , , or "n choose r ".
- In all of these notations, is the number of items you have to choose from (your sample) and is the number of items you're going to select. [2] X Research source
-
Know the formula: . [3] X Research source [4] X Research source
- The formula is similar the one for permutations but not exactly the same. Permutations can be found using . The combination formula is slightly different because order no longer matters; therefore, you divide the permutations formula by in order to eliminate the redundancies. [5] X Research source You are essentially reducing the result by the number of options that would be considered a different permutation but the same combination (because order doesn't matter for combinations). [6] X Research source [7] X Research source
Advertisement -
Plug in your values for and .
- In the case above, you would have this formula: . It would simplify to .
-
Solve the equation to find the number of combinations. You can do this either by hand or with a calculator.
- If you have a calculator available, find the factorial setting and use that to calculate the number of combinations. If you're using Google Calculator, click on the x! button each time after entering the necessary digits.
- If you have to solve by hand, keep in mind that for each factorial
, you start with the main number given and then multiply it by the next smallest number, and so on until you get down to 0.
- For the example, you can calculate 10! with (10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1), which gives you 3,628,800. Find 4! with (4 * 3 * 2 * 1), which gives you 24. Find 6! with (6 * 5 * 4 * 3 * 2 * 1), which gives you 720.
- Then multiply the two numbers that add to the total of items together. In this example, you should have 24 * 720, so 17,280 will be your denominator.
- Divide the factorial of the total by the denominator, as described above: 3,628,800/17,280.
- In the example case, you'd do get 210. This means that there are 210 different ways to combine the books on a shelf, without repetition and where order doesn't matter.
Peter J. Cameron, MathematicianTo calculate the number of r-combinations from a set of n elements, we use the binomial coefficient notation C(n,r), which gives the formula C(n,r) = n! / (r!(n-r)!). This formula counts the number of ways to choose an unordered subset of r elements from a set of n elements. For example, say we want to know the number of ways to pick a committee of 5 people from a group of 12. Here, n=12 and r=5. Plugging into the formula, we get C(12,5) = 12! / (5!(12-5)!) = 792.
-
Consider an example problem where order does not matter but repetition is allowed. In this kind of problem, you can use the same item more than once.
- For instance, imagine that you're going to order 5 items from a menu offering 15 items; the order of your selections doesn't matter, and you don't mind getting multiples of the same item (i.e., repetitions are allowed).
- This kind of problem can be labeled as . You would generally use to represent the number of options you have to choose from and to represent the number of items you're going to select. [8] X Research source Remember, in this kind of problem, repetition is allowed and the order isn't relevant.
- This is the least common and least understood type of combination or permutation, and isn't generally taught as often. [9] X Research source Where it is covered, it is often also known as a k -selection, a k -multiset, or a k -combination with repetition. [10] X Research source
-
-
Plug in your values for and .
- In the example case, you would have this formula: . It would simplify to .
-
Solve the equation to find the number of combinations. You can do this either by hand or with a calculator.
- If you have a calculator available, find the factorial setting and use that to calculate the number of combinations. If you're using Google Calculator, click on the x! button each time after entering the necessary digits.
- If you have to solve by hand, keep in mind that for each factorial , you start with the main number given and then multiply it by the next smallest number, and so on until you get down to 0.
- For the example problem, your solution should be 11,628. There are 11,628 different ways you could order any 5 items from a selection of 15 items on a menu, where order doesn't matter and repetition is allowed.
Community Q&A
-
QuestionFor: 6 starters 10 mains 7 desserts, how many different three course meals?AlexTop AnswererYou can use what is called a “counting method” or by creating a tree. You don’t actually need the formula; you can simply do 6x10x7 and you will get the answer, which is 420.
-
QuestionHow many combinatioons of 2 are in 32 numbers?AlexTop AnswererThere are 496 combinations without repetition. Here’s the formula: 32!/(32-2)!*2! = 32*31/2! = 496.
Tips
- Some graphing calculators offer a button to help you solve combinations without repetition quickly. It usually looks like n C r . If your calculator has one, hit your value first, then the combination button, and then your value. [13] X Research sourceThanks
References
- ↑ https://www.calculatorsoup.com/calculators/discretemathematics/combinations.php
- ↑ https://betterexplained.com/articles/easy-permutations-and-combinations/
- ↑ https://betterexplained.com/articles/easy-permutations-and-combinations/
- ↑ https://www.mathsisfun.com/combinatorics/combinations-permutations.html
- ↑ https://betterexplained.com/articles/easy-permutations-and-combinations/
- ↑ https://medium.com/i-math/combinations-permutations-fa7ac680f0ac
- ↑ https://www.mathsisfun.com/combinatorics/combinations-permutations.html
- ↑ https://betterexplained.com/articles/easy-permutations-and-combinations/
- ↑ https://www.quora.com/What-is-Combinations-with-repetition
- ↑ https://en.wikipedia.org/wiki/Combination
- ↑ https://www.quora.com/What-is-Combinations-with-repetition
- ↑ https://www.mathsisfun.com/combinatorics/combinations-permutations.html
- ↑ https://www.dummies.com/article/technology/electronics/graphing-calculators/permutations-and-combinations-and-the-ti-84-plus-160925/
About This Article
Reader Success Stories
- "These formulas are useful for coding interview questions. I.e. they help to get a job as a Software Engineer."