nCnk
nCnk, commonly written as nCk or C(n, k), denotes the binomial coefficient, the number of ways to choose k elements from a set of n distinct elements. It is defined for nonnegative integers n and k with 0 ≤ k ≤ n by the formula nCk = n! / (k!(n−k)!). When k < 0 or k > n, nCk is defined to be 0. The binomial coefficient can also be expressed using the gamma function as Γ(n+1) / [Γ(k+1) Γ(n−k+1)], which allows extension to non-integer n in a standard way.
Key properties include the symmetry nCk = nC(n−k), reflecting that choosing k elements is equivalent to omitting
Combinatorial interpretation is central: nCk counts the number of k-element subsets of an n-element set. It
Special values include nC0 = 1 and nCn = 1, and nC1 = n. For integers n ≥ 0, nCk