Given that $i,j,k$ are non-negative integers, how many possible ways can $i+j+k=n$ without taking the order into account?
In other words, what does the following sum equal? $$\sum_{i+j+k=n} 1$$
And then, for a generalized case of m numbers:
$$a_0+a_1+...+a_m=n$$
But the order for which i,j and k are placed does not matter, for example: $1+1+2$, $1+2+1$ and $2+1+1$ are the same combination.
Put another way, note that $$\sum_{i+j+k=n}1 =\sum_{i=0}^n \sum_{j=0}^{n-i} \sum_{k=n-i-j}1 $$
– nathan.j.mcdougall Jan 20 '19 at 22:24