We know that if $k,n$ are integers ($k\ge0$ and $n\ge1$), then the number of (integer nonnegative) solutions to the equation $a_1 + a_2 + ... + a_n = k$ is equal to $\binom{k + n - 1}{k}$ (Like placing k apples in n boxes).
What happens if we are just looking for solutions $(a_1,\cdots,a_n)$ such that $(a_1 > a_2 > a_3 > ...)$ ?