Here is a problem: I have $i$ red marbles, which are all different and $N-i$ blue marbles, which are also all different. Let's assume that $i<N-i$ (there are more blue marbles than red marbles). In how many ways can we choose $x$ number of red and $y$ number of blue marbles, so $x$ and $y$ satisfy $x-y=1$?
I have found a formula for this problem, which seems to be correct (please let me know if I am wrong).
$\sum\limits_{j=0}^{i-1}{i \choose j+1}{n-i \choose j} $
I am interested to know if there is a closed-form expression to this answer.
Thanks in advance.