I wish to expand
$$\sum\limits_{k = 0}^{i - 1} {n \choose k}$$
where $i \leq n$ into a polynomial. However I am uncertain about the coefficients of each term. I have consulted https://en.wikipedia.org/wiki/Binomial_coefficient but could not find this particular result.
Example: let $i = 3$, then $\sum\limits_{k = 0}^{i - 1} {n \choose k} = \frac{n^2}{2} + n - 1/2$. Both the leading coefficient and the constant term seems to be pretty arbitrary.
Is there a way to generalize?