Cal11 calculator

Calculating N Choose K in Spanish

Reviewed by Calculator Editorial Team

The combination formula n choose k, also known as "n combinations k" or "nCk", calculates the number of ways to choose k items from a set of n items without regard to order. This is a fundamental concept in combinatorics with applications in probability, statistics, and computer science.

What is n choose k?

In combinatorics, n choose k represents the number of ways to select k elements from a set of n distinct elements without considering the order of selection. This is often written as C(n, k), nCk, or (n choose k).

The calculation is fundamental in probability theory, where it's used to determine the number of possible outcomes in scenarios with combinations. For example, calculating the number of possible poker hands or lottery combinations.

Note: n choose k is different from permutations, where order matters. For permutations, you would use the formula P(n, k) = n! / (n-k)!. Combinations are used when the order of selection doesn't matter.

Formula

The formula for n choose k is:

C(n, k) = n! / (k! × (n - k)!)

Where:

  • n! = factorial of n (n × (n-1) × ... × 1)
  • k! = factorial of k
  • (n - k)! = factorial of (n - k)

This formula calculates the number of ways to choose k items from n items without regard to order. The factorial function grows very quickly, so for large values of n and k, the calculation can become computationally intensive.

Examples

Example 1: Choosing 2 cards from a deck of 5

If you have a deck of 5 cards and want to know how many different 2-card combinations are possible, you would calculate C(5, 2).

C(5, 2) = 5! / (2! × (5-2)!) = 5! / (2! × 3!) = (120) / (2 × 6) = 10

There are 10 possible combinations of 2 cards from a 5-card deck.

Example 2: Selecting a committee of 3 from 10 people

If you need to form a committee of 3 people from a group of 10, the number of possible committees is C(10, 3).

C(10, 3) = 10! / (3! × (10-3)!) = 10! / (3! × 7!) = (10 × 9 × 8) / (3 × 2 × 1) = 120

There are 120 possible ways to select a committee of 3 from 10 people.

FAQ

What is the difference between combinations and permutations?

Combinations (n choose k) count the number of ways to choose k items from n without regard to order. Permutations count the number of ways to arrange k items from n where order matters. For example, the number of ways to arrange 3 letters from ABC is 6 (ABC, ACB, BAC, BCA, CAB, CBA), while the number of combinations is 1 (ABC).

When would I use n choose k?

You would use n choose k when you need to calculate the number of possible groups or selections where the order doesn't matter. Common applications include calculating lottery odds, poker hand probabilities, and any scenario where you need to count unordered subsets.

What happens if k is greater than n?

If k is greater than n, the combination C(n, k) is mathematically 0 because it's impossible to choose more items than are available in the set. The calculator will handle this case by returning 0.