C(N, n) = N!/(n!(N-n)!) = N_P_n / n!, eqs (1.7)-(1.8). The ordered
count is returned as well and n! C(N,n) = N_P_n is checked.
Arguments
- N, n
pool size and subgroup size, 0 <= n <= N.
Value
list(n_objects, n_picks, count, ordered_count, forms_agree).
References
Morin, D. J. (2016). Probability: For the Enthusiastic
Beginner. Createspace. Eqs. (1.7)-(1.8).
Examples
BinomCoef(52, 5)$count
#> [1] 2598960