Given $x$ and $k$, I am interested in finding the number $n$ such that: \begin{align}\tag{1} \binom{n}{k} \leq x < \binom{n + 1}{k} \end{align} In particular, I'm interested in the case where $n \geq 1024$ and $k \leq 10$.
I have found an approximation formula for $n$ when $t$ is "small" in comparison to $n$, but I don't understand where how this approximation was obtained:
\begin{align} x = \binom{n}{t} \iff n = (k! x)^{1 / k} + \frac{k - 1}{2} + \frac{k^2 - 1}{24} \frac{1}{(k! x)^{1 / k}} + \mathcal{O}\left(\frac{1}{(k! x)^{3 / k}}\right) \end{align}
Since this approximation can be a non-integer value, I've had to manually check that of one $\lceil n \rceil$ or $\lfloor n \rfloor$ satisfies inequality $(1)$. Experimentally, this formula seems to hold, but I don't understand why. Can anyone steer me in the right direction?
$xk!=n(n-1)(n-2)\cdots(n-k+1) \leq n^k$ so $(xk!)^{\frac 1k}-\sqrt[k]{n(n-1)(n-2)\cdots(n-k+1)} \leq n$
– futurebird Jul 04 '17 at 12:55