I'm trying to solve the following problem:
I am trying to understand what he is counting in two ways in the first and second equality. I noticed that ${i \choose 2}=\frac{i(i-1)}{2}$ is the sum of the first $(i-1)$ integers. I did the following:
- I expanded both sums and showed that they are equal.
- I wrote ${n+1 \choose 3}=\frac{(n+1)n(n-1)}{6}$ and showed it is equal to one of the sums.
But judging from the section where the author writes about counting in two ways, it seems something else should be done:
I struggled a lot to find a figure such as the one he found in this example. Although I understood that ${i \choose 2}=\frac{i(i-1)}{2}$ and hence that $\sum_{i=1}^{n} {i \choose 2}$ is the sum of the sums of the first $i$ integers, I couldn't match the first sum to it in any meaningful way, I also don't know how to match the sums to ${n+1 \choose 3}$.



Write:
Reading across gives the second series. Reading down gives the first.
In maths,
$$\sum_\limits{i=1}^{n-1} \sum_\limits{j=1}^i j = \sum_\limits{i=1}^{n-1} \sum_\limits{j=1}^{n-i} i$$ Replacing the $i$ and $j$ variables with $\sum_\limits{k=1}^j 1$ and $\sum_\limits{k=1}^i 1$ respectively gives three summations over $1$ with equal ranges.
Second to third is the Hockey Stick Theorem.
If we say the $n^{th}$ integer is the sum of $n\;1$'s, then the sum of $n$ integers is the sum of the sum of $n\;1$'s, and then the sum of $n$ sum of integers is the sum of the sum of the sum of $n\;1$'s.
$$\binom{n}{1}=\sum_\limits{i=1}^n 1$$ $$\binom{n}{2}=\sum_\limits{i=1}^{n-1} \sum_\limits{j=1}^i 1$$ $$\binom{n}{3}=\sum_\limits{i=1}^{n-2} \sum_\limits{j=1}^i \sum_\limits{k=1}^j 1$$
And in pictures: