I have been trying to find the sum of this series. It is an inclusion-exclusion formula. I have tried representing it as coefficient of [$x^{m}$] in a polynomial, but could not find the polynomial or m. Is there some other way to find it?
The series is:
$${ S }=\sum _{ i=0 }^{ n } { (-1) }^{ i }\binom{n}{i} \binom{N-i*k-1}{n-1}$$
where $${n} = \lceil{N/k}\rceil$$
I think that it needs to be utilized to find the sum, but so far I have not been able to use it.
Update : The original problem is to find the number of restricted compositions of a number N given that each summand is a positive integer less than equal to b and the number of parts is minimal.
The minimum number of parts ${k}=\lceil{N/b}\rceil$. Let us denote the solution as $C(N, k, 1, b)$ where ${ N }=\sum _{ i=0 }^{ k }t_i$ and ${1}\le{t_i}\le{b}$. The formula $${C(N, k, 1, b)}=\sum _{ i=0 }^{ k } { (-1) }^{ i }\binom{k}{i} \binom{N-ib-1}{n-1}$$ can be derived by using inclusion exclusion principle. The first term means that there is no upper bound on the summand, then subtract the number of compositions which have atleast one term greater than b, then add those terms(due to overlapping) which have atleast two terms greater b and so on. The solution assumes that $\binom{n}{r} = 0$, if ${n}<{r}$ even if n is negative. I want to minimize the asymptotic complexity of calculating this formula.