MathLabs

Problem 2

Let nn and rr be integers with 1≤r≤n1 \le r \le n, and consider all (nr)\binom{n}{r} subsets of rr elements of the set {1,2,…,n}\{1,2,\dots,n\}. Each such subset has a smallest element. Let F(n,r)F(n,r) denote the arithmetic mean of these smallest elements. Prove that F(n,r)=n+1r+1.F(n,r) = \frac{n+1}{r+1}.
Step 2 of 5: Encode the sum as a string-counting problem
In plain words

A well-chosen bijection turns an awkward weighted sum into a clean count of combinatorial objects.

Consider binary strings of length n+1 with exactly r+1 ones.\text{Consider binary strings of length } n+1 \text{ with exactly } r+1 \text{ ones.}
Detailed analysis

Look at binary strings of length n+1n+1 containing exactly r+1r+1 ones. For 1≤k≤n1 \le k \le n, say the second 11 occurs in position k+1k+1: there are (k1)\binom{k}{1} ways to place the single earlier 11 among the first kk positions, and (n−kr−1)\binom{n-k}{r-1} ways to place the remaining r−1r-1 ones after position k+1k+1.