What is the combination formula C(n,r)?+
C(n,r) = n! / (r! x (n-r)!), where n! = n x (n-1) x ... x 2 x 1. The multiplicative form is faster to compute: C(n,r) = [n x (n-1) x ... x (n-r+1)] / [r x (r-1) x ... x 1]. For C(10,3): numerator = 10 x 9 x 8 = 720; denominator = 3 x 2 x 1 = 6; result = 120. This counts unordered selections of r items from a set of n.
How is C(n,r) different from P(n,r)?+
C(n,r) counts unordered selections (order does not matter). P(n,r) counts ordered arrangements (order matters). P(n,r) = r! x C(n,r). For C(5,3) = 10, each of those 10 groups can be arranged in 3! = 6 different orders, giving P(5,3) = 60. Use combinations for committees, card hands, or any grouping. Use permutations for rankings, passwords, or any ordered sequence.
What is C(n,0) and why does it equal 1?+
C(n,0) = 1 for any n. The formula gives n! / (0! x n!) = n! / (1 x n!) = 1. The combinatorial interpretation: there is exactly one way to choose zero items from any set, and that is the empty selection. This is a base case used in Pascal's Triangle (every row starts and ends with 1) and in the binomial theorem where the x^0 term has coefficient C(n,0) = 1.
What is Pascal's Triangle and how does it relate to combinations?+
Pascal's Triangle is a triangular array where each entry is the sum of the two entries above it. The n-th row (starting from n=0) contains the values C(n,0), C(n,1), ..., C(n,n). Row 4 is: 1, 4, 6, 4, 1 which equals C(4,0)=1, C(4,1)=4, C(4,2)=6, C(4,3)=4, C(4,4)=1. The sum of row n = 2^n, so row 4 sums to 16. Pascal's Triangle lets you find combinations quickly for small n by reading off entries.
What is the combination formula when r equals n?+
C(n,n) = 1. The formula gives n! / (n! x 0!) = n! / (n! x 1) = 1. This makes sense: there is exactly one way to choose all n items from a set of n, and that is to take everything. Similarly, C(n,1) = n (there are n ways to choose exactly one item) and C(n,2) = n(n-1)/2 (the number of unique pairs from n items).
How do I calculate large combinations like C(52,5) by hand?+
Use the multiplicative formula and cancel common factors as you go: C(52,5) = (52 x 51 x 50 x 49 x 48) / (5 x 4 x 3 x 2 x 1). Simplify step by step: 50/5 = 10, 48/4 = 12, 51/3 = 17, then 52 x 17 = 884, 884 x 10 = 8,840, 8,840 x 49 = 433,160, 433,160 x 12 / 2 = 433,160 x 6 = 2,598,960. Canceling factors early prevents intermediate overflow and makes the arithmetic manageable.
What is a combination vs a subset?+
They are the same thing. Choosing r items from a set of n is equivalent to selecting an r-element subset of an n-element set. C(n,r) counts the number of r-element subsets of an n-element set. The total number of all subsets of an n-element set (including the empty set and the full set) is the sum from r=0 to n of C(n,r), which equals 2^n. A set of 3 items has 2^3 = 8 subsets: the empty set plus 3 one-element subsets plus 3 two-element subsets plus the full set.
How does the combination formula apply to probability?+
Combinations are fundamental to probability calculations for equally likely outcomes. The probability of an event A = (favorable outcomes) / (total outcomes). For the lottery C(49,6) = 13,983,816 total outcomes. If 1 ticket wins, P(win) = 1/13,983,816. For poker, P(royal flush) = 4 / C(52,5) = 4 / 2,598,960 = 0.0015%. Hypergeometric probability uses combinations to compute the probability of drawing k specific items from a population of N with K successes.
What is the binomial coefficient and how is it related to combinations?+
The binomial coefficient is another name for C(n,r), often written as (n choose r) with n on top and r on the bottom in parentheses. It appears in the binomial theorem: (x + y)^n = sum from k=0 to n of C(n,k) x^k y^(n-k). The coefficient C(n,k) tells you how many terms in the expansion have x^k y^(n-k). For (x+y)^4: coefficients are C(4,0)=1, C(4,1)=4, C(4,2)=6, C(4,3)=4, C(4,4)=1, giving x^4 + 4x^3y + 6x^2y^2 + 4xy^3 + y^4.
Can the combination formula give a result greater than 1 billion?+
Yes, for large enough n and r. C(49,6) = 13,983,816. C(100,50) = 100,891,344,545,564,193,334,812,497,256 (about 10^29). JavaScript numbers can represent up to about 10^308, but lose precision above 2^53 (about 9 x 10^15). This calculator uses the multiplicative formula with rounding, which gives exact results for most practical inputs and switches to scientific notation for very large values. For cryptographic-precision large combinations, use Python with arbitrary-precision integers.
What is the formula for combinations with repetition?+
Combinations with repetition (also called multiset coefficients) use the formula CR(n,r) = C(n+r-1, r) = (n+r-1)! / (r! x (n-1)!). This counts the number of ways to choose r items from n types when repetition is allowed and order does not matter. Example: choosing 2 scoops of ice cream from 5 flavors with repetition gives CR(5,2) = C(6,2) = 15 (since you can choose the same flavor twice). This calculator computes standard combinations without repetition. For combinations with repetition, enter n+r-1 as your n value and r as your r value.