Learn R Programming

simplextree (version 1.0.1)

inverse.choose: inverse.choose

Description

Inverts the binomial coefficient for general (n,k).

Usage

inverse.choose(x, k)

Arguments

x

the binomial coefficient.

k

the denominator of the binomial coefficient x.

Value

the numerator of the binomial coefficient, if the Otherwise

Details

Given a quantity x = choose(n, k) with fixed k, finds n.

Examples

Run this code
# NOT RUN {
100 == inverse.choose(choose(100,2), k = 2)
# TRUE 
12345 == inverse.choose(choose(12345, 5), k = 5)
# TRUE
# }

Run the code above in your browser using DataLab