0

I know that the number of non-decreasing sequences of length $n$ and numbers in the sequence lying in the range $[l,r]$ is given by $$\binom{n+r-l}{n}$$

What is the formula to find the $$\sum_{n=1}^{N}{\binom{n+r-l}{n}}$$

Chappers
  • 67,606

1 Answers1

0

As a hint, if you add $1$ you would then be looking at $$ \displaystyle \sum_{n=0}^N {n+r-l \choose n}$$ and it is worth looking at this for small values of $N$ and $r-l$ to spot a pattern related to Pascal's triangle.

It will give you the result to your original question of $$ \displaystyle {N+r-l+1 \choose N} -1.$$

Henry
  • 157,058