We need to calculate the number of $r$-sized subsets of the set $\{1,\dots,n\}$ that don't contain any consecutive numbers.
We spent about 2 days on this...we know it's about the inclusion exclusion principle, and we have found something that works sometimes..but it doesn't cut it:
$$\binom n r$$ + This is a link to a sum we thought would work, any leads will be appreciated.
Some examples: For $n=4$, $r=3$, there are no valid groups.
For $n=4$, $r=2$ there are $3$ valid groups.
For $n=5$, $r=3$ there is $1$ valid group.
Hint: Use stars and bars.
Say the numbers are $a_1 < a_2< \ldots < a_r$. Then create a bijection with the set $b_i = a_i + i - 1$. This gives you all sequences of non-consecutive numbers, since $b_{i+1} - b_i = a_{i+1} + i - (a_i + i-1) \geq 2 $.