For binomial function nCr=k, given r and k find n
问题 I need a function that can solve the following: for a binomial function nCr=k, given r and k find n. in mathematics nCr=n!/r!(n-r)! I tried following but it doesn't solve it. for example 8C6=28, for my function the inputs are 6 and 28 and i want to find 8. This may not have exact integer number so I want to find an x>=n. """I am approaching it this way, i.e. find the solution of a polynomial function iteratively, hope there is a better way""" def find_n(r,k): #solve_for_n_in(n*(n-1)...(n-r)