Combination Calculator (nCr)

Calculate the number of ways to choose r items from n items without regard to order.

Combinations (nCr)

C(10, 3) = 120

n!

10! = 3,628,800

r!

3! = 6

(n-r)!

(10-3)! = 5,040

Combinations by r Value

Formula: n! / (r! × (n-r)!)

r ValueCombinations
C(10, 0)1
C(10, 1)10
C(10, 2)45
C(10, 3)120
C(10, 4)210
C(10, 5)252
C(10, 6)210
C(10, 7)120
C(10, 8)45
C(10, 9)10
C(10, 10)1

Understanding Combinations

What Are Combinations?

In mathematics, a combination is a selection of items from a larger set where the order of selection does not matter. If you have a deck of 52 cards and want to know how many different 5-card hands are possible, you use combinations. The answer is C(52,5) = 2,598,960 possible hands. This fundamental concept appears throughout probability, statistics, and everyday problem-solving.

The Combination Formula

The number of combinations of n items taken r at a time is calculated using the formula C(n,r) = n! / (r! × (n-r)!), where the exclamation mark denotes factorial. A factorial is the product of all positive integers up to that number. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. The formula divides by r! and (n-r)! to eliminate counting the same selections in different orders.

Combinations vs Permutations

The key difference is whether order matters. Combinations count selections where order does not matter (choosing 3 flavors of ice cream). Permutations count arrangements where order matters (arranging 3 books on a shelf). The permutation formula is P(n,r) = n! / (n-r)!, which is always greater than or equal to the combination count. When r = n, there is only one combination but n! permutations.

Real-World Applications

Combinations appear in lottery probability calculations (choosing 6 numbers from 49), team selection (choosing 5 players from 12), menu planning (choosing 3 dishes from 10), committee formation, and quality control sampling. In computer science, combinations are used in algorithm analysis, cryptography, and network design. The binomial coefficient C(n,r) also appears in the binomial theorem and Pascal's triangle.

Properties of Combinations

Several important properties make combinations easier to work with. C(n,r) = C(n,n-r), known as the symmetry property. C(n,0) = 1 (there is one way to choose nothing). C(n,1) = n. C(n,n) = 1. The sum of all C(n,r) for r from 0 to n equals 2^n. These properties are useful for verification and simplification in combinatorial calculations.

Understanding Combinations: Selection Without Order

Combinations count the number of ways to select items from a collection where the order of selection does not matter. This fundamental concept in combinatorics distinguishes itself from permutations by ignoring arrangement, focusing purely on group membership. Whether forming committees, selecting lottery numbers, choosing toppings, or analyzing genetic combinations, understanding combinations is essential for probability theory, statistics, and countless real-world applications. The combination formula provides a precise mathematical tool for counting possibilities in any scenario where you select a subset from a larger set without regard to sequence.

The Combination Formula and Calculation

The number of combinations of n items taken r at a time is calculated using: C(n,r) = n! / (r!(n-r)!), also written as "n choose r" or nCr. Here, n! (n factorial) represents the product of all positive integers up to n. For example, C(10,3) = 10! / (3! × 7!) = (10 × 9 × 8) / (3 × 2 × 1) = 120. Key properties include: C(n,0) = 1 (one way to choose nothing), C(n,1) = n, C(n,n) = 1, and the symmetry property C(n,r) = C(n,n-r). Pascal's Triangle provides a visual method for finding combinations, where each number equals the sum of the two numbers above it, directly representing the identity C(n,r) = C(n-1,r-1) + C(n-1,r).

Combinations vs. Permutations: When to Use Which

The critical distinction between combinations and permutations is whether order matters. Use combinations when order is irrelevant: choosing 3 people from 10 for a committee (the committee is the same regardless of selection order), selecting lottery numbers, picking cards from a deck. Use permutations when order matters: arranging 3 people in specific positions (president, secretary, treasurer), creating passwords, determining race placements. The relationship is P(n,r) = C(n,r) × r!, meaning permutations equal combinations multiplied by the number of ways to arrange the selected items. When in doubt, ask: "Would choosing the same items in a different order create a different outcome?" If yes, use permutations; if no, use combinations.

Real-World Applications of Combinations

Combinations appear in virtually every field involving selection or probability. In lottery analysis, the odds of matching 6 numbers from 49 are C(49,6) = 13,983,816 to 1. In poker, the number of possible 5-card hands is C(52,5) = 2,598,960. In quality control, combinations determine the number of ways to select items for testing from production batches. In drug development, combinations help calculate the number of possible molecular configurations from available components. In team management, combinations count possible team compositions from available personnel. In cryptography, understanding combinations helps analyze the strength of systems based on the number of possible key selections.

Advanced Combination Concepts

Beyond basic combinations, several advanced concepts extend the framework. Combinations with repetition allow selecting the same item multiple times: C(n+r-1, r). Stars and bars is a visual method for solving combination problems with indistinguishable items. The binomial theorem uses combinations as coefficients: (x+y)^n = ΣC(n,k)x^(n-k)y^k, connecting combinations to algebra. Multinomial coefficients extend to partitioning sets into multiple groups of specified sizes. The inclusion-exclusion principle handles combinations with restrictions, counting selections that avoid certain elements or combinations.

Practical Example

Scenario: Committee Selection

A company needs to form a 3-person committee from 10 employees. Using combinations: C(10,3) = 10! / (3! × 7!) = 120 possible committees. If 4 of the 10 employees are women, the number of committees with exactly 2 women is C(4,2) × C(6,1) = 6 × 6 = 36 possible committees.

Frequently Asked Questions

What is the difference between nCr and nPr?

nCr (combinations) counts selections where order does not matter. nPr (permutations) counts arrangements where order matters. nPr = nCr × r!, so permutations always gives a larger or equal number.

Can r be larger than n?

No. If r > n, the number of combinations is 0 because you cannot choose more items than are available. The calculator handles this case automatically.

What is the largest combination this calculator can handle?

JavaScript can accurately handle factorials up to about 21! before losing precision. For larger values, the calculator uses logarithmic approximation to provide results in scientific notation.

How is this used in probability?

Combinations are used to calculate the number of favorable outcomes divided by total possible outcomes. For example, the probability of getting exactly 3 heads in 5 coin flips is C(5,3)/2^5 = 10/32 = 31.25%.

What is Pascal's triangle?

Pascal's triangle is a triangular array where each number is C(n,r). Row n contains C(n,0), C(n,1), ..., C(n,n). Each interior number is the sum of the two numbers directly above it.

Disclaimer: This calculator uses standard combinatorial mathematics. Results may lose precision for very large values of n due to JavaScript number limitations.

Sources and References

  1. Wikipedia. "Combination." en.wikipedia.org
  2. Wikipedia. "Binomial coefficient." en.wikipedia.org
  3. Wikipedia. "Pascal's triangle." en.wikipedia.org

Comments