Cal11 calculator

Calculate C N K

Reviewed by Calculator Editorial Team

C(n,k) represents the number of ways to choose k items from n items without regard to order. This is a fundamental concept in combinatorics with applications in probability, statistics, and computer science.

What is C(n,k)?

In combinatorics, C(n,k) (also written as "n choose k") calculates the number of combinations of k items selected from a larger set of n items. Unlike permutations, combinations do not consider the order of selection.

For example, if you have 5 different fruits and want to know how many ways you can choose 2 fruits to make a smoothie, C(5,2) would give you the answer. The order doesn't matter here - choosing an apple first and then a banana is the same as choosing a banana first and then an apple.

Note: C(n,k) is also known as the binomial coefficient and is often written as (n k) in mathematical notation.

Formula

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

Where:

  • n! (n factorial) is the product of all positive integers up to n
  • k! is the factorial of k
  • (n - k)! is the factorial of (n - k)

This formula counts all possible arrangements of k items from n items and then divides by the number of arrangements that would be counted multiple times if order mattered.

Examples

Example 1: Simple Combination

If you have 4 different books and want to know how many ways you can choose 2 books to read, the calculation is:

C(4,2) = 4! / (2! × (4-2)!) = 6

This means there are 6 possible pairs of books you could choose.

Example 2: Larger Set

For a lottery where you need to select 6 numbers from 49, the number of possible combinations is:

C(49,6) = 13,983,816

This shows the enormous number of possible combinations in larger sets.

Applications

C(n,k) is used in various fields:

  • Probability: Calculating the number of possible outcomes in probability problems
  • Statistics: Determining sample sizes and combinations in statistical analysis
  • Computer Science: Algorithms for generating combinations and permutations
  • Game Theory: Analyzing possible moves and strategies
  • Finance: Calculating the number of possible investment portfolios

Understanding combinations is essential for anyone working with discrete mathematics or probability-based fields.

FAQ

What is the difference between C(n,k) and P(n,k)?
C(n,k) calculates combinations where order doesn't matter, while P(n,k) calculates permutations where order does matter.
When would I use C(n,k) instead of P(n,k)?
Use C(n,k) when the order of selection doesn't matter (like choosing a team from a group). Use P(n,k) when order matters (like arranging a race).
What happens if k is greater than n?
C(n,k) is defined as 0 when k > n because you can't choose more items than are available.
Is C(n,k) the same as C(n,n-k)?
Yes, because choosing k items from n is the same as choosing (n-k) items to leave out.
How is C(n,k) used in probability?
It's used to calculate the number of favorable outcomes when selecting k items from n, which helps determine probabilities.