Maths WorkshopMaths problems with full solutions
Exercise 315Combinatorics › Binomial coefficientsL1Added 30 Oct 2026

Sum of binomial coefficients

#binomial#counting

Statement

Prove that ∑k=0n(nk)=2n\displaystyle\sum_{k=0}^{n}\binom nk=2^n in two ways: by computation, then by a counting argument.

Hint

Expand (1+1)n(1+1)^n. For counting, think of subsets of an nn-element set.

Show solutionHide solution

Solution

Computation. By the binomial theorem, 2n=(1+1)n=∑k=0n(nk)2^n=(1+1)^n=\sum_{k=0}^n\binom nk.

Counting. (nk)\binom nk is the number of kk-element subsets of an nn-element set. Summing over kk counts all subsets. Each element is either in or out of a subset, which gives 2n2^n subsets.