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