Consider a sequence of $n$ objects where $n$ is odd. I need help counting the number of ways of selecting $k$ items where the middle object is never selected. Additionally, two selected items must have $h \geq 1$ items or more in between.
Inspired by this answer, I tried $\binom{k + (n - k - h(k - 1))}{k}=\binom{n - h(k - 1)}{k}$ which comes from there being $h(k - 1)$ minimum total space in between selected elements.
Of course this does not solve the whole problem, because in some instances the middle element is still being selected. I tried finding the number of times the middle element had been selected (to then subtract it from the previous result) but to no avail.
I also considered eliminating the middle element, spliting the sequence in half, and examining each distribution of selected elements between subsequences, but that ended in a big sum of combinations. Because I'll use this result in a computer program it is desirable that there are as few calculations as possible, so a fixed expression would be ideal.
How may I solve this problem?