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 3 of 5: Match the two counts
∑k=1nk(n−kr−1)=∑k=1n(k1)(n−kr−1)=(n+1r+1)\sum_{k=1}^{n} k\binom{n-k}{r-1} = \sum_{k=1}^{n}\binom{k}{1}\binom{n-k}{r-1} = \binom{n+1}{r+1}
Detailed analysis

Summing the string count from Step 2 over all positions k+1k+1 of the second 11 counts every length-(n+1)(n+1) string with r+1r+1 ones exactly once, so the total is (n+1r+1)\binom{n+1}{r+1}; but term by term this sum is exactly ∑kk(n−kr−1)\sum_k k\binom{n-k}{r-1} from Step 1, since (k1)=k\binom{k}{1}=k.