Suppose you have a sum $R$ and you need to divide the sum into $2n+1$ summands or summing parts.
Let's call the summands $r_i$, $i=1,2,3, \ldots ,2n+1$.
And each summing part $r_i$ is a non-negative integer, satisfying the inequality $0\le r_i \le N$.
Now the question is: In how many ways can you divide the sum $R$ into the $2n+1$ summands?
Example: For $R=3$, $N=2$, $n=1$, we have the following ways $(0,1,2)$ and $(1,1,1)$. That is, there will be $2$ ways.
MY ATTEMPT: Say, in the summing pattern, we get $b_j$ $j$'s where $j=1,2,3, \ldots ,N$.
So we get each $\sum_j b_j=2n+1$ and $\sum_j jb_j=R$ as per the problem.
Now the fact is that, the summands $r_i$ in this case are indistinguishable. That is, as in the above stated example, $(1,0,2)$, $(0,2,1)$, $(1,2,0)$, $(2,0,1)$, $(2,1,0)$ and $(0,1,2)$ are all the same and count as one.
But if the summands $r_i$ are taken to be distinguishable, that is we consider all these $6$ patterns above, then the answer will be $\sum _\limits{k=0}^{\lfloor\frac{R}{N+1}\rfloor}(-1)^k\binom{2n+1}{k}\binom{R-(N+1)k+2n}{2n}$ as per the answers to this question.
So can I proceed from hereon? Any possible ways?
Or is there some better method? Hope my question is clear.