I need to compute the following ratio $$ \frac{n!}{j!(n-j)!}/ \frac{n!}{(n/2)!(n/2)!}$$ I've tried to do this using nchoosek which works finte until $n\approx1000$. But I need at least $n\approx 10000$.
Is it possible to reformulate the equation in terms of "gammaln" and exponentiate the ratio at the end again? or maybe there is an easier way?
Assuming $n$ is even so $n/2 = m$ and $j \le m$ (otherwise $n-j < m$) you get $$ \frac{n!}{j!(n-j)!} \div \frac{n!}{(n/2)!(n/2)!} = \frac{(n/2)!(n/2)!}{j!(n-j)!} = \frac{(j+1) \times \ldots \times m}{(m+1) \times \ldots \times (2m-j)} $$ both numerator and denominator are straight integer products, should be quite quick to compute.