The Number Of Integer Solutions Of Equations $$x_1 + x_2 + ... + x_r = n$$
An approach is to find the number of distinct non-negative integer-valued vectors $(x_1,x_2,...,x_r)$ such that $$x_1 + x_2 + ... + x_r = n$$
There are $n+r-1\choose r-1$ distinct non-negative integer-valued vectors $(x_1, x_2,...,x_r)$ satisfying the equation $$ x_1 + x_2 + ... + x_r = n $$
So there are $n+r-1\choose r-1$ solutions.
My question is how to count number of solutions for above equation considering all vectors whose permutation is same.
Now consider for $n = 2$ and $r = 2$ solutions are {(0,2), (2,0), (1,1)} as we can see (0,1) is a permutation of (1,0), so count them only once.
Therefore total number of solutions for $n = 2$ and $r = 2$ is 2 instead of 3.