Quick Answer
C(10, 3) = 120 combinations and P(10, 3) = 720 permutations. The permutation count is 6 times larger because 3! = 6.
Enter n (total items) and r (items chosen). Both must be non-negative integers with r ≤ n.
Common Examples
| Input | Result |
|---|---|
| n=10, r=3 | C(10,3) = 120, P(10,3) = 720 |
| n=52, r=5 | C(52,5) = 2,598,960, P(52,5) = 311,875,200 |
| n=20, r=4 | C(20,4) = 4,845, P(20,4) = 116,280 |
| n=6, r=6 | C(6,6) = 1, P(6,6) = 720 |
| n=100, r=2 | C(100,2) = 4,950, P(100,2) = 9,900 |
How It Works
Factorial
The factorial of a non-negative integer n, written n!, is the product of all positive integers from 1 to n:
n! = n * (n-1) * (n-2) * … * 2 * 1
By definition, 0! = 1. Factorials grow extremely fast: 10! = 3,628,800 and 20! = 2,432,902,008,176,640,000.
Combinations (n Choose r)
A combination is a selection of r items from n items where order does not matter. The number of combinations is:
C(n, r) = n! / (r! * (n - r)!)
This is also written as “n choose r” or the binomial coefficient. For example, the number of 5-card poker hands from a 52-card deck is C(52, 5) = 2,598,960.
Combinations have the symmetry property: C(n, r) = C(n, n-r). Choosing which items to include is equivalent to choosing which items to exclude.
Permutations
A permutation is an arrangement of r items from n items where order matters. The number of permutations is:
P(n, r) = n! / (n - r)!
For example, the number of ways to award gold, silver, and bronze medals to 3 out of 10 athletes is P(10, 3) = 720.
Relationship Between Combinations and Permutations
P(n, r) = C(n, r) * r!
Each combination of r items can be rearranged in r! ways to produce distinct permutations. So permutations always equal combinations multiplied by r!.
Worked Example
Find C(10, 3) and P(10, 3).
C(10, 3) = 10! / (3! * 7!) = (10 * 9 * 8) / (3 * 2 * 1) = 720 / 6 = 120.
P(10, 3) = 10! / 7! = 10 * 9 * 8 = 720.
Verification: P(10, 3) / C(10, 3) = 720 / 120 = 6 = 3!. This confirms the relationship P = C * r!.
A practical example: choosing 3 committee members from 10 people gives 120 combinations (order does not matter). Assigning president, vice president, and secretary from 10 people gives 720 permutations (order matters).
CalculateY