๐ข Combination Formula
Definition and properties of C(n,k)
Related Calculators
Combination Formula Calculator Guide
This tool simultaneously calculates both the permutation P(n,k) and combination C(n,k) for choosing k elements from n. Permutation considers the order of elements, while combination does not โ this is the fundamental difference between the two.
The combination number C(n,k), also known as the "binomial coefficient," is ubiquitous in the binomial theorem, probability theory, and statistics. Whether calculating lottery winning probabilities, designing sampling schemes, or solving combinatorial optimization problems, combination calculations are essential. This tool offers simple, intuitive input and clear results at a glance.
Permutation and Combination Core Formulas
ใPermutationใP(n,k) = A(n,k) = n! / (n-k)! Meaning: Number of ways to arrange k of n distinct elements in order ใCombinationใC(n,k) = n! / (k! ร (n-k)!) Meaning: Number of ways to choose k of n distinct elements (order doesn't matter) ใImportant Propertiesใ C(n,k) = C(n, n-k) (Symmetry) C(n,0) = C(n,n) = 1 C(n,1) = n Pascal's Rule: C(n,k) = C(n-1,k-1) + C(n-1,k)
Practical Examples
Important Notes
Application Scenarios
- - Lottery analysis: Calculate winning probabilities and expected returns for various lotteries
- - Sampling statistics: Determine sample sizes, design stratified sampling schemes
- - Cryptography: Calculate brute force combination space sizes
- - Tournament scheduling: Calculate total matches in round-robin C(n,2)
- - Biological genetics: Gene combination possibility analysis
Permutation vs Combination In-Depth
The essential difference between permutation and combination is whether order matters. An intuitive way to understand: if the question is "select" use combination; if "arrange" use permutation.
For example: choosing 2 books from 5 to give to a friend โ C(5,2)=10 ways; but if giving to two different friends (who gets which matters) โ P(5,2)=20 ways.
In programming interviews, permutation and combination problems are also common topics, often involving backtracking algorithms and dynamic programming techniques. Mastering permutation and combination calculations is the foundation for solving such problems.