|
Will calculate the combinations with replacement for CR(n,r) = C(n+r-1,r) = (n+r-1)! / r! (n - 1)!. For r <= n, n >= 0, and r >= 0.
Combination with Replacement Formula:
CR(n,r) = C(n+r-1,r) = (n+r-1)! / r! (n - 1)!.
References
For more information on combinations and binomial coefficients please see http://mathworld.wolfram.com/Combination.html
|